--- embedaddon/miniupnpd/miniupnpdtypes.h 2012/05/29 12:55:57 1.1.1.2 +++ embedaddon/miniupnpd/miniupnpdtypes.h 2013/07/22 00:32:35 1.1.1.3 @@ -1,19 +1,24 @@ -/* $Id: miniupnpdtypes.h,v 1.1.1.2 2012/05/29 12:55:57 misho Exp $ */ +/* $Id: miniupnpdtypes.h,v 1.1.1.3 2013/07/22 00:32:35 misho Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ - * (c) 2006-2007 Thomas Bernard + * (c) 2006-2012 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ -#ifndef __MINIUPNPDTYPES_H__ -#define __MINIUPNPDTYPES_H__ +#ifndef MINIUPNPDTYPES_H_INCLUDED +#define MINIUPNPDTYPES_H_INCLUDED #include "config.h" #include +#include #include /* structure and list for storing lan addresses * with ascii representation and mask */ struct lan_addr_s { + char ifname[IFNAMSIZ]; /* example: eth0 */ +#ifdef ENABLE_IPV6 + unsigned int index; /* use if_nametoindex() */ +#endif char str[16]; /* example: 192.168.0.1 */ struct in_addr addr, mask; /* ip/mask */ #ifdef MULTIPLE_EXTERNAL_IP