pluto: Removed unneeded get_proto_reqid.

We will use the same reqid for all protocols, as in charon.
This commit is contained in:
Tobias Brunner
2010-09-02 19:04:21 +02:00
parent 717d60f13f
commit 44643c2d01
-18
View File
@@ -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.