Fix tinderbox. ip6_mrouter should be defined in raw_ip6.c as it is

tested to determine if the userland socket is open; this, in turn, is
used to determine if the module has been loaded.

Tested with:	LINT
This commit is contained in:
Bruce M Simpson 2007-02-24 21:09:35 +00:00
parent 82e5a02886
commit 1291e2a0eb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166948
2 changed files with 2 additions and 5 deletions

View File

@ -145,10 +145,9 @@ struct ip6protosw in6_pim_protosw = {
};
/*
* Globals. All but ip6_mrouter, ip6_mrtproto and mrt6stat could be static,
* Globals. All but ip6_mrtproto and mrt6stat could be static,
* except for netstat or debugging purposes.
*/
struct socket *ip6_mrouter = NULL;
int ip6_mrouter_ver = 0;
int ip6_mrtproto = IPPROTO_PIM; /* for netstat only */

View File

@ -124,9 +124,7 @@ struct rip6stat rip6stat;
/*
* Hooks for multicast forwarding.
*/
struct socket *ip6_mrouter;
struct socket *ip6_mrouter = NULL;
int (*ip6_mrouter_set)(struct socket *, struct sockopt *);
int (*ip6_mrouter_get)(struct socket *, struct sockopt *);
int (*ip6_mrouter_done)(void);