diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-09-24 16:09:38 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-09-24 16:09:38 +0000 |
commit | 3f205752e53bdd1951d2811042d7ef18a7f823fe (patch) | |
tree | 9fa8049b389c2635b37cdd5c514cea7499f39ea3 /sys/netinet | |
parent | a93b3be28a2f427d2d19a775af6045860edfcf48 (diff) |
pmtu support for udpencap; ok hshoexer, ho
Diffstat (limited to 'sys/netinet')
-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; |