===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
miniupnpd-2.2.0/upnpdescgen.c-1292-					char ext_ip_addr[INET_ADDRSTRLEN];
miniupnpd-2.2.0/upnpdescgen.c:1293:					if(getifaddr(ext_if_name, ext_ip_addr, INET_ADDRSTRLEN, &addr, NULL) < 0 || addr_is_reserved(&addr)) {
miniupnpd-2.2.0/upnpdescgen.c-1294-						str = strcat_str(str, len, &tmplen, "0.0.0.0");
##############################################
miniupnpd-2.2.0/testupnpdescgen.c-48-
miniupnpd-2.2.0/testupnpdescgen.c:49:int getifaddr(const char * ifname, char * buf, int len, struct in_addr * addr, struct in_addr * mask)
miniupnpd-2.2.0/testupnpdescgen.c-50-{
##############################################
miniupnpd-2.2.0/upnpsoap.c-247-	}
miniupnpd-2.2.0/upnpsoap.c:248:	if(getifaddr(ext_if_name, ext_ip_addr, INET_ADDRSTRLEN, NULL, NULL) < 0) {
miniupnpd-2.2.0/upnpsoap.c-249-		status = "Down";
##############################################
miniupnpd-2.2.0/upnpsoap.c-343-		struct in_addr addr;
miniupnpd-2.2.0/upnpsoap.c:344:		if(getifaddr(ext_if_name, ext_ip_addr, INET_ADDRSTRLEN, &addr, NULL) < 0)
miniupnpd-2.2.0/upnpsoap.c-345-		{
##############################################
miniupnpd-2.2.0/pf/obsdrdr.c-312-	} else {
miniupnpd-2.2.0/pf/obsdrdr.c:313:		if(getifaddr(ifname, extaddr_buf, INET_ADDRSTRLEN, NULL, NULL) < 0) {
miniupnpd-2.2.0/pf/obsdrdr.c-314-			syslog(LOG_WARNING, "failed to get address for interface %s", ifname);
##############################################
miniupnpd-2.2.0/getifaddr.c-29-int
miniupnpd-2.2.0/getifaddr.c:30:getifaddr(const char * ifname, char * buf, int len,
miniupnpd-2.2.0/getifaddr.c-31-          struct in_addr * addr, struct in_addr * mask)
##############################################
miniupnpd-2.2.0/getifaddr.c-206-		return -1;
miniupnpd-2.2.0/getifaddr.c:207:	if(getifaddr(ifname, NULL, 0, &addr4, NULL) < 0)
miniupnpd-2.2.0/getifaddr.c-208-		return -1;
##############################################
miniupnpd-2.2.0/getifaddr.c-220-int
miniupnpd-2.2.0/getifaddr.c:221:find_ipv6_addr(const char * ifname,
miniupnpd-2.2.0/getifaddr.c-222-               char * dst, int n)
##############################################
miniupnpd-2.2.0/getifaddr.h-14-
miniupnpd-2.2.0/getifaddr.h:15:/* getifaddr()
miniupnpd-2.2.0/getifaddr.h-16- * take a network interface name and write the
##############################################
miniupnpd-2.2.0/getifaddr.h-19-int
miniupnpd-2.2.0/getifaddr.h:20:getifaddr(const char * ifname, char * buf, int len,
miniupnpd-2.2.0/getifaddr.h-21-          struct in_addr * addr, struct in_addr * mask);
##############################################
miniupnpd-2.2.0/getifaddr.h-28-int
miniupnpd-2.2.0/getifaddr.h:29:find_ipv6_addr(const char * ifname,
miniupnpd-2.2.0/getifaddr.h-30-               char * dst, int n);
##############################################
miniupnpd-2.2.0/upnpglobalvars.h-34-/* forced ip address to use for this interface
miniupnpd-2.2.0/upnpglobalvars.h:35: * when NULL, getifaddr() is used */
miniupnpd-2.2.0/upnpglobalvars.h-36-extern const char * use_ext_ip_addr;
##############################################
miniupnpd-2.2.0/upnpglobalvars.c-33-/* forced ip address to use for this interface
miniupnpd-2.2.0/upnpglobalvars.c:34: * when NULL, getifaddr() is used */
miniupnpd-2.2.0/upnpglobalvars.c-35-const char * use_ext_ip_addr = 0;
##############################################
miniupnpd-2.2.0/Changelog.txt-227-2015/10/30:
miniupnpd-2.2.0/Changelog.txt:228:  fix : properly call find_ipv6_addr() with the 1st LAN interface
miniupnpd-2.2.0/Changelog.txt-229-  use name server from query in SOAP responses (continued)
##############################################
miniupnpd-2.2.0/Changelog.txt-629-2012/02/15:
miniupnpd-2.2.0/Changelog.txt:630:  Change parselanaddr() function to allow 192.168.1.1/255.255.255.0 in
miniupnpd-2.2.0/Changelog.txt-631-    configuration file.
##############################################
miniupnpd-2.2.0/Changelog.txt-778-2011/04/11:
miniupnpd-2.2.0/Changelog.txt:779:  preparing getifaddr() for IP v6
miniupnpd-2.2.0/Changelog.txt-780-  preparing SSDP stuff for IP v6. Trying to conform to UDA v1.1
##############################################
miniupnpd-2.2.0/Changelog.txt-1220-2007/01/22:
miniupnpd-2.2.0/Changelog.txt:1221:  use getifaddr() for each GetExtenalIPAddress() Call.
miniupnpd-2.2.0/Changelog.txt-1222-  We can change the ip during execution without pb
##############################################
miniupnpd-2.2.0/linux/ifacewatcher.c-118-
miniupnpd-2.2.0/linux/ifacewatcher.c:119:	if (getifaddr(ifname, ifstraddr, 16) < 0)
miniupnpd-2.2.0/linux/ifacewatcher.c-120-	{
miniupnpd-2.2.0/linux/ifacewatcher.c:121:		syslog(LOG_DEBUG, "getifaddr(%s, ifaddr, 16) failed", ifname);
miniupnpd-2.2.0/linux/ifacewatcher.c-122-		return 1;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1053-	range = &mr->range[0];
miniupnpd-2.2.0/netfilter/iptcrdr.c:1054:	range->min_ip = range->max_ip = inet_addr(daddr);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1055-	range->flags |= IP_NAT_RANGE_MAP_IPS;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1077-	range = &mr->range[0];
miniupnpd-2.2.0/netfilter/iptcrdr.c:1078:	range->min_ip = range->max_ip = inet_addr(saddr);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1079-	range->flags |= IP_NAT_RANGE_MAP_IPS;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1251-	if(rhost && (rhost[0] != '\0') && (0 != strcmp(rhost, "*"))) {
miniupnpd-2.2.0/netfilter/iptcrdr.c:1252:		e->ip.src.s_addr = inet_addr(rhost);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1253-		e->ip.smsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1334-	{
miniupnpd-2.2.0/netfilter/iptcrdr.c:1335:		e->ip.src.s_addr = inet_addr(iaddr);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1336-		e->ip.smsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1339-	if(rhost && (rhost[0] != '\0') && (0 != strcmp(rhost, "*"))) {
miniupnpd-2.2.0/netfilter/iptcrdr.c:1340:		e->ip.dst.s_addr = inet_addr(rhost);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1341-		e->ip.dmsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1414-	{
miniupnpd-2.2.0/netfilter/iptcrdr.c:1415:		e->ip.src.s_addr = inet_addr(iaddr);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1416-		e->ip.smsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1420-	{
miniupnpd-2.2.0/netfilter/iptcrdr.c:1421:		e->ip.dst.s_addr = inet_addr(rhost);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1422-		e->ip.dmsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1492-	{
miniupnpd-2.2.0/netfilter/iptcrdr.c:1493:		e->ip.src.s_addr = inet_addr(iaddr);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1494-		e->ip.smsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1498-	{
miniupnpd-2.2.0/netfilter/iptcrdr.c:1499:		e->ip.dst.s_addr = inet_addr(rhost);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1500-		e->ip.dmsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1549-	}
miniupnpd-2.2.0/netfilter/iptcrdr.c:1550:	e->ip.dst.s_addr = inet_addr(iaddr);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1551-	e->ip.dmsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.c-1580-	{
miniupnpd-2.2.0/netfilter/iptcrdr.c:1581:		e->ip.src.s_addr = inet_addr(rhost);
miniupnpd-2.2.0/netfilter/iptcrdr.c-1582-		e->ip.smsk.s_addr = INADDR_NONE;
##############################################
miniupnpd-2.2.0/netfilter/iptcrdr.h-45-
miniupnpd-2.2.0/netfilter/iptcrdr.h:46:int get_nat_ext_addr(struct sockaddr* src, struct sockaddr *dst, uint8_t proto,
miniupnpd-2.2.0/netfilter/iptcrdr.h-47-                     struct sockaddr* ret_ext);
##############################################
miniupnpd-2.2.0/netfilter/iptables_init_and_clean.sh-10-#EXTIF=eth0
miniupnpd-2.2.0/netfilter/iptables_init_and_clean.sh:11:EXTIF="`LC_ALL=C $IP -4 route | grep 'default' | sed -e 's/.*dev[[:space:]]*//' -e 's/[[:space:]].*//'`" || exit 1
miniupnpd-2.2.0/netfilter/iptables_init_and_clean.sh:12:EXTIP="`LC_ALL=C $IP -4 addr show $EXTIF | awk '/inet/ { print $2 }' | cut -d "/" -f 1`"
miniupnpd-2.2.0/netfilter/iptables_init_and_clean.sh-13-
miniupnpd-2.2.0/netfilter/iptables_init_and_clean.sh:14:NDIRTY="`LC_ALL=C $IPTABLES -t nat -L -n | awk '/MINIUPNPD/ {printf $1}'`"
miniupnpd-2.2.0/netfilter/iptables_init_and_clean.sh:15:FDIRTY="`LC_ALL=C $IPTABLES -t filter -L -n | awk '/MINIUPNPD/ {printf $1}'`"
miniupnpd-2.2.0/netfilter/iptables_init_and_clean.sh-16-echo "External IP = $EXTIP"
##############################################
miniupnpd-2.2.0/netfilter/ip6tables_init_and_clean.sh-7-IPTABLES=/sbin/ip6tables
miniupnpd-2.2.0/netfilter/ip6tables_init_and_clean.sh:8:FDIRTY="`LC_ALL=C /sbin/ip6tables -t filter -L -n | grep 'MINIUPNPD' | awk '{printf $1}'`"
miniupnpd-2.2.0/netfilter/ip6tables_init_and_clean.sh-9-
##############################################
miniupnpd-2.2.0/netfilter/nfct_get.c-40-
miniupnpd-2.2.0/netfilter/nfct_get.c:41:int get_nat_ext_addr(struct sockaddr* src, struct sockaddr *dst, uint8_t proto,
miniupnpd-2.2.0/netfilter/nfct_get.c-42-                     struct sockaddr_storage* ret_ext)
##############################################
miniupnpd-2.2.0/netfilter/nfct_get.c-139-
miniupnpd-2.2.0/netfilter/nfct_get.c:140:int get_nat_ext_addr(struct sockaddr* src, struct sockaddr *dst, uint8_t proto,
miniupnpd-2.2.0/netfilter/nfct_get.c-141-                     struct sockaddr_storage* ret_ext)
##############################################
miniupnpd-2.2.0/netfilter/test_nfct_get.c-38-
miniupnpd-2.2.0/netfilter/test_nfct_get.c:39:	if (get_nat_ext_addr((struct sockaddr*)&src, (struct sockaddr*)&dst,
miniupnpd-2.2.0/netfilter/test_nfct_get.c-40-			IPPROTO_TCP, &ext)) {
##############################################
miniupnpd-2.2.0/configure-71-echo $* > .configure.cache
miniupnpd-2.2.0/configure:72:BASEDIR=`dirname "$0"`
miniupnpd-2.2.0/configure-73-RM="rm -f"
##############################################
miniupnpd-2.2.0/configure-83-if [ -n "$SOURCE_DATE_EPOCH" ]; then
miniupnpd-2.2.0/configure:84:	MINIUPNPD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +"%Y%m%d"`
miniupnpd-2.2.0/configure-85-fi
##############################################
miniupnpd-2.2.0/configure-146-echo "" >> ${CONFIGFILE}
miniupnpd-2.2.0/configure:147:echo "#define MINIUPNPD_VERSION \"`cat ${BASEDIR}/VERSION`\"" >> ${CONFIGFILE}
miniupnpd-2.2.0/configure-148-echo "#define MINIUPNPD_DATE	\"$MINIUPNPD_DATE\"" >> ${CONFIGFILE}
##############################################
miniupnpd-2.2.0/configure-177-		MAKEFILE=Makefile.bsd
miniupnpd-2.2.0/configure:178:		MAJORVER=`echo $OS_VERSION | cut -d. -f1`
miniupnpd-2.2.0/configure:179:		MINORVER=`echo $OS_VERSION | cut -d. -f2`
miniupnpd-2.2.0/configure-180-		#echo "OpenBSD majorversion=$MAJORVER minorversion=$MINORVER"
##############################################
miniupnpd-2.2.0/configure-219-		MAKEFILE=Makefile.bsd
miniupnpd-2.2.0/configure:220:		VER=`grep '#define __FreeBSD_version' /usr/include/sys/param.h | awk '{print $3}'`
miniupnpd-2.2.0/configure-221-		if [ $VER -ge 700049 ]; then
##############################################
miniupnpd-2.2.0/configure-320-		OS_URL=http://www.kernel.org/
miniupnpd-2.2.0/configure:321:		KERNVERA=`echo $OS_VERSION | awk -F. '{print $1}'`
miniupnpd-2.2.0/configure:322:		KERNVERB=`echo $OS_VERSION | awk -F. '{print $2}'`
miniupnpd-2.2.0/configure:323:		KERNVERC=`echo $OS_VERSION | awk -F. '{print $3}'`
miniupnpd-2.2.0/configure:324:		KERNVERD=`echo $OS_VERSION | awk -F. '{print $4}'`
miniupnpd-2.2.0/configure-325-		#echo "$KERNVERA.$KERNVERB.$KERNVERC.$KERNVERD"
##############################################
miniupnpd-2.2.0/configure-344-			OS_NAME=ClearOS
miniupnpd-2.2.0/configure:345:			OS_VERSION=`grep ^base_version /etc/product | awk '{ print $3 }'`
miniupnpd-2.2.0/configure-346-			OS_URL=https://www.clearos.com/
##############################################
miniupnpd-2.2.0/configure-350-		if [ 0 -eq $? ]; then
miniupnpd-2.2.0/configure:351:			OS_NAME=`${LSB_RELEASE} -i -s`
miniupnpd-2.2.0/configure:352:			OS_VERSION=`${LSB_RELEASE} -r -s`
miniupnpd-2.2.0/configure-353-			case $OS_NAME in
##############################################
miniupnpd-2.2.0/configure-355-					OS_URL=http://www.debian.org/
miniupnpd-2.2.0/configure:356:					OS_VERSION=`${LSB_RELEASE} -c -s`
miniupnpd-2.2.0/configure-357-					;;
##############################################
miniupnpd-2.2.0/configure-359-					OS_URL=http://www.ubuntu.com/
miniupnpd-2.2.0/configure:360:					OS_VERSION=`${LSB_RELEASE} -c -s`
miniupnpd-2.2.0/configure-361-					;;
##############################################
miniupnpd-2.2.0/configure-380-		fi
miniupnpd-2.2.0/configure:381:		V6SOCKETS_ARE_V6ONLY=`$(find /sbin /bin /usr/sbin /usr/bin -name sysctl) -n net.ipv6.bindv6only`
miniupnpd-2.2.0/configure-382-		;;
##############################################
miniupnpd-2.2.0/configure-415-		MAKEFILE=Makefile.macosx
miniupnpd-2.2.0/configure:416:		MAJORVER=`echo $OS_VERSION | cut -d. -f1`
miniupnpd-2.2.0/configure-417-		echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
##############################################
miniupnpd-2.2.0/configure-452-			if ${PKG_CONFIG} --exists libiptc ; then
miniupnpd-2.2.0/configure:453:				IPTABLESVERSION=`${PKG_CONFIG} --modversion libiptc`
miniupnpd-2.2.0/configure-454-				echo "detected libiptc version $IPTABLESVERSION"
##############################################
miniupnpd-2.2.0/configure-456-				echo "IPTABLES_PCFILE_FOUND = 1" >> config.mk
miniupnpd-2.2.0/configure:457:				IPTVER1=`echo $IPTABLESVERSION | cut -d. -f1`
miniupnpd-2.2.0/configure:458:				IPTVER2=`echo $IPTABLESVERSION | cut -d. -f2`
miniupnpd-2.2.0/configure:459:				IPTVER3=`echo $IPTABLESVERSION | cut -d. -f3`
miniupnpd-2.2.0/configure-460-				if [ $IPTVER1 -gt 1 ] || \
##############################################
miniupnpd-2.2.0/configure-464-				fi
miniupnpd-2.2.0/configure:465:				echo "CFLAGS += `${PKG_CONFIG} --cflags libiptc`" >> config.mk
miniupnpd-2.2.0/configure:466:				echo "LDLIBS += `${PKG_CONFIG} --static --libs-only-l libiptc`" >> config.mk
miniupnpd-2.2.0/configure:467:				echo "LDFLAGS += `${PKG_CONFIG} --libs-only-L --libs-only-other libiptc`" >> config.mk
miniupnpd-2.2.0/configure-468-			fi
##############################################
miniupnpd-2.2.0/configure-471-				echo "CPPFLAGS += -DUSE_NFCT" >> config.mk
miniupnpd-2.2.0/configure:472:				echo "LDLIBS += `${PKG_CONFIG} --static --libs-only-l libmnl libnetfilter_conntrack`" >> config.mk
miniupnpd-2.2.0/configure-473-			fi
##############################################
miniupnpd-2.2.0/configure-479-			if [ -z "$TARGET_OPENWRT" ] ; then
miniupnpd-2.2.0/configure:480:				IPTABLESVERSION=`grep "\#define VERSION" ${IPTABLESPATH}/config.h | tr -d \" |cut -d" " -f3`
miniupnpd-2.2.0/configure-481-				echo "detected libiptc version $IPTABLESVERSION"
miniupnpd-2.2.0/configure-482-				echo "# detected libiptc version $IPTABLESVERSION" >> config.mk
miniupnpd-2.2.0/configure:483:				IPTVER1=`echo $IPTABLESVERSION | cut -d. -f1`
miniupnpd-2.2.0/configure:484:				IPTVER2=`echo $IPTABLESVERSION | cut -d. -f2`
miniupnpd-2.2.0/configure:485:				IPTVER3=`echo $IPTABLESVERSION | cut -d. -f3`
miniupnpd-2.2.0/configure-486-				if [ $IPTVER1 -gt 1 ] || \
##############################################
miniupnpd-2.2.0/configure-504-				fi
miniupnpd-2.2.0/configure:505:				arch=`echo $OS_MACHINE | grep -q x86_64 && echo 64`
miniupnpd-2.2.0/configure-506-				if test -f /usr/lib${arch}/libiptc.a ; then
##############################################
miniupnpd-2.2.0/configure-550-		if ${PKG_CONFIG} --exists libcap-ng ; then
miniupnpd-2.2.0/configure:551:			echo "detected libcap-ng `${PKG_CONFIG} --modversion libcap-ng`"
miniupnpd-2.2.0/configure:552:			echo "CFLAGS += `${PKG_CONFIG} --cflags libcap-ng`" >> config.mk
miniupnpd-2.2.0/configure:553:			echo "LDLIBS += `${PKG_CONFIG} --libs-only-l libcap-ng`" >> config.mk
miniupnpd-2.2.0/configure:554:			echo "LDFLAGS += `${PKG_CONFIG} --libs-only-L --libs-only-other libcap-ng`" >> config.mk
miniupnpd-2.2.0/configure-555-			echo "#define HAS_LIBCAP_NG" >> ${CONFIGFILE}
miniupnpd-2.2.0/configure-556-		elif ${PKG_CONFIG} --exists libcap ; then
miniupnpd-2.2.0/configure:557:			echo "detected libcap `${PKG_CONFIG} --modversion libcap`"
miniupnpd-2.2.0/configure:558:			echo "CFLAGS += `${PKG_CONFIG} --cflags libcap`" >> config.mk
miniupnpd-2.2.0/configure:559:			echo "LDLIBS += `${PKG_CONFIG} --libs-only-l libcap`" >> config.mk
miniupnpd-2.2.0/configure:560:			echo "LDFLAGS += `${PKG_CONFIG} --libs-only-L --libs-only-other libcap`" >> config.mk
miniupnpd-2.2.0/configure-561-			echo "#define HAS_LIBCAP" >> ${CONFIGFILE}
##############################################
miniupnpd-2.2.0/minissdp.c-48-#define SSDP_PORT (1900)
miniupnpd-2.2.0/minissdp.c:49:#define SSDP_MCAST_ADDR ("239.255.255.250")
miniupnpd-2.2.0/minissdp.c-50-#define LL_SSDP_MCAST_ADDR "FF02::C"
##############################################
miniupnpd-2.2.0/minissdp.c-68-	/* setting up imr structure */
miniupnpd-2.2.0/minissdp.c:69:	imr.imr_multiaddr.s_addr = inet_addr(SSDP_MCAST_ADDR);
miniupnpd-2.2.0/minissdp.c-70-	/*imr.imr_interface.s_addr = htonl(INADDR_ANY);*/
##############################################
miniupnpd-2.2.0/minissdp.c-132-#if defined(ENABLE_IPV6) && defined(UPNP_STRICT)
miniupnpd-2.2.0/minissdp.c:133:static int get_link_local_addr(unsigned scope_id, struct in6_addr * addr6)
miniupnpd-2.2.0/minissdp.c-134-{
##############################################
miniupnpd-2.2.0/minissdp.c-189-		/* NOTE : it seems it doesn't work when binding on the specific address */
miniupnpd-2.2.0/minissdp.c:190:		/*saddr->sin_addr.s_addr = inet_addr(UPNP_MCAST_ADDR);*/
miniupnpd-2.2.0/minissdp.c-191-		saddr->sin_addr.s_addr = htonl(INADDR_ANY);
miniupnpd-2.2.0/minissdp.c:192:		/*saddr->sin_addr.s_addr = inet_addr(ifaddr);*/
miniupnpd-2.2.0/minissdp.c-193-		sockname_len = sizeof(struct sockaddr_in);
##############################################
miniupnpd-2.2.0/minissdp.c-309-#ifndef HAVE_IP_MREQN
miniupnpd-2.2.0/minissdp.c:310:	mc_if.s_addr = lan_addr->addr.s_addr;	/*inet_addr(addr);*/
miniupnpd-2.2.0/minissdp.c-311-#else	/* HAVE_IP_MREQN */
miniupnpd-2.2.0/minissdp.c:312:	mc_if.imr_address.s_addr = lan_addr->addr.s_addr;	/*inet_addr(addr);*/
miniupnpd-2.2.0/minissdp.c-313-#ifdef ENABLE_IPV6
##############################################
miniupnpd-2.2.0/minissdp.c-351-	sockname.sin_family = AF_INET;
miniupnpd-2.2.0/minissdp.c:352:	sockname.sin_addr.s_addr = lan_addr->addr.s_addr;	/*inet_addr(addr);*/
miniupnpd-2.2.0/minissdp.c-353-
##############################################
miniupnpd-2.2.0/minissdp.c-780-			p->sin_port = htons(SSDP_PORT);
miniupnpd-2.2.0/minissdp.c:781:			p->sin_addr.s_addr = inet_addr(SSDP_MCAST_ADDR);
miniupnpd-2.2.0/minissdp.c-782-			dest_str = SSDP_MCAST_ADDR;
##############################################
miniupnpd-2.2.0/minissdp.c-1157-				if(IN6_IS_ADDR_LINKLOCAL(&(((struct sockaddr_in6 *)sender)->sin6_addr))) {
miniupnpd-2.2.0/minissdp.c:1158:					get_link_local_addr(((struct sockaddr_in6 *)sender)->sin6_scope_id, &addr6);
miniupnpd-2.2.0/minissdp.c-1159-				} else if(get_src_for_route_to (sender, &addr6, &addr6_len, &index) < 0) {
##############################################
miniupnpd-2.2.0/minissdp.c-1422-	sockname4.sin_port = htons(SSDP_PORT);
miniupnpd-2.2.0/minissdp.c:1423:	sockname4.sin_addr.s_addr = inet_addr(SSDP_MCAST_ADDR);
miniupnpd-2.2.0/minissdp.c-1424-#ifdef ENABLE_IPV6
##############################################
miniupnpd-2.2.0/natpmp.h-18-#define NATPMP_NOTIF_PORT	(5350)
miniupnpd-2.2.0/natpmp.h:19:#define NATPMP_NOTIF_ADDR	("224.0.0.1")
miniupnpd-2.2.0/natpmp.h-20-
##############################################
miniupnpd-2.2.0/natpmp.c-106-			                 * has not obtained a DHCP lease) */
miniupnpd-2.2.0/natpmp.c:107:		} else if(getifaddr(ext_if_name, tmp, INET_ADDRSTRLEN, &addr, NULL) < 0) {
miniupnpd-2.2.0/natpmp.c-108-			syslog(LOG_ERR, "Failed to get IP for interface %s", ext_if_name);
##############################################
miniupnpd-2.2.0/natpmp.c-451-    sockname.sin_family = AF_INET;
miniupnpd-2.2.0/natpmp.c:452:    sockname.sin_addr.s_addr = inet_addr(NATPMP_NOTIF_ADDR);
miniupnpd-2.2.0/natpmp.c-453-
##############################################
miniupnpd-2.2.0/testgetifaddr.c-34-	openlog("testgetifaddr", LOG_CONS|LOG_PERROR, LOG_USER);
miniupnpd-2.2.0/testgetifaddr.c:35:	if(getifaddr(argv[1], str_addr, sizeof(str_addr), &addr, &mask) < 0) {
miniupnpd-2.2.0/testgetifaddr.c-36-		fprintf(stderr, "Cannot get address for interface %s.\n", argv[1]);
##############################################
miniupnpd-2.2.0/testgetifaddr.c-42-#ifdef ENABLE_IPV6
miniupnpd-2.2.0/testgetifaddr.c:43:	r = find_ipv6_addr(argv[1], str_addr6, sizeof(str_addr6));
miniupnpd-2.2.0/testgetifaddr.c-44-	if(r < 0) {
miniupnpd-2.2.0/testgetifaddr.c:45:		fprintf(stderr, "find_ipv6_addr() failed\n");
miniupnpd-2.2.0/testgetifaddr.c-46-		return 1;
##############################################
miniupnpd-2.2.0/getconnstatus.c-37-	 * I'm afraid it should be device specific */
miniupnpd-2.2.0/getconnstatus.c:38:	r = getifaddr(ifname, addr, INET_ADDRSTRLEN, NULL, NULL);
miniupnpd-2.2.0/getconnstatus.c-39-	return (r < 0) ? STATUS_DISCONNECTED : STATUS_CONNECTED;
##############################################
miniupnpd-2.2.0/pcpserver.c-714-	/* already established use this external port */
miniupnpd-2.2.0/pcpserver.c:715:	if (get_nat_ext_addr( (struct sockaddr*)&intip, (struct sockaddr*)&peerip,
miniupnpd-2.2.0/pcpserver.c-716-			      proto, (struct sockaddr*)&ret_extip) == 1) {
##############################################
miniupnpd-2.2.0/pcpserver.c-1681-	addr.sin_family = AF_INET;
miniupnpd-2.2.0/pcpserver.c:1682:	addr.sin_addr.s_addr = inet_addr("224.0.0.1");
miniupnpd-2.2.0/pcpserver.c-1683-	addr.sin_port = htons(5350);
##############################################
miniupnpd-2.2.0/testasyncsendto.c-58-	dest_addr.sin_family = AF_INET;
miniupnpd-2.2.0/testasyncsendto.c:59:	dest_addr.sin_addr.s_addr = inet_addr(DEST_IP);
miniupnpd-2.2.0/testasyncsendto.c-60-	dest_addr.sin_port =  htons(DEST_PORT);
##############################################
miniupnpd-2.2.0/portinuse.c-82-
miniupnpd-2.2.0/portinuse.c:83:	if(getifaddr(if_name, ip_addr_str, INET_ADDRSTRLEN, &ip_addr, NULL) < 0) {
miniupnpd-2.2.0/portinuse.c-84-		ip_addr.s_addr = 0;
##############################################
miniupnpd-2.2.0/netfilter_nft/nfct_get.c-40-
miniupnpd-2.2.0/netfilter_nft/nfct_get.c:41:int get_nat_ext_addr(struct sockaddr* src, struct sockaddr *dst, uint8_t proto,
miniupnpd-2.2.0/netfilter_nft/nfct_get.c-42-                     struct sockaddr_storage* ret_ext)
##############################################
miniupnpd-2.2.0/netfilter_nft/nfct_get.c-139-
miniupnpd-2.2.0/netfilter_nft/nfct_get.c:140:int get_nat_ext_addr(struct sockaddr* src, struct sockaddr *dst, uint8_t proto,
miniupnpd-2.2.0/netfilter_nft/nfct_get.c-141-                     struct sockaddr_storage* ret_ext)
##############################################
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-260-	                  0, eport,
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c:261:	                  inet_addr(iaddr), iport,  desc, NULL);
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-262-
##############################################
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-288-	r = rule_set_snat(NFPROTO_IPV4, proto,
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c:289:	                  inet_addr(rhost), rport,
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c:290:	                  inet_addr(eaddr), eport,
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c:291:	                  inet_addr(iaddr), iport, desc, NULL);
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-292-
##############################################
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-314-	if (rhost != NULL && strcmp(rhost, "") != 0 && strcmp(rhost, "*") != 0) {
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c:315:		rhost_addr = inet_addr(rhost);
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-316-	}
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-317-	r = rule_set_filter(NFPROTO_INET, ifname, proto,
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c:318:	                    rhost_addr, inet_addr(iaddr),
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.c-319-	                    eport, iport, 0,
##############################################
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.h-80-/* in nfct_get.c */
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.h:81:int get_nat_ext_addr(struct sockaddr* src, struct sockaddr *dst, uint8_t proto,
miniupnpd-2.2.0/netfilter_nft/nftnlrdr.h-82-		     struct sockaddr* ret_ext);
##############################################
miniupnpd-2.2.0/netfilter_nft/test_nfct_get.c-45-
miniupnpd-2.2.0/netfilter_nft/test_nfct_get.c:46:	if (get_nat_ext_addr((struct sockaddr*)&src, (struct sockaddr*)&dst,
miniupnpd-2.2.0/netfilter_nft/test_nfct_get.c-47-			IPPROTO_TCP, &ext)) {
##############################################
miniupnpd-2.2.0/check.mk-7-	./miniupnpd --version
miniupnpd-2.2.0/check.mk:8:	[ "`./miniupnpd --version | head -1 | cut -d' ' -f-2`" = "miniupnpd `cat $(SRCDIR)/VERSION`" ]
miniupnpd-2.2.0/check.mk-9-	touch $@
##############################################
miniupnpd-2.2.0/debian/patches/miniupnpd-allow-ipv4-listening-specify.patch-4-+++ b/miniupnpd.c
miniupnpd-2.2.0/debian/patches/miniupnpd-allow-ipv4-listening-specify.patch:5:@@ -1044,20 +1044,10 @@ parselanaddr(struct lan_addr_s * lan_addr, const char * str)
miniupnpd-2.2.0/debian/patches/miniupnpd-allow-ipv4-listening-specify.patch-6- 			fprintf(stderr, "Cannot get index for network interface %s\n",
##############################################
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh-8-	IFCONFIG="`which ifconfig`" || exit 1
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh:9:	EXTIF="`$NS -r -f inet | grep 'default' | awk '{ print $NF  }' `" || exit 1
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh:10:	EXTIP="`$IFCONFIG $EXTIF | awk '/inet / { print $2 }' `"
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh-11-	;;
##############################################
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh-13-	IP="`which ip`" || exit 1
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh:14:	EXTIF="`LC_ALL=C $IP -4 route | grep 'default' | sed -e 's/.*dev[[:space:]]*//' -e 's/[[:space:]].*//'`" || exit 1
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh:15:	EXTIP="`LC_ALL=C $IP -4 addr show $EXTIF | awk '/inet/ { print $2 }' | cut -d "/" -f 1`"
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh-16-	;;
##############################################
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh-19-#echo "Interface : $EXTIF   IP address : $EXTIP"
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh:20:RES=`./testgetifaddr $EXTIF | head -n1 | sed 's/Interface .* has IP address \(.*\)\./\1/'` || exit 1
miniupnpd-2.2.0/debian/tests/testgetifaddr.sh-21-
##############################################
miniupnpd-2.2.0/.pc/makefile-tweak.patch/Makefile.linux-157-else
miniupnpd-2.2.0/.pc/makefile-tweak.patch/Makefile.linux:158:	sed -e "s/^uuid=[-0-9a-f]*/uuid=`($(STAGING_DIR_HOST)/bin/genuuid||$(STAGING_DIR_HOST)/bin/uuidgen||$(STAGING_DIR_HOST)/bin/uuid) 2>/dev/null`/" $< > $@.tmp
miniupnpd-2.2.0/.pc/makefile-tweak.patch/Makefile.linux-159-endif
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-904-
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:905:/* parselanaddr()
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-906- * parse address with mask
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-917-static int
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:918:parselanaddr(struct lan_addr_s * lan_addr, const char * str)
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-919-{
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-933-		lan_addr->ifname[n] = '\0';
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:934:		if(getifaddr(lan_addr->ifname, lan_addr->str, sizeof(lan_addr->str),
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-935-		             &lan_addr->addr, &lan_addr->mask) < 0) {
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1077-
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:1078:	if (getifaddr(ext_if_name, if_addr_str, INET_ADDRSTRLEN, &if_addr, NULL) < 0) {
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1079-		syslog(LOG_ERR, "STUN: Cannot get IP address for ext interface %s", ext_if_name);
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1244-				}
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:1245:				if(parselanaddr(lan_addr, ary_options[i].value) != 0)
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1246-				{
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1658-				}
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:1659:				if(parselanaddr(lan_addr, argv[i]) != 0)
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1660-				{
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1697-				}
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:1698:				if(parselanaddr(lan_addr, val) != 0)
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-1699-				{
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-2174-		struct in_addr addr;
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:2175:		if (getifaddr(ext_if_name, if_addr, INET_ADDRSTRLEN, &addr, NULL) < 0) {
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-2176-			syslog(LOG_WARNING, "Cannot get IP address for ext interface %s. Network is down", ext_if_name);
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-2238-		if(!GETFLAG(IPV6DISABLEDMASK)) {
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:2239:			if(find_ipv6_addr(lan_addrs.lh_first ? lan_addrs.lh_first->ifname : NULL,
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-2240-			                  ipv6_addr_for_http_with_brackets, sizeof(ipv6_addr_for_http_with_brackets)) > 0) {
##############################################
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-2444-				struct in_addr addr;
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c:2445:				if (getifaddr(ext_if_name, if_addr, INET_ADDRSTRLEN, &addr, NULL) == 0) {
miniupnpd-2.2.0/.pc/miniupnpd-allow-ipv4-listening-specify.patch/miniupnpd.c-2446-					int reserved = addr_is_reserved(&addr);
##############################################
miniupnpd-2.2.0/Makefile.linux-154-else
miniupnpd-2.2.0/Makefile.linux:155:	sed -e "s/^uuid=[-0-9a-f]*/uuid=`($(STAGING_DIR_HOST)/bin/genuuid||$(STAGING_DIR_HOST)/bin/uuidgen||$(STAGING_DIR_HOST)/bin/uuid) 2>/dev/null`/" $< > $@.tmp
miniupnpd-2.2.0/Makefile.linux-156-endif
##############################################
miniupnpd-2.2.0/miniupnpd.c-904-
miniupnpd-2.2.0/miniupnpd.c:905:/* parselanaddr()
miniupnpd-2.2.0/miniupnpd.c-906- * parse address with mask
##############################################
miniupnpd-2.2.0/miniupnpd.c-917-static int
miniupnpd-2.2.0/miniupnpd.c:918:parselanaddr(struct lan_addr_s * lan_addr, const char * str)
miniupnpd-2.2.0/miniupnpd.c-919-{
##############################################
miniupnpd-2.2.0/miniupnpd.c-933-		lan_addr->ifname[n] = '\0';
miniupnpd-2.2.0/miniupnpd.c:934:		if(getifaddr(lan_addr->ifname, lan_addr->str, sizeof(lan_addr->str),
miniupnpd-2.2.0/miniupnpd.c-935-		             &lan_addr->addr, &lan_addr->mask) < 0) {
##############################################
miniupnpd-2.2.0/miniupnpd.c-1067-
miniupnpd-2.2.0/miniupnpd.c:1068:	if (getifaddr(ext_if_name, if_addr_str, INET_ADDRSTRLEN, &if_addr, NULL) < 0) {
miniupnpd-2.2.0/miniupnpd.c-1069-		syslog(LOG_ERR, "STUN: Cannot get IP address for ext interface %s", ext_if_name);
##############################################
miniupnpd-2.2.0/miniupnpd.c-1234-				}
miniupnpd-2.2.0/miniupnpd.c:1235:				if(parselanaddr(lan_addr, ary_options[i].value) != 0)
miniupnpd-2.2.0/miniupnpd.c-1236-				{
##############################################
miniupnpd-2.2.0/miniupnpd.c-1648-				}
miniupnpd-2.2.0/miniupnpd.c:1649:				if(parselanaddr(lan_addr, argv[i]) != 0)
miniupnpd-2.2.0/miniupnpd.c-1650-				{
##############################################
miniupnpd-2.2.0/miniupnpd.c-1687-				}
miniupnpd-2.2.0/miniupnpd.c:1688:				if(parselanaddr(lan_addr, val) != 0)
miniupnpd-2.2.0/miniupnpd.c-1689-				{
##############################################
miniupnpd-2.2.0/miniupnpd.c-2164-		struct in_addr addr;
miniupnpd-2.2.0/miniupnpd.c:2165:		if (getifaddr(ext_if_name, if_addr, INET_ADDRSTRLEN, &addr, NULL) < 0) {
miniupnpd-2.2.0/miniupnpd.c-2166-			syslog(LOG_WARNING, "Cannot get IP address for ext interface %s. Network is down", ext_if_name);
##############################################
miniupnpd-2.2.0/miniupnpd.c-2228-		if(!GETFLAG(IPV6DISABLEDMASK)) {
miniupnpd-2.2.0/miniupnpd.c:2229:			if(find_ipv6_addr(lan_addrs.lh_first ? lan_addrs.lh_first->ifname : NULL,
miniupnpd-2.2.0/miniupnpd.c-2230-			                  ipv6_addr_for_http_with_brackets, sizeof(ipv6_addr_for_http_with_brackets)) > 0) {
##############################################
miniupnpd-2.2.0/miniupnpd.c-2434-				struct in_addr addr;
miniupnpd-2.2.0/miniupnpd.c:2435:				if (getifaddr(ext_if_name, if_addr, INET_ADDRSTRLEN, &addr, NULL) == 0) {
miniupnpd-2.2.0/miniupnpd.c-2436-					int reserved = addr_is_reserved(&addr);