Lines Matching refs:ifp
91 struct ifnet *ifp)
123 #define SID scope6_ids[ifp->if_index]
135 SID.s6id_list[IPV6_ADDR_SCOPE_INTFACELOCAL] = ifp->if_index;
136 SID.s6id_list[IPV6_ADDR_SCOPE_LINKLOCAL] = ifp->if_index;
150 struct ifnet *ifp,
172 idlist[i] != scope6_ids[ifp->if_index].s6id_list[i]) {
190 scope6_ids[ifp->if_index].s6id_list[i] = idlist[i];
200 struct ifnet *ifp,
207 bcopy(scope6_ids[ifp->if_index].s6id_list, idlist,
208 sizeof(scope6_ids[ifp->if_index].s6id_list));
280 struct ifnet *ifp, /* must not be NULL */
284 int index = ifp->if_index;
330 struct ifnet *ifp;
348 ifp = ifindex2ifnet[zoneid];
349 if (ifp == NULL) {/* XXX: this can happen for some OS */
434 struct ifnet *ifp) /* note that this might be NULL */
443 if (ifp) {
445 ifp->if_index;
447 ifp->if_index;
483 * Determine the appropriate scope zone ID for in6 and ifp. If ret_id is
490 in6_setscope(struct in6_addr *in6, struct ifnet *ifp, u_int32_t *ret_id)
494 int index = ifp->if_index;
508 if (!(ifp->if_flags & IFF_LOOPBACK)) {