Home | History | Annotate | Download | only in dhcpcd-6.8.2

Lines Matching defs:ap

118 	struct ipv4_addr *ap;
122 TAILQ_FOREACH(ap, &state->addrs, next) {
123 if ((addr == NULL || ap->addr.s_addr == addr->s_addr) &&
124 (net == NULL || ap->net.s_addr == net->s_addr))
125 return ap;
135 struct ipv4_addr *ap;
139 TAILQ_FOREACH(ap, &state->addrs, next) {
140 if (IN_LINKLOCAL(htonl(ap->addr.s_addr)))
141 return ap;
151 struct ipv4_addr *ap;
154 ap = ipv4_iffindaddr(ifp, addr, NULL);
155 if (ap)
156 return ap;
750 struct ipv4_addr *ap;
770 TAILQ_FOREACH(ap, &state->addrs, next) {
771 if (ap->addr.s_addr == addr->s_addr &&
772 ap->net.s_addr == net->s_addr)
774 TAILQ_REMOVE(&state->addrs, ap, next);
775 free(ap);
912 struct ipv4_addr *ap;
991 ap = ipv4_iffindaddr(ifn, &lease->addr, NULL);
992 if (ap)
993 ipv4_deladdr(ifn, &ap->addr, &ap->net);
998 ap = ipv4_iffindaddr(ifp, &lease->addr, NULL);
999 if (ap && ap->net.s_addr != lease->net.s_addr)
1000 ipv4_deladdr(ifp, &ap->addr, &ap->net);
1014 ap = ipv4_iffindaddr(ifp, &lease->addr, NULL);
1015 if (ap == NULL) {
1019 } else if (ap->addr_flags & IN_IFF_NOTUSEABLE)
1036 struct ipv4_addr *ap;
1055 ap = ipv4_iffindaddr(ifp, addr, net);
1057 if (ap == NULL) {
1058 if ((ap = malloc(sizeof(*ap))) == NULL) {
1062 ap->iface = ifp;
1063 ap->addr = *addr;
1064 ap->net = *net;
1066 ap->dst.s_addr = dst->s_addr;
1068 ap->dst.s_addr = INADDR_ANY;
1069 TAILQ_INSERT_TAIL(&state->addrs, ap, next);
1071 ap->addr_flags = flags;
1073 if (ap) {
1074 TAILQ_REMOVE(&state->addrs, ap, next);
1075 free(ap);