diff options
Diffstat (limited to 'nuttx/net/devif/ipv6_input.c')
-rw-r--r-- | nuttx/net/devif/ipv6_input.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/net/devif/ipv6_input.c b/nuttx/net/devif/ipv6_input.c index d50838902..a613f1975 100644 --- a/nuttx/net/devif/ipv6_input.c +++ b/nuttx/net/devif/ipv6_input.c @@ -85,6 +85,8 @@ #include <debug.h> #include <string.h> +#include <net/if.h> + #include <nuttx/net/netconfig.h> #include <nuttx/net/netdev.h> #include <nuttx/net/netstats.h> @@ -249,10 +251,14 @@ int ipv6_input(FAR struct net_driver_s *dev) } } - /* Everything looks good so far. Now process the incoming packet - * according to the protocol. + /* Make sure that all packet processing logic knows that there is an IPv6 + * packet in the device buffer. */ + IFF_SET_IPv6(dev->d_flags); + + /* Now process the incoming packet according to the protocol. */ + switch (ipv6->proto) { #ifdef CONFIG_NET_TCP |