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

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

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