Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
ip6/icmp/ndp/ndp.h@172:9bc3c7b2cca1, 2020-12-16 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Dec 16 17:33:22 2020 +0000
- Revision:
- 172:9bc3c7b2cca1
- Parent:
- 119:8e1a7805b801
- Child:
- 187:122fc1996c86
Modified name resolution to work with both IPv4 and IPv6. Before there were two independent modules.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 61:aad055f1b0d1 | 1 | #include <stdint.h> |
andrewboyson | 61:aad055f1b0d1 | 2 | #include <stdbool.h> |
andrewboyson | 61:aad055f1b0d1 | 3 | |
andrewboyson | 46:40d33e9037e4 | 4 | extern int NdpHopLimit; |
andrewboyson | 47:73af5c0b0dc2 | 5 | extern bool NdpManagedConfiguration; |
andrewboyson | 46:40d33e9037e4 | 6 | extern bool NdpOtherConfiguration; |
andrewboyson | 46:40d33e9037e4 | 7 | extern char NdpRouterMac[6]; |
andrewboyson | 172:9bc3c7b2cca1 | 8 | |
andrewboyson | 172:9bc3c7b2cca1 | 9 | extern int NdpGlobalPrefixLength; |
andrewboyson | 172:9bc3c7b2cca1 | 10 | extern bool NdpGlobalPrefixFlagL; |
andrewboyson | 172:9bc3c7b2cca1 | 11 | extern bool NdpGlobalPrefixFlagA; |
andrewboyson | 172:9bc3c7b2cca1 | 12 | extern uint32_t NdpGlobalPrefixValidLifetime; |
andrewboyson | 172:9bc3c7b2cca1 | 13 | extern uint32_t NdpGlobalPrefixPreferredLifetime; |
andrewboyson | 172:9bc3c7b2cca1 | 14 | extern char NdpGlobalPrefix[]; |
andrewboyson | 172:9bc3c7b2cca1 | 15 | |
andrewboyson | 172:9bc3c7b2cca1 | 16 | extern int NdpUniqueLocalPrefixLength; |
andrewboyson | 172:9bc3c7b2cca1 | 17 | extern bool NdpUniqueLocalPrefixFlagL; |
andrewboyson | 172:9bc3c7b2cca1 | 18 | extern bool NdpUniqueLocalPrefixFlagA; |
andrewboyson | 172:9bc3c7b2cca1 | 19 | extern uint32_t NdpUniqueLocalPrefixValidLifetime; |
andrewboyson | 172:9bc3c7b2cca1 | 20 | extern uint32_t NdpUniqueLocalPrefixPreferredLifetime; |
andrewboyson | 172:9bc3c7b2cca1 | 21 | extern char NdpUniqueLocalPrefix[]; |
andrewboyson | 172:9bc3c7b2cca1 | 22 | |
andrewboyson | 46:40d33e9037e4 | 23 | extern int NdpPrefixLength; |
andrewboyson | 53:77f8a49adf89 | 24 | extern bool NdpPrefixFlagL; |
andrewboyson | 53:77f8a49adf89 | 25 | extern bool NdpPrefixFlagA; |
andrewboyson | 46:40d33e9037e4 | 26 | extern uint32_t NdpPrefixValidLifetime; |
andrewboyson | 46:40d33e9037e4 | 27 | extern uint32_t NdpPrefixPreferredLifetime; |
andrewboyson | 46:40d33e9037e4 | 28 | extern char NdpPrefix[]; |
andrewboyson | 46:40d33e9037e4 | 29 | extern char NdpDnsServer[]; |
andrewboyson | 46:40d33e9037e4 | 30 | extern uint32_t NdpDnsLifetime; |
andrewboyson | 119:8e1a7805b801 | 31 | extern int NdpMtu; |
andrewboyson | 119:8e1a7805b801 | 32 | |
andrewboyson | 119:8e1a7805b801 | 33 | extern int NdpGetLease(void); |
andrewboyson | 119:8e1a7805b801 | 34 | extern void NdpSetLease(int value); |
andrewboyson | 93:580fc113d9e9 | 35 | extern uint32_t NdpGetElapsedLife(void); |
andrewboyson | 119:8e1a7805b801 | 36 | extern bool NdpIsFresh(void); |
andrewboyson | 46:40d33e9037e4 | 37 | |
andrewboyson | 46:40d33e9037e4 | 38 | extern int NdpAddOptionSourceMac(char* p, char* pMac); |
andrewboyson | 47:73af5c0b0dc2 | 39 | extern int NdpAddOptionTargetMac(char* p, char* pMac); |
andrewboyson | 47:73af5c0b0dc2 | 40 | extern void NdpDecodeOptions (char* pData, int dataLength, char* srcMac, char* dstMac); |
andrewboyson | 47:73af5c0b0dc2 | 41 | extern void NdpLogOptionsVerbose(char* pData, int dataLength); |
andrewboyson | 47:73af5c0b0dc2 | 42 | extern void NdpLogOptionsQuiet (char* pData, int dataLength); |
andrewboyson | 46:40d33e9037e4 | 43 | |
andrewboyson | 46:40d33e9037e4 | 44 | extern bool NdpIpNeedsToBeRouted(char* ip); |