mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
nuke unused functions.
Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
This commit is contained in:
parent
c589019989
commit
06a72d12d1
3 changed files with 0 additions and 53 deletions
|
|
@ -544,19 +544,6 @@ ipsec4_getpolicybypcb(m, dir, inp, error)
|
|||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
struct secpolicy *
|
||||
ipsec4_getpolicybysock(m, dir, so, error)
|
||||
struct mbuf *m;
|
||||
u_int dir;
|
||||
struct socket *so;
|
||||
int *error;
|
||||
{
|
||||
|
||||
if (so == NULL)
|
||||
panic("ipsec4_getpolicybysock: NULL pointer was passed.\n");
|
||||
return (ipsec4_getpolicybypcb(m, dir, sotoinpcb(so), error));
|
||||
}
|
||||
|
||||
/*
|
||||
* For FORWADING packet or OUTBOUND without a socket. Searching SPD for packet,
|
||||
* and return a pointer to SP.
|
||||
|
|
@ -767,19 +754,6 @@ ipsec6_getpolicybypcb(m, dir, inp, error)
|
|||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
struct secpolicy *
|
||||
ipsec6_getpolicybysock(m, dir, so, error)
|
||||
struct mbuf *m;
|
||||
u_int dir;
|
||||
struct socket *so;
|
||||
int *error;
|
||||
{
|
||||
|
||||
if (so == NULL)
|
||||
panic("ipsec6_getpolicybysock: NULL pointer was passed.\n");
|
||||
return (ipsec6_getpolicybypcb(m, dir, sotoin6pcb(so), error));
|
||||
}
|
||||
|
||||
/*
|
||||
* For FORWADING packet or OUTBOUND without a socket. Searching SPD for packet,
|
||||
* and return a pointer to SP.
|
||||
|
|
@ -1870,16 +1844,6 @@ ipsec4_in_reject(m, inp)
|
|||
return result;
|
||||
}
|
||||
|
||||
int
|
||||
ipsec4_in_reject_so(m, so)
|
||||
struct mbuf *m;
|
||||
struct socket *so;
|
||||
{
|
||||
if (so == NULL)
|
||||
return ipsec4_in_reject(m, NULL);
|
||||
return ipsec4_in_reject(m, sotoinpcb(so));
|
||||
}
|
||||
|
||||
#ifdef INET6
|
||||
/*
|
||||
* Check AH/ESP integrity.
|
||||
|
|
@ -1919,16 +1883,6 @@ ipsec6_in_reject(m, in6p)
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
int
|
||||
ipsec6_in_reject_so(m, so)
|
||||
struct mbuf *m;
|
||||
struct socket *so;
|
||||
{
|
||||
if (so == NULL)
|
||||
return ipsec6_in_reject(m, NULL);
|
||||
return ipsec6_in_reject(m, sotoin6pcb(so));
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -336,12 +336,9 @@ extern int ipsec_invalpcbcacheall __P((void));
|
|||
struct inpcb;
|
||||
extern struct secpolicy *ipsec4_getpolicybypcb
|
||||
__P((struct mbuf *, u_int, struct inpcb *, int *));
|
||||
extern struct secpolicy *ipsec4_getpolicybysock
|
||||
__P((struct mbuf *, u_int, struct socket *, int *));
|
||||
extern struct secpolicy *ipsec4_getpolicybyaddr
|
||||
__P((struct mbuf *, u_int, int, int *));
|
||||
|
||||
struct inpcb;
|
||||
extern int ipsec_init_pcbpolicy __P((struct socket *, struct inpcbpolicy **));
|
||||
extern int ipsec_copy_pcbpolicy
|
||||
__P((struct inpcbpolicy *, struct inpcbpolicy *));
|
||||
|
|
@ -351,7 +348,6 @@ extern int ipsec4_set_policy __P((struct inpcb *, int, caddr_t, size_t, int));
|
|||
extern int ipsec4_get_policy __P((struct inpcb *, caddr_t, size_t,
|
||||
struct mbuf **));
|
||||
extern int ipsec4_delete_pcbpolicy __P((struct inpcb *));
|
||||
extern int ipsec4_in_reject_so __P((struct mbuf *, struct socket *));
|
||||
extern int ipsec4_in_reject __P((struct mbuf *, struct inpcb *));
|
||||
|
||||
struct secas;
|
||||
|
|
|
|||
|
|
@ -53,12 +53,9 @@ extern int ip6_esp_randpad;
|
|||
struct inpcb;
|
||||
extern struct secpolicy *ipsec6_getpolicybypcb
|
||||
__P((struct mbuf *, u_int, struct inpcb *, int *));
|
||||
extern struct secpolicy *ipsec6_getpolicybysock
|
||||
__P((struct mbuf *, u_int, struct socket *, int *));
|
||||
extern struct secpolicy *ipsec6_getpolicybyaddr
|
||||
__P((struct mbuf *, u_int, int, int *));
|
||||
|
||||
extern int ipsec6_in_reject_so __P((struct mbuf *, struct socket *));
|
||||
extern int ipsec6_delete_pcbpolicy __P((struct inpcb *));
|
||||
extern int ipsec6_set_policy __P((struct inpcb *, int, caddr_t, size_t, int));
|
||||
extern int ipsec6_get_policy __P((struct inpcb *, caddr_t, size_t,
|
||||
|
|
|
|||
Loading…
Reference in a new issue