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