Eliminate more commons.

This commit is contained in:
matt 2002-05-12 20:40:11 +00:00
parent 17b32e3800
commit 2d83d27dfa
6 changed files with 25 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.c,v 1.103 2002/03/17 10:21:42 simonb Exp $ */
/* $NetBSD: if.c,v 1.104 2002/05/12 20:40:11 matt Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -101,7 +101,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.103 2002/03/17 10:21:42 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.104 2002/05/12 20:40:11 matt Exp $");
#include "opt_inet.h"
@ -150,10 +150,12 @@ struct callout if_slowtimo_ch;
* XXX: declare here to avoid to include many inet6 related files..
* should be more generalized?
*/
extern void nd6_setmtu __P((struct ifnet *));
void nd6_setmtu __P((struct ifnet *));
#endif
int if_rt_walktree __P((struct radix_node *, void *));
int netisr; /* scheduling bits for network */
int if_rt_walktree __P((struct radix_node *, void *));
struct if_clone *if_clone_lookup __P((const char *, int *));
int if_clone_list __P((struct if_clonereq *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: netisr.h,v 1.29 2001/10/06 15:46:33 thorpej Exp $ */
/* $NetBSD: netisr.h,v 1.30 2002/05/12 20:40:12 matt Exp $ */
/*
* Copyright (c) 1980, 1986, 1989, 1993
@ -151,7 +151,7 @@ extern void pppnetisr(void);
#define schednetisr(anisr) { netisr |= 1<<(anisr); setsoftnet(); }
int netisr; /* scheduling bits for network */
extern int netisr; /* scheduling bits for network */
#endif /* defined(_KERNEL) && !defined(_LOCORE) */

View File

@ -1,4 +1,4 @@
/* $NetBSD: raw_cb.c,v 1.12 2001/11/12 23:49:47 lukem Exp $ */
/* $NetBSD: raw_cb.c,v 1.13 2002/05/12 20:40:12 matt Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: raw_cb.c,v 1.12 2001/11/12 23:49:47 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: raw_cb.c,v 1.13 2002/05/12 20:40:12 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -61,6 +61,8 @@ __KERNEL_RCSID(0, "$NetBSD: raw_cb.c,v 1.12 2001/11/12 23:49:47 lukem Exp $");
* redo address binding to allow wildcards
*/
struct rawcbhead rawcb = LIST_HEAD_INITIALIZER(rawcb);
u_long raw_sendspace = RAWSNDQ;
u_long raw_recvspace = RAWRCVQ;

View File

@ -1,4 +1,4 @@
/* $NetBSD: raw_cb.h,v 1.12 1998/02/09 17:43:56 perry Exp $ */
/* $NetBSD: raw_cb.h,v 1.13 2002/05/12 20:40:12 matt Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -59,7 +59,8 @@ struct rawcb {
#define RAWRCVQ 8192
#ifdef _KERNEL
LIST_HEAD(, rawcb) rawcb; /* head of list */
LIST_HEAD(rawcbhead, rawcb);
extern struct rawcbhead rawcb; /* head of list */
int raw_attach __P((struct socket *, int));
void *raw_ctlinput __P((int, struct sockaddr *, void *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: route.c,v 1.51 2002/03/08 20:48:43 thorpej Exp $ */
/* $NetBSD: route.c,v 1.52 2002/05/12 20:40:12 matt Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.51 2002/03/08 20:48:43 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.52 2002/05/12 20:40:12 matt Exp $");
#include "opt_ns.h"
@ -132,6 +132,10 @@ __KERNEL_RCSID(0, "$NetBSD: route.c,v 1.51 2002/03/08 20:48:43 thorpej Exp $");
#define SA(p) ((struct sockaddr *)(p))
struct route_cb route_cb;
struct rtstat rtstat;
struct radix_node_head *rt_tables[AF_MAX+1];
int rttrash; /* routes not in table but not freed */
struct sockaddr wildcard; /* zero valued cookie for wildcard searches */

View File

@ -1,4 +1,4 @@
/* $NetBSD: route.h,v 1.28 2001/03/08 03:22:28 enami Exp $ */
/* $NetBSD: route.h,v 1.29 2002/05/12 20:40:12 matt Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -276,9 +276,9 @@ do { \
(rt)->rt_refcnt--; \
} while (0)
struct route_cb route_cb;
struct rtstat rtstat;
struct radix_node_head *rt_tables[AF_MAX+1];
extern struct route_cb route_cb;
extern struct rtstat rtstat;
extern struct radix_node_head *rt_tables[AF_MAX+1];
struct socket;