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:
Gregory Nutt
2017-06-24 16:53:00 -06:00
parent 3203f0a93a
commit 74c97f7e7f
5 changed files with 87 additions and 51 deletions
+2
View File
@@ -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);
}