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

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

Diff for /src/sys/netipsec/ipsec_input.c between version 1.53 and 1.54

version 1.53, 2018/01/23 02:21:49 version 1.54, 2018/01/24 14:01:40
Line 370  cantpull:
Line 370  cantpull:
                 ip->ip_sum = 0;                  ip->ip_sum = 0;
                 ip->ip_sum = in_cksum(m, ip->ip_hl << 2);                  ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
         } else {          } else {
                   /* XXX this branch is never taken */
                 ip = mtod(m, struct ip *);                  ip = mtod(m, struct ip *);
         }          }
   
Line 381  cantpull:
Line 382  cantpull:
         m = ipsec4_fixup_checksum(m);          m = ipsec4_fixup_checksum(m);
         if (m == NULL)          if (m == NULL)
                 goto cantpull;                  goto cantpull;
           ip = mtod(m, struct ip *);
   
         prot = ip->ip_p;          prot = ip->ip_p;
   

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

CVSweb <webmaster@jp.NetBSD.org>