Electroneum
miniupnpdtypes.h
Go to the documentation of this file.
1
/* $Id: miniupnpdtypes.h,v 1.4 2012/04/06 15:27:21 nanard Exp $ */
2
/* MiniUPnP project
3
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4
* (c) 2006-2012 Thomas Bernard
5
* This software is subject to the conditions detailed
6
* in the LICENCE file provided within the distribution */
7
#ifndef MINIUPNPDTYPES_H_INCLUDED
8
#define MINIUPNPDTYPES_H_INCLUDED
9
10
#include "config.h"
11
#include <netinet/in.h>
12
#include <net/if.h>
13
#include <sys/queue.h>
14
15
/* structure and list for storing lan addresses
16
* with ascii representation and mask */
17
struct
lan_addr_s
{
18
char
ifname
[IFNAMSIZ];
/* example: eth0 */
19
unsigned
int
index
;
/* use if_nametoindex() */
20
char
str
[16];
/* example: 192.168.0.1 */
21
struct
in_addr addr,
mask
;
/* ip/mask */
22
#ifdef MULTIPLE_EXTERNAL_IP
23
char
ext_ip_str[16];
24
struct
in_addr ext_ip_addr;
25
#endif
26
LIST_ENTRY
(
lan_addr_s
) list;
27
};
28
LIST_HEAD
(lan_addr_list,
lan_addr_s
);
29
30
#endif
lan_addr_s
Definition:
minissdpdtypes.h:17
lan_addr_s::index
unsigned int index
Definition:
minissdpdtypes.h:20
lan_addr_s::mask
struct in_addr addr mask
Definition:
minissdpdtypes.h:23
lan_addr_s::LIST_ENTRY
LIST_ENTRY(lan_addr_s) list
LIST_HEAD
LIST_HEAD(lan_addr_list, lan_addr_s)
lan_addr_s::ifname
char ifname[IFNAMSIZ]
Definition:
minissdpdtypes.h:18
lan_addr_s::str
char str[16]
Definition:
minissdpdtypes.h:22
external
miniupnp
miniupnpd
miniupnpdtypes.h
Generated on Sun Mar 10 2024 12:00:00 for Electroneum by
1.8.14