Lines Matching refs:lan_addr
132 parselanaddr(struct lan_addr_s * lan_addr, const char * str)
152 memcpy(lan_addr->str, str, n);
153 lan_addr->str[n] = '\0';
154 if(!inet_aton(lan_addr->str, &lan_addr->addr))
159 lan_addr->mask.s_addr = htonl(nbits ? (0xffffffff << (32 - nbits)) : 0);
292 if( *ext_ip_addr && parselanaddr(&lan_addr[n_lan_addr], ext_ip_addr) == 0 )
301 if(parselanaddr(&lan_addr[n_lan_addr],
497 if(0 == strcmp(lan_addr[j].str, tmpaddr.str))
504 if(parselanaddr(&lan_addr[n_lan_addr], argv[i]) == 0)
532 if(0 == strcmp(lan_addr[j].str, tmpaddr.str))
539 if(parselanaddr(&lan_addr[n_lan_addr], ext_ip_addr) == 0)
578 if( *ext_ip_addr && parselanaddr(&lan_addr[n_lan_addr], ext_ip_addr) == 0 )
649 "http://%s/admin/", lan_addr[0].str);
652 "http://%s:%d", lan_addr[0].str, runtime_vars.port);
654 "http://%s", lan_addr[0].str);
773 sudp = OpenAndConfSSDPReceiveSocket(n_lan_addr, lan_addr);