diff options
| author | 1999-09-23 07:20:35 +0000 | |
|---|---|---|
| committer | 1999-09-23 07:20:35 +0000 | |
| commit | bd6605acb99a27b7b7f774f249f0cf876136a688 (patch) | |
| tree | f2bf3855ab2d44948c288d4cb48b19d295457881 /sys/netinet/udp_usrreq.c | |
| parent | Typo fixes. (diff) | |
| download | wireguard-openbsd-bd6605acb99a27b7b7f774f249f0cf876136a688.tar.xz wireguard-openbsd-bd6605acb99a27b7b7f774f249f0cf876136a688.zip | |
fix same-interface-out-as-in and packet gets corrupted bug noted by
james@oaktree.co.uk by re-working icmp embedded-packet code so that
ip_forward() m_copy()-aliased packet can be forwarded to ip_output and
icmp_error() safely, because no packet tweaking is needed before
calling icmp_error()
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 498ac0e7cdb..d57e3faf7b3 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.26 1999/06/06 23:34:20 deraadt Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.27 1999/09/23 07:20:35 deraadt Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -485,9 +485,7 @@ udp_input(m, va_alist) goto bad; } *ip = save_ip; - HTONS(ip->ip_len); HTONS(ip->ip_id); - HTONS(ip->ip_off); uh->uh_sum = savesum; #ifdef INET6 if (ipv6) |
