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
ip6/ip6hdr.h@136:8a65abb0dc63, 2019-04-06 (annotated)
- Committer:
- andrewboyson
- Date:
- Sat Apr 06 11:20:20 2019 +0000
- Revision:
- 136:8a65abb0dc63
Part way through replacing __packed with byte copy access to the headers.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 136:8a65abb0dc63 | 1 | #include <stdbool.h> |
andrewboyson | 136:8a65abb0dc63 | 2 | #include <stdint.h> |
andrewboyson | 136:8a65abb0dc63 | 3 | |
andrewboyson | 136:8a65abb0dc63 | 4 | extern char* Ip6HdrPtrVersionTrafficFlow (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 5 | extern char* Ip6HdrPtrPayloadLength (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 6 | extern char* Ip6HdrPtrProtocol (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 7 | extern char* Ip6HdrPtrHopLimit (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 8 | extern char* Ip6HdrPtrSrc (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 9 | extern char* Ip6HdrPtrDst (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 10 | extern const int IP6_HEADER_LENGTH; |
andrewboyson | 136:8a65abb0dc63 | 11 | |
andrewboyson | 136:8a65abb0dc63 | 12 | extern int Ip6HdrGetVersion (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 13 | extern int Ip6HdrGetPayloadLen(char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 14 | extern int Ip6HdrGetProtocol (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 15 | extern int Ip6HdrGetHopLimit (char* pPacket); |
andrewboyson | 136:8a65abb0dc63 | 16 | |
andrewboyson | 136:8a65abb0dc63 | 17 | extern void Ip6HdrSetVersion (char* pPacket, int value); |
andrewboyson | 136:8a65abb0dc63 | 18 | extern void Ip6HdrSetPayloadLen(char* pPacket, int value); |
andrewboyson | 136:8a65abb0dc63 | 19 | extern void Ip6HdrSetProtocol (char* pPacket, int value); |
andrewboyson | 136:8a65abb0dc63 | 20 | extern void Ip6HdrSetHopLimit (char* pPacket, int value); |