diff --git a/sys/netinet/ip_ipsec.c b/sys/netinet/ip_ipsec.c index ab5d22d88a7f..20baa15dfcc7 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 7f7a7ad646b8..31bc86a17498 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 eded15c54bcf..fbc5d053add6 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -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: