Return to ipsec_input.c CVS log | 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. |
version 1.53, 2018/01/23 02:21:49 | version 1.54, 2018/01/24 14:01:40 | ||
---|---|---|---|
|
|
||
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 *); | ||
} | } | ||
|
|
||
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; | ||