[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.245.2.4 and 1.250.4.3

version 1.245.2.4, 2007/08/20 21:27:59 version 1.250.4.3, 2007/10/02 18:29:19
Line 1013  found:
Line 1013  found:
                         /* XXX error stat??? */                          /* XXX error stat??? */
                         error = EINVAL;                          error = EINVAL;
 DPRINTF(("ip_input: no SP, packet discarded\n"));/*XXX*/  DPRINTF(("ip_input: no SP, packet discarded\n"));/*XXX*/
                         goto bad;  
                 }                  }
                 splx(s);                  splx(s);
                 if (error)                  if (error)
Line 2079  ip_savecontrol(struct inpcb *inp, struct
Line 2078  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;

Legend:
Removed from v.1.245.2.4  
changed lines
  Added in v.1.250.4.3

CVSweb <webmaster@jp.NetBSD.org>