A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: ip6/ip6.c
- Revision:
- 187:122fc1996c86
- Parent:
- 172:9bc3c7b2cca1
--- a/ip6/ip6.c Sat Jan 16 18:34:32 2021 +0000 +++ b/ip6/ip6.c Mon Jan 18 18:23:46 2021 +0000 @@ -110,7 +110,7 @@ if (!action) return DO_NOTHING; int hoplimit; - if (NdpIpNeedsToBeRouted(dstIp)) + if (Ip6AddrIsExternal(dstIp)) { MacCopy(macRemote, NdpRouterMac); //Send to the router MAC hoplimit = NdpHopLimit; @@ -158,7 +158,7 @@ case UNICAST_DHCP: case UNICAST_NTP: case UNICAST_TFTP: - if (NdpIpNeedsToBeRouted(dstIp)) + if (Ip6AddrIsExternal(dstIp)) { MacCopy(pDstMac, NdpRouterMac); //Send to the router MAC hoplimit = NdpHopLimit;