summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/ipsec.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2007-11-28 21:48:21 +0000
committerbz <bz@FreeBSD.org>2007-11-28 21:48:21 +0000
commit0e9e73cbd0c197db2be2087f5e1f6e4c7203c1b5 (patch)
treede0edbf6017ecb37f52d96e37bb7e30cd30ca768 /sys/netipsec/ipsec.c
parent7d547ae260f81e0af0591ca837073659896ca86c (diff)
downloadFreeBSD-src-0e9e73cbd0c197db2be2087f5e1f6e4c7203c1b5.zip
FreeBSD-src-0e9e73cbd0c197db2be2087f5e1f6e4c7203c1b5.tar.gz
Adjust a comment that suggest that we might consider a panic.
Make clear that this is not a good idea when called from tcp_output()->ipsec_hdrsiz_tcp()->ipsec4_hdrsize_tcp() as we do not know if IPsec processing is needed at that point.
Diffstat (limited to 'sys/netipsec/ipsec.c')
-rw-r--r--sys/netipsec/ipsec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c
index 1f8e6ab..354157b 100644
--- a/sys/netipsec/ipsec.c
+++ b/sys/netipsec/ipsec.c
@@ -1608,7 +1608,9 @@ ipsec4_hdrsiz(m, dir, inp)
KEY_FREESP(&sp);
} else {
- size = 0; /* XXX should be panic ? */
+ size = 0; /* XXX should be panic ?
+ * -> No, we are called w/o knowing if
+ * IPsec processing is needed. */
}
return size;
}
OpenPOWER on IntegriCloud