[BACK]Return to udp_usrreq.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/udp_usrreq.c between version 1.141 and 1.142

version 1.141, 2005/08/10 13:06:49 version 1.142, 2005/09/03 18:01:07
Line 1456  udp4_espinudp(m, off, src, so)
Line 1456  udp4_espinudp(m, off, src, so)
         }          }
   
         if (inp->inp_flags & INP_ESPINUDP_NON_IKE) {          if (inp->inp_flags & INP_ESPINUDP_NON_IKE) {
                 u_int64_t *st = (u_int64_t *)data;                  u_int32_t *st = (u_int32_t *)data;
   
                 if ((len <= sizeof(u_int64_t) + sizeof(struct esp))                  if ((len <= sizeof(u_int64_t) + sizeof(struct esp))
                     || (*st != 0))                      || ((st[0] | st[1]) != 0))
                         return 0; /* Normal UDP processing */                          return 0; /* Normal UDP processing */
   
                 skip = sizeof(struct udphdr) + sizeof(u_int64_t);                  skip = sizeof(struct udphdr) + sizeof(u_int64_t);

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.142

CVSweb <webmaster@jp.NetBSD.org>