nuttx/net/route
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
..
fileroute.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
Kconfig 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
Make.defs 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
net_add_fileroute.c 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
net_add_ramroute.c Minor cleanup after laster squashed merge. 2017-09-28 09:23:03 -06:00
net_alloc_ramroute.c Addes support for read-only routing tables. Prior to this change, routing tables were only support in RAM and had to be initialized with explicit logic to add the necessary routes to the routing table. With this change, routes may be defined in the pre-initialized, read-only routing table provided by the board-specific logic 2017-09-28 09:04:31 -06:00
net_del_fileroute.c 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
net_del_ramroute.c 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
net_dumproute.c Forgot to add a file in the last commit 2017-08-10 16:31:25 -06:00
net_fileroute.c 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
net_foreach_fileroute.c 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
net_foreach_ramroute.c 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
net_foreach_romroute.c 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
net_initroute.c 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
net_queue_ramroute.c More minor cleanup after laster squashed merge. 2017-09-28 12:25:05 -06:00
net_router.c Network routing table: Trivial name changes to make IPv4 and IPv6 more symmetric. Add debug logic to dump the content of the router table. 2017-08-10 16:18:06 -06:00
netdev_router.c In some cases, packets are still not sent behind the router. I found that NuttX sends the ARP requests not to the router but to the target. Mistake in file net/route/netdev_router.c. From Aleksandr Kazantsev 2017-09-20 13:19:05 -06:00
ramroute.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
romroute.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
route.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