Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2008 09:36:22 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186508 - head/sys/netipsec
Message-ID:  <200812270936.mBR9aMpC066135@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Dec 27 09:36:22 2008
New Revision: 186508
URL: http://svn.freebsd.org/changeset/base/186508

Log:
  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

Modified:
  head/sys/netipsec/ipsec.c
  head/sys/netipsec/ipsec.h

Modified: head/sys/netipsec/ipsec.c
==============================================================================
--- head/sys/netipsec/ipsec.c	Sat Dec 27 08:03:32 2008	(r186507)
+++ head/sys/netipsec/ipsec.c	Sat Dec 27 09:36:22 2008	(r186508)
@@ -354,12 +354,8 @@ ipsec_getpolicy(struct tdb_ident *tdbi, 
  *
  * 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;

Modified: head/sys/netipsec/ipsec.h
==============================================================================
--- head/sys/netipsec/ipsec.h	Sat Dec 27 08:03:32 2008	(r186507)
+++ head/sys/netipsec/ipsec.h	Sat Dec 27 09:36:22 2008	(r186508)
@@ -364,8 +364,6 @@ extern struct secpolicy *ipsec_getpolicy
 struct inpcb;
 extern struct secpolicy *ipsec4_checkpolicy __P((struct mbuf *, u_int, u_int,
 	int *, struct inpcb *));
-extern struct secpolicy *ipsec_getpolicybysock(struct mbuf *, u_int,
-	struct inpcb *, int *);
 extern struct secpolicy * ipsec_getpolicybyaddr(struct mbuf *, u_int,
 	int, int *);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812270936.mBR9aMpC066135>