mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
6LoWPAN: Various fixes for a clean build if either TCP or UDP are disabled. Given the current state of TCP, it is recommended that you disable TCP.
This commit is contained in:
@@ -122,6 +122,7 @@ static void devif_packet_conversion(FAR struct net_driver_s *dev,
|
||||
if (dev->d_len > 0)
|
||||
#endif
|
||||
{
|
||||
#ifdef CONFIG_NET_TCP
|
||||
if (pkttype == DEVIF_TCP)
|
||||
{
|
||||
FAR struct ipv6_hdr_s *ipv6 = (FAR struct ipv6_hdr_s *)dev->d_buf;
|
||||
@@ -145,6 +146,7 @@ static void devif_packet_conversion(FAR struct net_driver_s *dev,
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
nerr("ERROR: Non-TCP packet dropped. Packet type: %u\n", pkttype);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user