summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/ipsec.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-12-27 09:36:22 +0000
committerbz <bz@FreeBSD.org>2008-12-27 09:36:22 +0000
commit52b35d1d21311e473141ccec2ad9651366349a70 (patch)
treedd8cec20c0782851258ecc44c81c06e892312bd4 /sys/netipsec/ipsec.c
parent0f8825b3f7e9bfd96fc59b8c4404742798efbb5a (diff)
downloadFreeBSD-src-52b35d1d21311e473141ccec2ad9651366349a70.zip
FreeBSD-src-52b35d1d21311e473141ccec2ad9651366349a70.tar.gz
Make ipsec_getpolicybysock() static and no longer export it. It has not
been used outside this file since about the FAST_IPSEC -> IPSEC change. MFC after: 4 weeks
Diffstat (limited to 'sys/netipsec/ipsec.c')
-rw-r--r--sys/netipsec/ipsec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c
index 108614f..81f9dd8 100644
--- a/sys/netipsec/ipsec.c
+++ b/sys/netipsec/ipsec.c
@@ -354,12 +354,8 @@ ipsec_getpolicy(struct tdb_ident *tdbi, u_int dir)
*
* NOTE: IPv6 mapped adddress concern is implemented here.
*/
-struct secpolicy *
-ipsec_getpolicybysock(m, dir, inp, error)
- struct mbuf *m;
- u_int dir;
- struct inpcb *inp;
- int *error;
+static struct secpolicy *
+ipsec_getpolicybysock(struct mbuf *m, u_int dir, struct inpcb *inp, int *error)
{
INIT_VNET_IPSEC(curvnet);
struct inpcbpolicy *pcbsp = NULL;
OpenPOWER on IntegriCloud