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/raw_ip.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/raw_ip.c')
| -rw-r--r-- | sys/netinet/raw_ip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 72021984766..aaa68c43380 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ip.c,v 1.18 1999/06/07 07:22:26 deraadt Exp $ */ +/* $OpenBSD: raw_ip.c,v 1.19 1999/09/23 07:20:35 deraadt Exp $ */ /* $NetBSD: raw_ip.c,v 1.25 1996/02/18 18:58:33 christos Exp $ */ /* @@ -154,7 +154,6 @@ rip_input(m, va_alist) icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PROTOCOL, 0, 0); else m_freem(m); - /* Perhaps should send an ICMP protocol unreachable here. */ ipstat.ips_noproto++; ipstat.ips_delivered--; } |
