diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-04-12 09:39:55 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-04-12 09:39:55 +0000 |
commit | 22d04e61edff822a9b718b794e132ef8d8e7ed64 (patch) | |
tree | 961352e1d04d0753f1c393dcd08b3bd39e4af0c9 | |
parent | 8f0fff42d7fd52585a025a45b9458a28fb3f514d (diff) |
handle PMTU for ipip SAs, too; ok hshoexer, cloder
-rw-r--r-- | sys/netinet/ipsec_output.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_output.c b/sys/netinet/ipsec_output.c index d7afd9fc271..73bae9676d9 100644 --- a/sys/netinet/ipsec_output.c +++ b/sys/netinet/ipsec_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec_output.c,v 1.32 2004/09/24 16:09:37 markus Exp $ */ +/* $OpenBSD: ipsec_output.c,v 1.33 2005/04/12 09:39:54 markus Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) * @@ -457,6 +457,10 @@ ipsec_hdrsz(struct tdb *tdbp) ssize_t adjust; switch (tdbp->tdb_sproto) { + case IPPROTO_IPIP: + adjust = 0; + break; + case IPPROTO_ESP: if (tdbp->tdb_encalgxform == NULL) return (-1); |