mikroSDK Reference Manual
ndp_misc.h
Go to the documentation of this file.
1
31#ifndef _NDP_MISC_H
32#define _NDP_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "ipv6/ndp.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//NDP related functions
44void ndpParsePrefixInfoOption(NetInterface *interface, NdpPrefixInfoOption *option);
45
46void ndpUpdateAddrList(NetInterface *interface);
47void ndpUpdatePrefixList(NetInterface *interface);
48void ndpUpdateDefaultRouterList(NetInterface *interface);
49
50error_t ndpSelectDefaultRouter(NetInterface *interface,
51 const Ipv6Addr *unreachableAddr, Ipv6Addr *addr);
52
53bool_t ndpIsFirstHopRouter(NetInterface *interface,
54 const Ipv6Addr *destAddr, const Ipv6Addr *nextHop);
55
56error_t ndpSelectNextHop(NetInterface *interface, const Ipv6Addr *destAddr,
57 const Ipv6Addr *unreachableNextHop, Ipv6Addr *nextHop, bool_t dontRoute);
58
59void ndpUpdateNextHop(NetInterface *interface, const Ipv6Addr *nextHop);
60
61void ndpAddOption(void *message, size_t *messageLen, uint8_t type,
62 const void *value, size_t length);
63
64void *ndpGetOption(uint8_t *options, size_t length, uint8_t type);
65
66error_t ndpCheckOptions(const uint8_t *options, size_t length);
67
68//C++ guard
69#ifdef __cplusplus
70}
71#endif
72
73#endif
error_t
Error codes.
Definition error.h:43
NDP (Neighbor Discovery Protocol)
TCP/IP stack core.