Annotation of embedaddon/miniupnpd/miniupnpdtypes.h, revision 1.1.1.3

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>