[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.253 and 1.255

version 1.253, 2007/09/11 14:18:09 version 1.255, 2007/11/09 06:59:33
Line 469  ipintr(void)
Line 469  ipintr(void)
                 splx(s);                  splx(s);
                 if (m == 0)                  if (m == 0)
                         return;                          return;
                 MCLAIM(m, &ip_rx_mowner);  
                 ip_input(m);                  ip_input(m);
         }          }
 }  }
Line 1776  ip_srcroute(void)
Line 1775  ip_srcroute(void)
         return (m);          return (m);
 }  }
   
 /*  
  * Strip out IP options, at higher  
  * level protocol in the kernel.  
  * Second argument is buffer to which options  
  * will be moved, and return value is their length.  
  * XXX should be deleted; last arg currently ignored.  
  */  
 void  
 ip_stripoptions(struct mbuf *m, struct mbuf *mopt)  
 {  
         int i;  
         struct ip *ip = mtod(m, struct ip *);  
         void *opts;  
         int olen;  
   
         olen = (ip->ip_hl << 2) - sizeof (struct ip);  
         opts = (void *)(ip + 1);  
         i = m->m_len - (sizeof (struct ip) + olen);  
         memmove(opts, (char *)opts + olen, (unsigned)i);  
         m->m_len -= olen;  
         if (m->m_flags & M_PKTHDR)  
                 m->m_pkthdr.len -= olen;  
         ip->ip_len = htons(ntohs(ip->ip_len) - olen);  
         ip->ip_hl = sizeof (struct ip) >> 2;  
 }  
   
 const int inetctlerrmap[PRC_NCMDS] = {  const int inetctlerrmap[PRC_NCMDS] = {
         0,              0,              0,              0,          0,              0,              0,              0,
         0,              EMSGSIZE,       EHOSTDOWN,      EHOSTUNREACH,          0,              EMSGSIZE,       EHOSTDOWN,      EHOSTUNREACH,

Legend:
Removed from v.1.253  
changed lines
  Added in v.1.255

CVSweb <webmaster@jp.NetBSD.org>