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

Committer:
andrewboyson
Date:
Tue Apr 04 10:41:25 2017 +0000
Revision:
9:91dae5300a4d
Parent:
7:b794780e33b4
Child:
10:f0854784e960
IP6 NDP is working for neighbour and router adverts and solicitations.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 7:b794780e33b4 1 extern int NetIp4AddressToString(uint32_t ip, int size, char* text);
andrewboyson 7:b794780e33b4 2 extern int NetIp6AddressToString(char* ip, int size, char* text);
andrewboyson 7:b794780e33b4 3 extern int NetMacToString(char* mac, int size, char* text);
andrewboyson 9:91dae5300a4d 4 extern void NetProtocolToString(uint8_t protocol, int size, char* text);
andrewboyson 2:849103b5a16d 5
andrewboyson 0:faa09bd4e6bf 6 extern int16_t NetToHost16(int16_t n);
andrewboyson 0:faa09bd4e6bf 7 extern int32_t NetToHost32(int32_t n);
andrewboyson 0:faa09bd4e6bf 8 extern int64_t NetToHost64(int64_t n);
andrewboyson 0:faa09bd4e6bf 9 extern uint16_t NetCheckSum(int count, void* pData);
andrewboyson 2:849103b5a16d 10 extern uint16_t NetCheckSumTwo(int count1, void* pData1, int count2, void* pData2);
andrewboyson 2:849103b5a16d 11
andrewboyson 2:849103b5a16d 12 extern int NetInit();
andrewboyson 7:b794780e33b4 13 extern int NetMain();
andrewboyson 7:b794780e33b4 14
andrewboyson 9:91dae5300a4d 15
andrewboyson 9:91dae5300a4d 16 #define ETHERNET 1
andrewboyson 9:91dae5300a4d 17
andrewboyson 9:91dae5300a4d 18 #define IPV4 0x0800
andrewboyson 9:91dae5300a4d 19 #define ARP 0x0806
andrewboyson 9:91dae5300a4d 20 #define IPV6 0x86DD
andrewboyson 9:91dae5300a4d 21
andrewboyson 9:91dae5300a4d 22 #define ICMP 1
andrewboyson 9:91dae5300a4d 23 #define TCP 6
andrewboyson 9:91dae5300a4d 24 #define UDP 17
andrewboyson 9:91dae5300a4d 25 #define ICMP6 58
andrewboyson 9:91dae5300a4d 26
andrewboyson 9:91dae5300a4d 27
andrewboyson 9:91dae5300a4d 28 #define DO_NOTHING 0
andrewboyson 9:91dae5300a4d 29 #define UNICAST 1
andrewboyson 9:91dae5300a4d 30 #define MULTICAST_NODE 2
andrewboyson 9:91dae5300a4d 31 #define MULTICAST_ROUTER 3
andrewboyson 9:91dae5300a4d 32 #define BROADCAST 4