ReactOS
0.4.16-dev-1172-g2041f3c
if_api.h
Go to the documentation of this file.
1
8
/*
9
* Copyright (c) 2017 Joel Cunningham, Garmin International, Inc. <joel.cunningham@garmin.com>
10
* All rights reserved.
11
*
12
* Redistribution and use in source and binary forms, with or without modification,
13
* are permitted provided that the following conditions are met:
14
*
15
* 1. Redistributions of source code must retain the above copyright notice,
16
* this list of conditions and the following disclaimer.
17
* 2. Redistributions in binary form must reproduce the above copyright notice,
18
* this list of conditions and the following disclaimer in the documentation
19
* and/or other materials provided with the distribution.
20
* 3. The name of the author may not be used to endorse or promote products
21
* derived from this software without specific prior written permission.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
24
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
26
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
28
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
31
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
32
* OF SUCH DAMAGE.
33
*
34
* This file is part of the lwIP TCP/IP stack.
35
*
36
* Author: Joel Cunningham <joel.cunningham@me.com>
37
*
38
*/
39
#ifndef LWIP_HDR_IF_H
40
#define LWIP_HDR_IF_H
41
42
#include "
lwip/opt.h
"
43
44
#if LWIP_SOCKET
/* don't build if not configured for use in lwipopts.h */
45
46
#include "
lwip/netif.h
"
47
48
#ifdef __cplusplus
49
extern
"C"
{
50
#endif
51
52
#ifndef IF_NAMESIZE
53
#define IF_NAMESIZE NETIF_NAMESIZE
54
#endif
55
56
char
* lwip_if_indextoname(
unsigned
int
ifindex,
char
*ifname);
57
unsigned
int
lwip_if_nametoindex(
const
char
*ifname);
58
59
#if LWIP_COMPAT_SOCKETS
60
#define if_indextoname(ifindex, ifname) lwip_if_indextoname(ifindex,ifname)
61
#define if_nametoindex(ifname) lwip_if_nametoindex(ifname)
62
#endif
/* LWIP_COMPAT_SOCKETS */
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif
/* LWIP_SOCKET */
69
70
#endif
/* LWIP_HDR_IF_H */
netif.h
opt.h
drivers
network
tcpip
lwip
src
include
lwip
if_api.h
Generated on Sat May 24 2025 06:06:11 for ReactOS by
1.9.6