version 1.336, 2016/07/07 09:32:02 |
version 1.338, 2016/07/26 08:34:55 |
Line 381 ip_match_our_address(struct ifnet *ifp, |
|
Line 381 ip_match_our_address(struct ifnet *ifp, |
|
if ((ia->ia_ifp->if_flags & IFF_UP) != 0) |
if ((ia->ia_ifp->if_flags & IFF_UP) != 0) |
break; |
break; |
else |
else |
downmatch++; |
(*downmatch)++; |
} |
} |
} |
} |
|
|
Line 1472 ip_savecontrol(struct inpcb *inp, struct |
|
Line 1472 ip_savecontrol(struct inpcb *inp, struct |
|
if (inpflags & INP_RECVIF) { |
if (inpflags & INP_RECVIF) { |
struct sockaddr_dl sdl; |
struct sockaddr_dl sdl; |
|
|
sockaddr_dl_init(&sdl, sizeof(sdl), ifp ? |
sockaddr_dl_init(&sdl, sizeof(sdl), ifp->if_index, 0, NULL, 0, |
ifp->if_index : 0, 0, NULL, 0, NULL, 0); |
NULL, 0); |
*mp = sbcreatecontrol(&sdl, sdl.sdl_len, IP_RECVIF, IPPROTO_IP); |
*mp = sbcreatecontrol(&sdl, sdl.sdl_len, IP_RECVIF, IPPROTO_IP); |
if (*mp) |
if (*mp) |
mp = &(*mp)->m_next; |
mp = &(*mp)->m_next; |