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
This commit is contained in:
parent
b3974c00b5
commit
511080ae53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186508
@ -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;
|
||||
|
@ -364,8 +364,6 @@ extern struct secpolicy *ipsec_getpolicy __P((struct tdb_ident*, u_int));
|
||||
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 *);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user