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: ip4/ip4addr.c
- Revision:
- 186:24198369b198
- Parent:
- 183:ee809769bf89
- Child:
- 187:122fc1996c86
diff -r e8f516e142c4 -r 24198369b198 ip4/ip4addr.c --- a/ip4/ip4addr.c Thu Jan 14 14:18:59 2021 +0000 +++ b/ip4/ip4addr.c Sat Jan 16 18:34:32 2021 +0000 @@ -67,5 +67,6 @@ if ( ip == (DhcpLocalIp | 0xFF000000) ) return false; // Ip == 192.168.0.255; '|' is lower precendence than '==' if ( ip == IP4_BROADCAST_ADDRESS ) return false; // dstIp == 255.255.255.255 if ((ip & 0xE0) == 0xE0 ) return false; // 224.x.x.x == 1110 0000 == E0.xx.xx.xx == xx.xx.xx.E0 in little endian + return true; } \ No newline at end of file