Lines Matching refs:net

115     const struct in_addr *addr, const struct in_addr *net)  in ipv4_iffindaddr()  argument
124 (net == NULL || ap->net.s_addr == net->s_addr)) in ipv4_iffindaddr()
262 rt->net.s_addr == r->net.s_addr) in find_route()
276 if (rt->net.s_addr == htonl(INADDR_BROADCAST) && in desc_route()
280 else if (rt->net.s_addr == htonl(INADDR_BROADCAST)) in desc_route()
285 ifname, cmd, addr, inet_ntocidr(rt->net)); in desc_route()
287 rt->net.s_addr == htonl(INADDR_ANY)) in desc_route()
292 ifname, cmd, addr, inet_ntocidr(rt->net), in desc_route()
311 rt->net.s_addr == r->net.s_addr) in ipv4_findrt()
373 nrt->net.s_addr == 0 && in nc_route()
395 ort->net.s_addr == nrt->net.s_addr && in nc_route()
451 if (s->net.s_addr == INADDR_ANY) in add_subnet_route()
455 if (s->net.s_addr == INADDR_BROADCAST) in add_subnet_route()
464 r->dest.s_addr = s->addr.s_addr & s->net.s_addr; in add_subnet_route()
465 r->net.s_addr = s->net.s_addr; in add_subnet_route()
493 r->net.s_addr = INADDR_BROADCAST; in add_loopback_route()
541 r->net.s_addr = htonl(INADDR_BROADCAST); in massage_host_routes()
566 r->net.s_addr = INADDR_ANY; in add_destination_route()
598 cp3 = (const char *)&rtn->net.s_addr; in add_router_host_route()
599 cplim = cp3 + sizeof(rtn->net.s_addr); in add_router_host_route()
638 rtn->net.s_addr = htonl(INADDR_BROADCAST); in add_router_host_route()
744 const struct in_addr *addr, const struct in_addr *net) in ipv4_deladdr() argument
753 ifp->name, inet_ntoa(*addr), inet_ntocidr(*net)); in ipv4_deladdr()
755 r = if_deladdress(ifp, addr, net); in ipv4_deladdr()
762 dstate->net.s_addr == net->s_addr) in ipv4_deladdr()
766 dstate->net.s_addr = 0; in ipv4_deladdr()
772 ap->net.s_addr == net->s_addr) in ipv4_deladdr()
795 r = ipv4_deladdr(ifp, &state->addr, &state->net); in delete_address()
833 ipv4_deladdr(ifp, &ia->addr, &ia->net); in ipv4_addaddr()
844 inet_ntocidr(lease->net)); in ipv4_addaddr()
845 if (if_addaddress(ifp, &lease->addr, &lease->net, &lease->brd) == -1) { in ipv4_addaddr()
855 ia->net = lease->net; in ipv4_addaddr()
896 state->net.s_addr = lease->net.s_addr; in ipv4_finaliseaddr()
973 state->net.s_addr = lease->net.s_addr; in ipv4_applyaddr()
980 ipv4_deladdr(ifn, &nstate->addr, &nstate->net); in ipv4_applyaddr()
993 ipv4_deladdr(ifn, &ap->addr, &ap->net); in ipv4_applyaddr()
999 if (ap && ap->net.s_addr != lease->net.s_addr) in ipv4_applyaddr()
1000 ipv4_deladdr(ifp, &ap->addr, &ap->net); in ipv4_applyaddr()
1002 if (ipv4_iffindaddr(ifp, &lease->addr, &lease->net)) in ipv4_applyaddr()
1006 inet_ntocidr(lease->net)); in ipv4_applyaddr()
1031 const struct in_addr *addr, const struct in_addr *net, in ipv4_handleifa() argument
1055 ap = ipv4_iffindaddr(ifp, addr, net); in ipv4_handleifa()
1064 ap->net = *net; in ipv4_handleifa()
1079 dhcp_handleifa(cmd, ifp, addr, net, dst, flags); in ipv4_handleifa()