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
net.h@14:e75a59c1123d, 2017-05-05 (annotated)
- Committer:
- andrewboyson
- Date:
- Fri May 05 17:44:16 2017 +0000
- Revision:
- 14:e75a59c1123d
- Parent:
- 13:9cd54f7db57a
- Child:
- 15:6ca6778168b1
Made IP addresses and ports available to debug messages
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 2:849103b5a16d | 1 | |
andrewboyson | 0:faa09bd4e6bf | 2 | extern int16_t NetToHost16(int16_t n); |
andrewboyson | 0:faa09bd4e6bf | 3 | extern int32_t NetToHost32(int32_t n); |
andrewboyson | 0:faa09bd4e6bf | 4 | extern int64_t NetToHost64(int64_t n); |
andrewboyson | 0:faa09bd4e6bf | 5 | extern uint16_t NetCheckSum(int count, void* pData); |
andrewboyson | 2:849103b5a16d | 6 | extern uint16_t NetCheckSumTwo(int count1, void* pData1, int count2, void* pData2); |
andrewboyson | 2:849103b5a16d | 7 | |
andrewboyson | 10:f0854784e960 | 8 | extern int NetInit(char* name); |
andrewboyson | 7:b794780e33b4 | 9 | extern int NetMain(); |
andrewboyson | 7:b794780e33b4 | 10 | |
andrewboyson | 10:f0854784e960 | 11 | extern char* NetName; |
andrewboyson | 10:f0854784e960 | 12 | |
andrewboyson | 9:91dae5300a4d | 13 | |
andrewboyson | 9:91dae5300a4d | 14 | #define DO_NOTHING 0 |
andrewboyson | 10:f0854784e960 | 15 | #define UNICAST 1 |
andrewboyson | 10:f0854784e960 | 16 | #define UNICAST_DNS 2 |
andrewboyson | 10:f0854784e960 | 17 | #define UNICAST_DHCP 3 |
andrewboyson | 10:f0854784e960 | 18 | #define MULTICAST_NODE 4 |
andrewboyson | 10:f0854784e960 | 19 | #define MULTICAST_ROUTER 5 |
andrewboyson | 10:f0854784e960 | 20 | #define MULTICAST_MDNS 6 |
andrewboyson | 10:f0854784e960 | 21 | #define MULTICAST_LLMNR 7 |
andrewboyson | 14:e75a59c1123d | 22 | #define SOLICITED_NODE 8 |
andrewboyson | 14:e75a59c1123d | 23 | #define BROADCAST 9 |