mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
net/route: Support longest prefix match for routing
Support longest prefix match routing described as "Longest Match" in RFC 1812, Section 5.2.4.3, Page 75. Introduced `prefixlen` to indicate the prefix length of currently founded route, and only looks up for longer prefix in all later steps. Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -79,9 +79,10 @@ struct neighbor_addr_s
|
||||
|
||||
struct neighbor_entry_s
|
||||
{
|
||||
net_ipv6addr_t ne_ipaddr; /* IPv6 address of the Neighbor */
|
||||
struct neighbor_addr_s ne_addr; /* Link layer address of the Neighbor */
|
||||
clock_t ne_time; /* For aging, units of tick */
|
||||
net_ipv6addr_t ne_ipaddr; /* IPv6 address of the Neighbor */
|
||||
struct neighbor_addr_s ne_addr; /* Link layer address of the Neighbor */
|
||||
clock_t ne_time; /* For aging, units of tick */
|
||||
FAR struct net_driver_s *ne_dev; /* The device driver structure */
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user