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:
Sun Mar 12 13:56:08 2017 +0000
Revision:
7:b794780e33b4
Parent:
2:849103b5a16d
Child:
9:91dae5300a4d
Added IPv6 support which is partially working

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 7:b794780e33b4 4 extern void NetProtocolToString(uint16_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 7:b794780e33b4 15 #define ICMP_PROTOCOL 1
andrewboyson 7:b794780e33b4 16 #define TCP_PROTOCOL 6
andrewboyson 7:b794780e33b4 17 #define ICMP6_PROTOCOL 58
andrewboyson 7:b794780e33b4 18 #define UDP_PROTOCOL 17