summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2016-11-28 23:15:32 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2016-11-28 23:15:32 +0000
commit76a5096e4511677b49e230174c5e94c929858236 (patch)
treec5fbfc72a4c25b32ee7502a8ca3a1b5a034d3fc0 /sys/netinet/ip_input.c
parent5f147338c8a18f5efd2819dd3c977f42ec35ba67 (diff)
Path MTU discovery and traceroute did not always work with pf af-to.
If an incoming packet is directly put into the output path, sending the icmp error packet is never done. As this is basically forwarding, calling ip_forward() for such packets does everything that is needed. OK mikeb@
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index d96a77786cc..ee73d6ad3fa 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.287 2016/11/28 11:12:45 mpi Exp $ */
+/* $OpenBSD: ip_input.c,v 1.288 2016/11/28 23:15:31 bluhm Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -129,7 +129,6 @@ static struct mbuf_queue ipsend_mq;
void ip_ours(struct mbuf *);
int ip_dooptions(struct mbuf *, struct ifnet *);
int in_ouraddr(struct mbuf *, struct ifnet *, struct rtentry **);
-void ip_forward(struct mbuf *, struct ifnet *, struct rtentry *, int);
#ifdef IPSEC
int ip_input_ipsec_fwd_check(struct mbuf *, int);
int ip_input_ipsec_ours_check(struct mbuf *, int);