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/slaac.cpp
- Revision:
- 13:9cd54f7db57a
- Parent:
- 10:f0854784e960
- Child:
- 15:6ca6778168b1
--- a/ip6/slaac.cpp Thu Apr 20 13:50:30 2017 +0000 +++ b/ip6/slaac.cpp Mon May 01 18:20:55 2017 +0000 @@ -1,4 +1,4 @@ -#include "eth.h" +#include "mac.h" char SlaacLinkLocalIp[16]; @@ -13,12 +13,12 @@ *p++ = 0x00; *p++ = 0x00; *p++ = 0x00; - *p++ = EthLocalMac[0] | 0x02; //Modified EUI-64 - *p++ = EthLocalMac[1]; - *p++ = EthLocalMac[2]; + *p++ = MacLocal[0] | 0x02; //Modified EUI-64 + *p++ = MacLocal[1]; + *p++ = MacLocal[2]; *p++ = 0xFF; *p++ = 0xFE; - *p++ = EthLocalMac[3]; - *p++ = EthLocalMac[4]; - *p++ = EthLocalMac[5]; + *p++ = MacLocal[3]; + *p++ = MacLocal[4]; + *p++ = MacLocal[5]; } \ No newline at end of file