net/: add NET_ICMP[v6]_NO_STACK for usrsock case

This commit is contained in:
Xiang Xiao
2018-11-09 11:25:57 -06:00
committed by Gregory Nutt
parent 26ae4176f0
commit 44bcd2c44d
8 changed files with 37 additions and 13 deletions
+1 -1
View File
@@ -548,7 +548,7 @@ int ipv4_input(FAR struct net_driver_s *dev)
break;
#endif
#ifdef CONFIG_NET_ICMP
#ifdef NET_ICMP_HAVE_STACK
/* Check for ICMP input */
case IP_PROTO_ICMP: /* ICMP input */
+2 -2
View File
@@ -512,9 +512,9 @@ int ipv6_input(FAR struct net_driver_s *dev)
break;
#endif
#ifdef CONFIG_NET_ICMPv6
/* Check for ICMP input */
#ifdef NET_ICMPv6_HAVE_STACK
case IP_PROTO_ICMP6: /* ICMP6 input */
/* Forward the ICMPv6 packet */
@@ -546,7 +546,7 @@ int ipv6_input(FAR struct net_driver_s *dev)
}
#endif /* CONFIG_NET_6LOWPAN */
break;
#endif /* CONFIG_NET_ICMPv6 */
#endif /* NET_ICMPv6_HAVE_STACK */
default: /* Unrecognized/unsupported protocol */
nwarn("WARNING: Unrecognized IP protocol: %04x\n", ipv6->proto);