ReactOS 0.4.16-dev-258-g81860b4
nd6.h
Go to the documentation of this file.
1
9/*
10 * Copyright (c) 2010 Inico Technologies Ltd.
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without modification,
14 * are permitted provided that the following conditions are met:
15 *
16 * 1. Redistributions of source code must retain the above copyright notice,
17 * this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright notice,
19 * this list of conditions and the following disclaimer in the documentation
20 * and/or other materials provided with the distribution.
21 * 3. The name of the author may not be used to endorse or promote products
22 * derived from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
25 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
27 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
29 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
33 * OF SUCH DAMAGE.
34 *
35 * This file is part of the lwIP TCP/IP stack.
36 *
37 * Author: Ivan Delamer <delamer@inicotech.com>
38 *
39 *
40 * Please coordinate changes and requests with Ivan Delamer
41 * <delamer@inicotech.com>
42 */
43
44#ifndef LWIP_HDR_ND6_H
45#define LWIP_HDR_ND6_H
46
47#include "lwip/opt.h"
48
49#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */
50
51#include "lwip/ip6_addr.h"
52#include "lwip/err.h"
53
54#ifdef __cplusplus
55extern "C" {
56#endif
57
59#define ND6_TMR_INTERVAL 1000
60
62#ifndef ND6_RTR_SOLICITATION_INTERVAL
63#define ND6_RTR_SOLICITATION_INTERVAL 4000
64#endif
65
66struct pbuf;
67struct netif;
68
69void nd6_tmr(void);
70void nd6_input(struct pbuf *p, struct netif *inp);
71void nd6_clear_destination_cache(void);
72struct netif *nd6_find_route(const ip6_addr_t *ip6addr);
73err_t nd6_get_next_hop_addr_or_queue(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr, const u8_t **hwaddrp);
74u16_t nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif);
75#if LWIP_ND6_TCP_REACHABILITY_HINTS
76void nd6_reachability_hint(const ip6_addr_t *ip6addr);
77#endif /* LWIP_ND6_TCP_REACHABILITY_HINTS */
78void nd6_cleanup_netif(struct netif *netif);
79#if LWIP_IPV6_MLD
80void nd6_adjust_mld_membership(struct netif *netif, s8_t addr_idx, u8_t new_state);
81#endif /* LWIP_IPV6_MLD */
82void nd6_restart_netif(struct netif *netif);
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif /* LWIP_IPV6 */
89
90#endif /* LWIP_HDR_ND6_H */
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
GLfloat GLfloat p
Definition: glext.h:8902
uint8_t u8_t
Definition: arch.h:125
uint16_t u16_t
Definition: arch.h:127
int8_t s8_t
Definition: arch.h:126
s8_t err_t
Definition: err.h:96
Definition: netif.h:269
Definition: pbuf.h:186