| version 1.251, 2007/08/10 22:46:16 |
version 1.252, 2007/08/30 02:17:37 |
| Line 2079 ip_savecontrol(struct inpcb *inp, struct |
|
| Line 2079 ip_savecontrol(struct inpcb *inp, struct |
|
| if (inp->inp_flags & INP_RECVIF) { |
if (inp->inp_flags & INP_RECVIF) { |
| struct sockaddr_dl sdl; |
struct sockaddr_dl sdl; |
| |
|
| sockaddr_dl_init(&sdl, (m->m_pkthdr.rcvif != NULL) ? |
sockaddr_dl_init(&sdl, sizeof(sdl), |
| m->m_pkthdr.rcvif->if_index : 0, 0, NULL, 0, NULL, 0); |
(m->m_pkthdr.rcvif != NULL) |
| |
? m->m_pkthdr.rcvif->if_index |
| |
: 0, |
| |
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; |