Contiki-NG
Loading...
Searching...
No Matches
uip-nd6.h File Reference

Header file for IPv6 Neighbor discovery (RFC 4861) More...

#include "net/ipv6/uip.h"
#include "sys/stimer.h"

Go to the source code of this file.

Data Structures

struct  uip_nd6_ns
 A neighbor solicitation constant part. More...
 
struct  uip_nd6_na
 A neighbor advertisement constant part. More...
 
struct  uip_nd6_rs
 A router solicitation constant part. More...
 
struct  uip_nd6_ra
 A router advertisement constant part. More...
 
struct  uip_nd6_redirect
 A redirect message constant part. More...
 
struct  uip_nd6_opt_hdr
 ND option header. More...
 
struct  uip_nd6_opt_prefix_info
 ND option prefix information. More...
 
struct  uip_nd6_opt_mtu
 ND option MTU. More...
 
struct  uip_nd6_opt_dns
 ND option RDNSS. More...
 

Macros

#define UIP_ND6_DEF_MAXDADNS   UIP_ND6_SEND_NS
 Do not try DAD when using EUI-64 as allowed by draft-ietf-6lowpan-nd-15 section 8.2.
 
General
#define UIP_ND6_HOP_LIMIT   255
 HOP LIMIT to be used when sending ND messages (255)
 
#define UIP_ND6_INFINITE_LIFETIME   0xFFFFFFFF
 INFINITE lifetime.
 
RFC 4861 Host constant
#define UIP_ND6_MAX_RTR_SOLICITATION_DELAY   1
 Maximum router solicitation delay.
 
#define UIP_ND6_RTR_SOLICITATION_INTERVAL   4
 Router solicitation interval.
 
#define UIP_ND6_MAX_RTR_SOLICITATIONS   3
 Maximum router solicitations.
 
RFC 4861 Router constants
RFC 4861 Node constant
RFC 6106 RA DNS Options Constants <br>
ND6 option types
ND6 message length (excluding options)
ND6 option length in bytes
#define UIP_ND6_OPT_LLAO_LEN   8
 length of a ND6 LLAO option for default L2 type (e.g.
 
Neighbor Advertisement flags masks

Typedefs

ND message structures
typedef struct uip_nd6_ns uip_nd6_ns
 A neighbor solicitation constant part.
 
typedef struct uip_nd6_na uip_nd6_na
 A neighbor advertisement constant part.
 
typedef struct uip_nd6_rs uip_nd6_rs
 A router solicitation constant part.
 
typedef struct uip_nd6_ra uip_nd6_ra
 A router advertisement constant part.
 
typedef struct uip_nd6_redirect uip_nd6_redirect
 A redirect message constant part.
 
ND Option structures
typedef struct uip_nd6_opt_hdr uip_nd6_opt_hdr
 ND option header.
 
typedef struct uip_nd6_opt_prefix_info uip_nd6_opt_prefix_info
 ND option prefix information.
 
typedef struct uip_nd6_opt_mtu uip_nd6_opt_mtu
 ND option MTU.
 
typedef struct uip_nd6_opt_dns uip_nd6_opt_dns
 ND option RDNSS.
 

Functions

ND Messages Processing and Generation
void uip_nd6_ns_output (const uip_ipaddr_t *src, const uip_ipaddr_t *dest, uip_ipaddr_t *tgt)
 Send a neighbor solicitation, send a Neighbor Advertisement.
 
void uip_nd6_rs_output (void)
 Send a Router Solicitation.
 
void uip_nd6_init (void)
 Initialise the uIP ND core.
 

Detailed Description

Header file for IPv6 Neighbor discovery (RFC 4861)

Author
Julien Abeille jabei.nosp@m.lle@.nosp@m.cisco.nosp@m..com
Mathilde Durvy mdurv.nosp@m.y@ci.nosp@m.sco.c.nosp@m.om

Definition in file uip-nd6.h.