From 22d04e61edff822a9b718b794e132ef8d8e7ed64 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Tue, 12 Apr 2005 09:39:55 +0000 Subject: handle PMTU for ipip SAs, too; ok hshoexer, cloder --- sys/netinet/ipsec_output.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/netinet') 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); -- cgit v1.2.3