diff options
author | 2006-12-05 09:17:12 +0000 | |
---|---|---|
committer | 2006-12-05 09:17:12 +0000 | |
commit | fafccbc33d848fd0c4831f8ca8723b77b549651f (patch) | |
tree | 3f706cd2d6eff9e8603c69dc88a62f6997f27fa2 /sys/netinet/ipsec_input.c | |
parent | do the proper dance to order libary dependencies, let modversion do (diff) | |
download | wireguard-openbsd-fafccbc33d848fd0c4831f8ca8723b77b549651f.tar.xz wireguard-openbsd-fafccbc33d848fd0c4831f8ca8723b77b549651f.zip |
do not install pmtu routes for transport mode SAs, as they do not
the dest IP; PMTU debugging support; ok hshoexer
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r-- | sys/netinet/ipsec_input.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c index e00cf80b590..abdafdc066d 100644 --- a/sys/netinet/ipsec_input.c +++ b/sys/netinet/ipsec_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_input.c,v 1.80 2006/11/24 13:52:14 reyk Exp $ */ +/* $OpenBSD: ipsec_input.c,v 1.81 2006/12/05 09:17:12 markus Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -864,6 +864,10 @@ ipsec_common_ctlinput(int cmd, struct sockaddr *sa, void *v, int proto) tdbp->tdb_mtu = mtu; tdbp->tdb_mtutimeout = time_second + ip_mtudisc_timeout; + DPRINTF(("ipsec_common_ctlinput: " + "spi %08x mtu %d adjust %d\n", + ntohl(tdbp->tdb_spi), tdbp->tdb_mtu, + adjust)); } splx(s); return (NULL); @@ -918,6 +922,10 @@ udpencap_ctlinput(int cmd, struct sockaddr *sa, void *v) tdbp->tdb_mtu = mtu - adjust; tdbp->tdb_mtutimeout = time_second + ip_mtudisc_timeout; + DPRINTF(("udpencap_ctlinput: " + "spi %08x mtu %d adjust %d\n", + ntohl(tdbp->tdb_spi), tdbp->tdb_mtu, + adjust)); } } } |