diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-02 13:44:31 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-02 13:44:31 -0600 |
commit | 8b8a31ef43285915b55e74e22e1ea46a1f45f2af (patch) | |
tree | 8c64da49444aa18cba42422179bbde281721eba3 /nuttx/net/neighbor | |
parent | f5a570a7686d96264e651a2d44b47de69f6e66d6 (diff) | |
download | px4-nuttx-8b8a31ef43285915b55e74e22e1ea46a1f45f2af.tar.gz px4-nuttx-8b8a31ef43285915b55e74e22e1ea46a1f45f2af.tar.bz2 px4-nuttx-8b8a31ef43285915b55e74e22e1ea46a1f45f2af.zip |
ICMPv6: Adds basic logic to support verification that we have the IPv6 address in the Neighbor Table. This feature is important because otherwise the first packet sent to a remote peer will fail (it will be replaced with a Neighbor Solicitation).
Diffstat (limited to 'nuttx/net/neighbor')
-rw-r--r-- | nuttx/net/neighbor/neighbor.h | 6 | ||||
-rw-r--r-- | nuttx/net/neighbor/neighbor_findentry.c | 2 | ||||
-rw-r--r-- | nuttx/net/neighbor/neighbor_lookup.c | 2 | ||||
-rw-r--r-- | nuttx/net/neighbor/neighbor_update.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/net/neighbor/neighbor.h b/nuttx/net/neighbor/neighbor.h index ffc003827..98b90a8e1 100644 --- a/nuttx/net/neighbor/neighbor.h +++ b/nuttx/net/neighbor/neighbor.h @@ -138,7 +138,7 @@ void neighbor_initialize(void); * ****************************************************************************/ -FAR struct neighbor_entry *neighbor_findentry(net_ipv6addr_t ipaddr); +FAR struct neighbor_entry *neighbor_findentry(const net_ipv6addr_t ipaddr); /**************************************************************************** * Name: neighbor_add @@ -174,7 +174,7 @@ void neighbor_add(FAR net_ipv6addr_t ipaddr, FAR struct neighbor_addr_s *addr); * ****************************************************************************/ -FAR const struct neighbor_addr_s *neighbor_lookup(net_ipv6addr_t ipaddr); +FAR const struct neighbor_addr_s *neighbor_lookup(const net_ipv6addr_t ipaddr); /**************************************************************************** * Name: neighbor_update @@ -192,7 +192,7 @@ FAR const struct neighbor_addr_s *neighbor_lookup(net_ipv6addr_t ipaddr); * ****************************************************************************/ -void neighbor_update(net_ipv6addr_t ipaddr); +void neighbor_update(const net_ipv6addr_t ipaddr); /**************************************************************************** * Name: neighbor_periodic diff --git a/nuttx/net/neighbor/neighbor_findentry.c b/nuttx/net/neighbor/neighbor_findentry.c index 719909312..88b7abf94 100644 --- a/nuttx/net/neighbor/neighbor_findentry.c +++ b/nuttx/net/neighbor/neighbor_findentry.c @@ -68,7 +68,7 @@ * ****************************************************************************/ -FAR struct neighbor_entry *neighbor_findentry(net_ipv6addr_t ipaddr) +FAR struct neighbor_entry *neighbor_findentry(const net_ipv6addr_t ipaddr) { int i; diff --git a/nuttx/net/neighbor/neighbor_lookup.c b/nuttx/net/neighbor/neighbor_lookup.c index e0e22eed6..39b9f941b 100644 --- a/nuttx/net/neighbor/neighbor_lookup.c +++ b/nuttx/net/neighbor/neighbor_lookup.c @@ -69,7 +69,7 @@ * ****************************************************************************/ -FAR const struct neighbor_addr_s *neighbor_lookup(net_ipv6addr_t ipaddr) +FAR const struct neighbor_addr_s *neighbor_lookup(const net_ipv6addr_t ipaddr) { FAR struct neighbor_entry *neighbor; diff --git a/nuttx/net/neighbor/neighbor_update.c b/nuttx/net/neighbor/neighbor_update.c index e0d44e253..e0c7e4b92 100644 --- a/nuttx/net/neighbor/neighbor_update.c +++ b/nuttx/net/neighbor/neighbor_update.c @@ -65,7 +65,7 @@ * ****************************************************************************/ -void neighbor_update(net_ipv6addr_t ipaddr) +void neighbor_update(const net_ipv6addr_t ipaddr) { struct neighbor_entry *neighbor; |