diff options
author | pjd <pjd@FreeBSD.org> | 2009-06-05 23:53:17 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2009-06-05 23:53:17 +0000 |
commit | 80ee56b38bd128d4e400b1a453a8741ff9776980 (patch) | |
tree | 2cb6b00dd541dc696dd6986fdd4377afd85cdd65 /sys/netinet | |
parent | cd33effd48d9d33fbd117c8244d90d984d038f08 (diff) | |
download | FreeBSD-src-80ee56b38bd128d4e400b1a453a8741ff9776980.zip FreeBSD-src-80ee56b38bd128d4e400b1a453a8741ff9776980.tar.gz |
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.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_ipsec.c | 3 | ||||
-rw-r--r-- | sys/netinet/ip_ipsec.h | 3 | ||||
-rw-r--r-- | sys/netinet/ip_output.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/ip_ipsec.c b/sys/netinet/ip_ipsec.c index ab5d22d..20baa15 100644 --- a/sys/netinet/ip_ipsec.c +++ b/sys/netinet/ip_ipsec.c @@ -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; diff --git a/sys/netinet/ip_ipsec.h b/sys/netinet/ip_ipsec.h index 7f7a7ad..31bc86a 100644 --- a/sys/netinet/ip_ipsec.h +++ b/sys/netinet/ip_ipsec.h @@ -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 diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index eded15c..fbc5d05 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -467,7 +467,7 @@ again: 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: |