nuttx/include
Gregory Nutt 44d88abb83 This commit adds support for routing tables in files in a file system. This might be useful for customized, per-unit routing tables.
There are two issues with it however:

1. Reading from file system on a per packet basis could be slow.  I think it probably should have a small, in-memory cache of most frequently used routes for good problem.

2. Currently the delroute logic is disabled due to a problem with the design.  NuttX does not currently support truncate().  Therefore, it is not possible to delete entries from the routing table file.

In this current implementation, that leaves the last entry intact at the end of the file.  An alternative design might include a tag on each record to indicate if the record is valid or not.  That would work but would add complexity to the other routing table functions.

The existing implementation is available for testing purposes only if CONFIG_EXPERIMENTAL=y.

Squashed commit of the following:

    net/route:  The current delroute design depends on file truncation.  However, NuttX does not currently support truncate.  Alternative, more complex designs are possible but not implemented.  At present the file routing table are otherwise functional but the delroute logic is disabled via CONFIG_EXPERIMENTAL.  Enable it only if you plan to fix it.

    net/route:  Fix some issues with locking routing table files.

    net/route:  Add partial implementation of delroute for the case where the routing table is in a file.

    net/route:  Add support for seeking to positions in the routing table.

    net/route: Add net_addroute_ipv4/6() using a file-based routing table.

    net/route: Add net_foreach_ipv4/4() using a file-based routing table.

    net/route:  Initial build, configuration, and fs utilies to support routing tables in a file.
2017-09-29 08:33:36 -06:00
..
arpa
cxx cwchar:Use CONFIG_LIBC_WCHAR to only export the wc/mb functions 2017-08-10 14:22:51 -10:00
net Squashed commit of the following: 2017-09-19 14:17:05 -06:00
netinet netinet/in.h: Add missing IN6_IS_ADDR_V4COMPAT macro. 2017-09-18 09:58:23 -06:00
netpacket Squashed commit of the following: 2017-08-19 08:48:52 -06:00
nuttx drivers/usbdev: Add RNDIS-over-USB driver 2017-09-24 07:24:34 -06:00
sys This commit adds support for routing tables in files in a file system. This might be useful for customized, per-unit routing tables. 2017-09-29 08:33:36 -06:00
.gitignore
aio.h
assert.h
crc8.h
crc16.h
crc32.h
crc64.h
ctype.h Costmetic changes 2016-10-24 16:18:30 -06:00
debug.h Add power-related debug output 2017-07-23 07:17:56 -06:00
dirent.h Remove some unnecessary (and inappropriate) soft link logic 2017-02-03 15:50:41 -06:00
dllfcn.h Shared libraries: Add a non-standard dllfnc.h function to set the symbol table. 2017-01-23 08:20:24 -06:00
elf32.h
errno.h Update errno values. Add new values; remove obsolete values 2017-03-26 09:22:00 -06:00
fcntl.h
fixedmath.h fixedmath: add square root and b32_t conversion operators 2017-05-04 06:50:08 -06:00
hex2bin.h
inttypes.h C library: Add strtoimax and strtoumax. 2017-02-16 15:12:37 -06:00
libgen.h In dlopen(), use the basename of the file as the module name 2017-01-22 16:01:03 -06:00
limits.h stat(): Add logic to avoid infinite recursive in circular paths containing soft links. 2017-02-07 12:32:45 -06:00
locale.h locale.h: Add a bogus definition of locale_t 2017-05-12 10:13:18 -06:00
mqueue.h
netdb.h include/: Remove dangling space at the end of lines. 2017-06-28 13:30:08 -06:00
nxflat.h
poll.h
pthread.h pthread.h: Fix rwlock initializer 2017-04-08 12:34:08 -06:00
queue.h
sched.h Add task_testcancel() 2016-12-10 16:34:14 -06:00
semaphore.h sem_open() should return SEM_FAILED on any failures. This is change change in the POSIX specification since the original sem_open() was written so many years ago. 2017-09-08 10:14:51 -06:00
signal.h include/cxx: Update some C++ header files due to recent changes to C hader files 2016-08-25 15:06:46 -06:00
spawn.h
stdbool.h
stddef.h Remove comments that no longer apply. clocale should not do anyting if CONFIG_LIBC_LOCALE is not defined. 2016-10-19 07:06:43 -06:00
stdint.h
stdio.h C Library: Add setbuf() which is a trivial wrapper around setvbuf(). 2017-02-09 15:04:53 -06:00
stdlib.h libc/Kconfig: Break big Kconfig up into separate Kconfig files in each libc subdirectory. 2017-02-10 09:32:55 -06:00
string.h Add entropy pool and strong random number generator 2017-03-30 07:38:37 -06:00
strings.h Add ffsl(), ffsll(), fls(), flsl(), flsll() and use GCC's __builtin_ctz/__builtin_clz for faster implementation of these 2017-03-24 09:41:31 -06:00
syscall.h
syslog.h include/: Remove dangling space at the end of lines. 2017-06-28 13:30:08 -06:00
termios.h termios.h: Fix CRTSCTS define to include input and output flow 2016-12-26 07:41:44 -06:00
threads.h
time.h
unistd.h C library: Add swab() 2017-02-16 14:42:27 -06:00
wchar.h include/: Remove dangling space at the end of lines. 2017-06-28 13:30:08 -06:00
wctype.h wctype.h needs extern C 2017-02-17 09:48:55 -06:00