diff options
author | 2004-09-24 16:09:37 +0000 | |
---|---|---|
committer | 2004-09-24 16:09:37 +0000 | |
commit | 3bea581acacd520b7f9c025f9aab45cd7e8fe313 (patch) | |
tree | f67cf175f30d38eeb48e861e5aedd281e9c800c7 /sys/netinet/ipsec_output.c | |
parent | Before attempting to unlink() the local socket, set the effective (diff) | |
download | wireguard-openbsd-3bea581acacd520b7f9c025f9aab45cd7e8fe313.tar.xz wireguard-openbsd-3bea581acacd520b7f9c025f9aab45cd7e8fe313.zip |
pmtu support for udpencap; ok hshoexer, ho
Diffstat (limited to 'sys/netinet/ipsec_output.c')
-rw-r--r-- | sys/netinet/ipsec_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_output.c b/sys/netinet/ipsec_output.c index d03da26c247..d7afd9fc271 100644 --- a/sys/netinet/ipsec_output.c +++ b/sys/netinet/ipsec_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_output.c,v 1.31 2004/06/26 04:32:38 ho Exp $ */ +/* $OpenBSD: ipsec_output.c,v 1.32 2004/09/24 16:09:37 markus Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -466,6 +466,8 @@ ipsec_hdrsz(struct tdb *tdbp) adjust = sizeof(u_int32_t) + tdbp->tdb_ivlen; else adjust = 2 * sizeof(u_int32_t) + tdbp->tdb_ivlen; + if (tdbp->tdb_flags & TDBF_UDPENCAP) + adjust += sizeof(struct udphdr); /* Authenticator */ if (tdbp->tdb_authalgxform != NULL) adjust += AH_HMAC_HASHLEN; |