ReactOS 0.4.16-dev-258-g81860b4
etharp.h
Go to the documentation of this file.
1
8/*
9 * Copyright (c) 2001-2003 Swedish Institute of Computer Science.
10 * Copyright (c) 2003-2004 Leon Woestenberg <leon.woestenberg@axon.tv>
11 * Copyright (c) 2003-2004 Axon Digital Design B.V., The Netherlands.
12 * All rights reserved.
13 *
14 * Redistribution and use in source and binary forms, with or without modification,
15 * are permitted provided that the following conditions are met:
16 *
17 * 1. Redistributions of source code must retain the above copyright notice,
18 * this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright notice,
20 * this list of conditions and the following disclaimer in the documentation
21 * and/or other materials provided with the distribution.
22 * 3. The name of the author may not be used to endorse or promote products
23 * derived from this software without specific prior written permission.
24 *
25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
26 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
27 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
28 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
30 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
36 * This file is part of the lwIP TCP/IP stack.
37 *
38 * Author: Adam Dunkels <adam@sics.se>
39 *
40 */
41
42#ifndef LWIP_HDR_NETIF_ETHARP_H
43#define LWIP_HDR_NETIF_ETHARP_H
44
45#include "lwip/opt.h"
46
47#if LWIP_ARP || LWIP_ETHERNET /* don't build if not configured for use in lwipopts.h */
48
49#include "lwip/pbuf.h"
50#include "lwip/ip4_addr.h"
51#include "lwip/netif.h"
52#include "lwip/ip4.h"
53#include "lwip/prot/ethernet.h"
54
55#if LWIP_IPV4 && LWIP_ARP /* don't build if not configured for use in lwipopts.h */
56
57#include "lwip/prot/etharp.h"
58
59#ifdef __cplusplus
60extern "C" {
61#endif
62
64#define ARP_TMR_INTERVAL 1000
65
66#if ARP_QUEUEING
70struct etharp_q_entry {
71 struct etharp_q_entry *next;
72 struct pbuf *p;
73};
74#endif /* ARP_QUEUEING */
75
76#define etharp_init() /* Compatibility define, no init needed. */
77void etharp_tmr(void);
78ssize_t etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr,
79 struct eth_addr **eth_ret, const ip4_addr_t **ip_ret);
80int etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret);
81err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr);
82err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q);
83err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr);
88#define etharp_gratuitous(netif) etharp_request((netif), netif_ip4_addr(netif))
89void etharp_cleanup_netif(struct netif *netif);
90
91#if LWIP_ACD
92err_t etharp_acd_probe(struct netif *netif, const ip4_addr_t *ipaddr);
93err_t etharp_acd_announce(struct netif *netif, const ip4_addr_t *ipaddr);
94#endif /* LWIP_ACD */
95
96#if ETHARP_SUPPORT_STATIC_ENTRIES
97err_t etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr);
98err_t etharp_remove_static_entry(const ip4_addr_t *ipaddr);
99#endif /* ETHARP_SUPPORT_STATIC_ENTRIES */
100
101void etharp_input(struct pbuf *p, struct netif *netif);
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif /* LWIP_IPV4 && LWIP_ARP */
108#endif /* LWIP_ARP || LWIP_ETHERNET */
109
110#endif /* LWIP_HDR_NETIF_ETHARP_H */
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
GLfloat GLfloat p
Definition: glext.h:8902
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
s8_t err_t
Definition: err.h:96
static unsigned __int64 next
Definition: rand_nt.c:6
int ssize_t
Definition: rosdhcp.h:48
Definition: netif.h:269
Definition: pbuf.h:186