diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-08-03 08:29:56 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-08-03 08:29:56 +0000 |
commit | bfb50ff55637fb4883938394ac6c132eae030b7d (patch) | |
tree | 97669f9b4350de722c03a4adb859eafd25341eee /sys/netinet/ip_ipsp.c | |
parent | defb4292e3d8fc28474466fb8660a17e1ef7ca9d (diff) |
Avoid unnecessary call to in_cksum().
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-rw-r--r-- | sys/netinet/ip_ipsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c index 1a774dae98f..5adcaef1f1b 100644 --- a/sys/netinet/ip_ipsp.c +++ b/sys/netinet/ip_ipsp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.c,v 1.97 2000/08/03 08:12:33 angelos Exp $ */ +/* $OpenBSD: ip_ipsp.c,v 1.98 2000/08/03 08:29:55 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -1918,7 +1918,6 @@ ipsp_process_done(struct mbuf *m, struct tdb *tdb) NTOHS(ip->ip_len); NTOHS(ip->ip_off); ip->ip_sum = 0; - ip->ip_sum = in_cksum(m, ip->ip_hl << 2); /* Fix checksum */ return ip_output(m, NULL, NULL, IP_ENCAPSULATED | IP_RAWOUTPUT, NULL, NULL); |