From 44643c2d01cda09e7d60c35751080c80c1ec7ec2 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 29 Jul 2010 13:33:48 +0200 Subject: [PATCH] pluto: Removed unneeded get_proto_reqid. We will use the same reqid for all protocols, as in charon. --- src/pluto/kernel.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/pluto/kernel.c b/src/pluto/kernel.c index 0d8f3ba3f..3e2d9457e 100644 --- a/src/pluto/kernel.c +++ b/src/pluto/kernel.c @@ -258,24 +258,6 @@ void record_and_initiate_opportunistic(const ip_subnet *ours, #endif /* KLIPS */ -static unsigned get_proto_reqid(unsigned base, int proto) -{ - switch (proto) - { - default: - case IPPROTO_COMP: - base++; - /* fall through */ - case IPPROTO_ESP: - base++; - /* fall through */ - case IPPROTO_AH: - break; - } - - return base; -} - /* Generate Unique SPI numbers. * * The returned SPI is in network byte order.