diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-07-29 13:33:48 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-09-02 19:04:21 +0200 |
commit | 44643c2d01cda09e7d60c35751080c80c1ec7ec2 (patch) | |
tree | e38ee0376a75622692d5cd98409dbb670ee660fe /src | |
parent | 717d60f13f3b542849fd795aaffc9b1b308d3385 (diff) | |
download | strongswan-44643c2d01cda09e7d60c35751080c80c1ec7ec2.tar.bz2 strongswan-44643c2d01cda09e7d60c35751080c80c1ec7ec2.tar.xz |
pluto: Removed unneeded get_proto_reqid.
We will use the same reqid for all protocols, as in charon.
Diffstat (limited to 'src')
-rw-r--r-- | src/pluto/kernel.c | 18 |
1 files changed, 0 insertions, 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. |