6loWPAN: Fix last checksum issues. Contiki 6loWPAN port is now complete (but completely untested)

This commit is contained in:
Gregory Nutt
2017-04-02 14:30:01 -06:00
parent 6e2f8f3aa3
commit 392c90b020
5 changed files with 262 additions and 313 deletions
+22 -2
View File
@@ -1,7 +1,7 @@
############################################################################
# net/utils/Make.defs
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Copyright (C) 2014, 2017 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@@ -36,7 +36,7 @@
# Common utilities
NET_CSRCS += net_dsec2tick.c net_dsec2timeval.c net_timeval2dsec.c
NET_CSRCS += net_chksum.c net_lock.c
NET_CSRCS += net_chksum.c net_ipchksum.c net_incr32.c net_lock.c
# IPv6 utilities
@@ -44,6 +44,26 @@ ifeq ($(CONFIG_NET_IPv6),y)
NET_CSRCS += net_ipv6_maskcmp.c net_ipv6_mask2pref.c net_ipv6_pref2mask.c
endif
# TCP utilities
ifeq ($(CONFIG_NET_TCP),y)
NET_CSRCS += net_tcpchksum.c
endif
# UDP utilities
ifeq ($(CONFIG_NET_UDP),y)
NET_CSRCS += net_udpchksum.c
endif
# ICMP utilities
ifeq ($(CONFIG_NET_ICMP),y)
NET_CSRCS += net_icmpchksum.c
else ifeq ($(CONFIG_NET_ICMPv6),y)
NET_CSRCS += net_icmpchksum.c
endif
# Include utility build support
DEPPATH += --dep-path utils