summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ipsec_input.c
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2002-01-23 21:34:53 +0000
committerprovos <provos@openbsd.org>2002-01-23 21:34:53 +0000
commit79f5fd66fe6e609c4296f7d751ddd8cfb34e699e (patch)
treeecda684a9290dfdfa7b0b6fd9d6ebb0b4732a1fc /sys/netinet/ipsec_input.c
parentConvert to pool; based on changes NetBSD (diff)
downloadwireguard-openbsd-79f5fd66fe6e609c4296f7d751ddd8cfb34e699e.tar.xz
wireguard-openbsd-79f5fd66fe6e609c4296f7d751ddd8cfb34e699e.zip
disable pmtu for ipsec when the sysctl says so; bug report cjkim2000@yahoo.com
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r--sys/netinet/ipsec_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c
index 2abd2b6ae5f..3e9f69c4039 100644
--- a/sys/netinet/ipsec_input.c
+++ b/sys/netinet/ipsec_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_input.c,v 1.54 2001/12/06 22:52:10 angelos Exp $ */
+/* $OpenBSD: ipsec_input.c,v 1.55 2002/01/23 21:34:53 provos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -804,7 +804,7 @@ ipsec_common_ctlinput(int cmd, struct sockaddr *sa, void *v, int proto)
struct ip *ip = v;
int s;
- if (cmd == PRC_MSGSIZE && ip && ip->ip_v == 4) {
+ if (cmd == PRC_MSGSIZE && ip && ip_mtudisc && ip->ip_v == 4) {
struct tdb *tdbp;
struct sockaddr_in dst;
struct icmp *icp;