[BACK]Return to ip_input.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet/ip_input.c between version 1.250.6.2 and 1.251

version 1.250.6.2, 2007/07/19 20:48:56 version 1.251, 2007/08/10 22:46:16
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;
   
                 sdl.sdl_len = offsetof(struct sockaddr_dl, sdl_data[0]);                  sockaddr_dl_init(&sdl, (m->m_pkthdr.rcvif != NULL) ?
                 sdl.sdl_family = AF_LINK;                      m->m_pkthdr.rcvif->if_index : 0, 0, NULL, 0, NULL, 0);
                 sdl.sdl_index = m->m_pkthdr.rcvif ?                  *mp = sbcreatecontrol(&sdl, sdl.sdl_len, IP_RECVIF, IPPROTO_IP);
                     m->m_pkthdr.rcvif->if_index : 0;  
                 sdl.sdl_nlen = sdl.sdl_alen = sdl.sdl_slen = 0;  
                 *mp = sbcreatecontrol((void *) &sdl, sdl.sdl_len,  
                     IP_RECVIF, IPPROTO_IP);  
                 if (*mp)                  if (*mp)
                         mp = &(*mp)->m_next;                          mp = &(*mp)->m_next;
         }          }

Legend:
Removed from v.1.250.6.2  
changed lines
  Added in v.1.251

CVSweb <webmaster@jp.NetBSD.org>