• Home
  • Raw
  • Download

Lines Matching refs:lease

819 ipv4_addaddr(struct interface *ifp, const struct dhcp_lease *lease)  in ipv4_addaddr()  argument
832 if (ia->addr.s_addr != lease->addr.s_addr) in ipv4_addaddr()
843 ifp->name, inet_ntoa(lease->addr), 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()
854 ia->addr = lease->addr; in ipv4_addaddr()
855 ia->net = lease->net; in ipv4_addaddr()
883 struct dhcp_lease *lease; in ipv4_finaliseaddr() local
885 lease = &state->lease; in ipv4_finaliseaddr()
888 if (state->addr.s_addr != lease->addr.s_addr && in ipv4_finaliseaddr()
890 ipv4_iffindaddr(ifp, &lease->addr, NULL)) in ipv4_finaliseaddr()
895 state->addr.s_addr = lease->addr.s_addr; in ipv4_finaliseaddr()
896 state->net.s_addr = lease->net.s_addr; in ipv4_finaliseaddr()
910 struct dhcp_lease *lease; in ipv4_applyaddr()
918 lease = &state->lease; in ipv4_applyaddr()
943 &nstate->lease); in ipv4_applyaddr()
964 nstate->addr.s_addr == lease->addr.s_addr) in ipv4_applyaddr()
970 inet_ntoa(lease->addr), in ipv4_applyaddr()
972 state->addr.s_addr = lease->addr.s_addr; in ipv4_applyaddr()
973 state->net.s_addr = lease->net.s_addr; in ipv4_applyaddr()
978 inet_ntoa(lease->addr), in ipv4_applyaddr()
991 ap = ipv4_iffindaddr(ifn, &lease->addr, NULL); in ipv4_applyaddr()
998 ap = ipv4_iffindaddr(ifp, &lease->addr, NULL); in ipv4_applyaddr()
999 if (ap && ap->net.s_addr != lease->net.s_addr) in ipv4_applyaddr()
1002 if (ipv4_iffindaddr(ifp, &lease->addr, &lease->net)) in ipv4_applyaddr()
1005 ifp->name, inet_ntoa(lease->addr), in ipv4_applyaddr()
1006 inet_ntocidr(lease->net)); in ipv4_applyaddr()
1008 r = ipv4_addaddr(ifp, lease); in ipv4_applyaddr()
1014 ap = ipv4_iffindaddr(ifp, &lease->addr, NULL); in ipv4_applyaddr()