Electroneum
minissdpdtypes.h
Go to the documentation of this file.
1 /* $Id: minissdpdtypes.h,v 1.1 2014/11/28 16:20:58 nanard Exp $ */
2 /* MiniUPnP project
3  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
4  * (c) 2006-2014 Thomas Bernard
5  * This software is subject to the conditions detailed
6  * in the LICENCE file provided within the distribution */
7 #ifndef MINISSDPDTYPES_H_INCLUDED
8 #define MINISSDPDTYPES_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 #ifdef ENABLE_IPV6
20  unsigned int index; /* use if_nametoindex() */
21 #endif /* ENABLE_IPV6 */
22  char str[16]; /* example: 192.168.0.1 */
23  struct in_addr addr, mask; /* ip/mask */
24  LIST_ENTRY(lan_addr_s) list;
25 };
26 LIST_HEAD(lan_addr_list, lan_addr_s);
27 
28 #endif /* MINISSDPDTYPES_H_INCLUDED */
LIST_HEAD(lan_addr_list, lan_addr_s)
unsigned int index
struct in_addr addr mask
LIST_ENTRY(lan_addr_s) list
char ifname[IFNAMSIZ]
char str[16]