Connect the ipdivert div_usrreqs struct to the ip proto switch table
This commit is contained in:
parent
8413abe4c7
commit
77d1915b56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26113
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)in_proto.c 8.2 (Berkeley) 2/9/95
|
||||
* $Id: in_proto.c,v 1.38 1997/02/18 20:46:22 wollman Exp $
|
||||
* $Id: in_proto.c,v 1.39 1997/04/27 20:01:05 wollman Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -151,8 +151,9 @@ struct protosw inetsw[] = {
|
||||
#ifdef IPDIVERT
|
||||
{ SOCK_RAW, &inetdomain, IPPROTO_DIVERT, PR_ATOMIC|PR_ADDR,
|
||||
div_input, 0, 0, ip_ctloutput,
|
||||
div_usrreq,
|
||||
0,
|
||||
div_init, 0, 0, 0,
|
||||
&div_usrreqs,
|
||||
},
|
||||
#endif
|
||||
#ifdef TPIP
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ip_var.h 8.2 (Berkeley) 1/9/95
|
||||
* $Id: ip_var.h,v 1.31 1997/02/22 09:41:36 peter Exp $
|
||||
* $Id: ip_var.h,v 1.32 1997/04/27 20:01:08 wollman Exp $
|
||||
*/
|
||||
|
||||
#ifndef _NETINET_IP_VAR_H_
|
||||
@ -204,8 +204,7 @@ void ip_rsvp_force_done __P((struct socket *));
|
||||
#ifdef IPDIVERT
|
||||
void div_init __P((void));
|
||||
void div_input __P((struct mbuf *, int));
|
||||
int div_usrreq __P((struct socket *,
|
||||
int, struct mbuf *, struct mbuf *, struct mbuf *));
|
||||
extern struct pr_usrreqs div_usrreqs;
|
||||
extern u_short ip_divert_port;
|
||||
extern u_short ip_divert_ignore;
|
||||
#endif /* IPDIVERT */
|
||||
|
Loading…
Reference in New Issue
Block a user