Only four out of nine arguments for ip_ipsec_output() are actually used.

Kill unused arguments except for 'ifp' as it might be used in the future
for detecting IPsec-capable interfaces.
This commit is contained in:
Pawel Jakub Dawidek 2009-06-05 23:53:17 +00:00
parent d0dd594caf
commit 42a3613305
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193550
3 changed files with 3 additions and 5 deletions

View File

@ -256,8 +256,7 @@ ip_ipsec_mtu(struct mbuf *m, int mtu)
*/
int
ip_ipsec_output(struct mbuf **m, struct inpcb *inp, int *flags, int *error,
struct route **ro, struct route *iproute, struct sockaddr_in **dst,
struct in_ifaddr **ia, struct ifnet **ifp)
struct ifnet **ifp)
{
#ifdef IPSEC
struct secpolicy *sp = NULL;

View File

@ -37,6 +37,5 @@ int ip_ipsec_fwd(struct mbuf *);
int ip_ipsec_input(struct mbuf *);
int ip_ipsec_mtu(struct mbuf *, int);
int ip_ipsec_output(struct mbuf **, struct inpcb *, int *, int *,
struct route **, struct route *, struct sockaddr_in **,
struct in_ifaddr **, struct ifnet **);
struct ifnet **);
#endif

View File

@ -467,7 +467,7 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags,
sendit:
#ifdef IPSEC
switch(ip_ipsec_output(&m, inp, &flags, &error, &ro, &iproute, &dst, &ia, &ifp)) {
switch(ip_ipsec_output(&m, inp, &flags, &error, &ifp)) {
case 1:
goto bad;
case -1: