Lines Matching refs:ifinfo
76 static struct ifproc_info *ifinfo;
113 ifinfo = (struct ifproc_info *)malloc(sizeof(*ifinfo));
114 if (ifinfo == NULL)
116 memcpy(&ifinfo->addr, &addr, sizeof(ifinfo->addr));
119 <S_INDEX>{hexpair} {ifinfo->index = strtol(ifyytext, NULL, 16);
121 <S_PLEN>{hexpair} {ifinfo->plen = strtol(ifyytext, NULL, 16);
123 <S_SCOPE>{hexpair} {ifinfo->scope = strtol(ifyytext, NULL, 16);
125 <S_FLAGS>{hexpair} {ifinfo->flags = strtol(ifyytext, NULL, 16);
126 if (ifinfo->flags == DAD_FLAGS) {
128 in6addr2str(&ifinfo->addr, 0));
131 free(ifinfo);
137 free(ifinfo);
142 strncpy(ifinfo->name, ifyytext, IFNAMSIZ);
143 ifinfo->next = NULL;
146 dadlist = ifinfo;
148 dadlist->next = ifinfo;
160 IN6_ARE_ADDR_EQUAL(&cl->lease_addr.addr, &ifinfo->addr))
172 memcpy(&lv->val_dhcp6addr.addr, &ifinfo->addr,
175 lv->val_dhcp6addr.plen = ifinfo->plen;