| version 1.250.4.1, 2007/08/16 11:03:46 |
version 1.250.4.2, 2007/09/03 16:49:04 |
| 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; |