nuttx/include/sys
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
..
boardctl.h Squashed commit of the following: 2017-07-16 08:43:17 -06:00
custom_file.h Standardize some header files 2015-02-16 14:29:43 -06:00
epoll.h Fix names of pre-processor variables used in header file idempotence 2016-08-06 19:21:42 -06:00
ioctl.h Squashed commit of the following: 2017-09-15 08:04:38 -06:00
ipc.h Standardize some header files 2015-02-16 14:29:43 -06:00
mman.h include/: Remove dangling space at the end of lines. 2017-06-28 13:30:08 -06:00
mount.h Add umount2(). umount() is now a macro that just calls umount2() with flags = 0. 2015-03-14 16:48:45 -06:00
prctl.h Standardize some header files 2015-02-16 14:29:43 -06:00
random.h Be consistent... Use Name: consistent in function headers vs Function: 2017-04-21 16:33:14 -06:00
select.h Extend the fd_set type definition so that it can handle more than 32 descriptors (if so configured). From Max Neklyudov 2015-02-25 08:05:42 -06:00
sendfile.h Standardize the width of all comment boxes in header files 2015-10-02 17:48:24 -06:00
shm.h Standardize some header files 2015-02-16 14:29:43 -06:00
socket.h Add include/net/ieee802154.h 2017-08-17 15:25:52 -06:00
sockio.h Clean up and review of header files for conformance to standards 2015-06-12 19:26:01 -06:00
stat.h 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
statfs.h fs/hostfs: Add a special file system for use with simulator that supports access to the host file system from the simulation. From Ken Petit 2015-11-25 08:26:26 -06:00
syscall.h pthreads: Move pthread_barrier_init, pthread_barrier_destroy, and pthread_barrier_wait from sched/pthreads to libc/pthreads. This just coordinate other OS interface calls but are not a fundamental OS interfaces and, hence, do not belong within the OS. 2017-06-14 07:59:54 -06:00
time.h Fix strange invisible characters in this declaration. 2017-03-27 09:47:02 -06:00
types.h Fix a few more compile issues with the new wide character support 2016-10-19 08:18:46 -06:00
uio.h Add implementations of uname() and gethost(). From Stavros Polymenis. 2015-07-03 07:50:27 -06:00
un.h include/: Remove dangling space at the end of lines. 2017-06-28 13:30:08 -06:00
utsname.h uname: version string must hold 40 character value; strings returned by uname must always be NUL terminated 2015-07-05 06:46:00 -06:00
vfs.h Standardize some header files 2015-02-16 14:29:43 -06:00
wait.h Add _ to the beginning of all debug macros to avoid name collisions 2016-06-16 12:33:32 -06:00