summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-10 08:51:00 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-10 08:51:00 +0000
commitd22877dbabfd0a0409e7dc3605b2175e13617ccf (patch)
treeac7c543361875b00f49de36d3ddba8c1838a05a8 /sys/net
parentb416547b90aa39044f0d3c8201e81e1dafd0ab5c (diff)
Remove various external variable declaration from sources files and
move them to the corresponding header with an appropriate comment if necessary. ok guenther@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pflow.c6
-rw-r--r--sys/net/if_pppoe.c4
-rw-r--r--sys/net/pf.c6
-rw-r--r--sys/net/pfkeyv2_parsemessage.c5
-rw-r--r--sys/net/radix_mpath.c9
5 files changed, 12 insertions, 18 deletions
diff --git a/sys/net/if_pflow.c b/sys/net/if_pflow.c
index 28644c9c204..f7faadca460 100644
--- a/sys/net/if_pflow.c
+++ b/sys/net/if_pflow.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflow.c,v 1.27 2013/03/28 23:10:05 tedu Exp $ */
+/* $OpenBSD: if_pflow.c,v 1.28 2013/04/10 08:50:59 mpi Exp $ */
/*
* Copyright (c) 2011 Florian Obser <florian@narrans.de>
@@ -106,10 +106,6 @@ struct if_clone pflow_cloner =
IF_CLONE_INITIALIZER("pflow", pflow_clone_create,
pflow_clone_destroy);
-/* from in_pcb.c */
-extern int ipport_hifirstauto;
-extern int ipport_hilastauto;
-
/* from udp_usrreq.c */
extern int udpcksum;
diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c
index 170b6858590..7991871a790 100644
--- a/sys/net/if_pppoe.c
+++ b/sys/net/if_pppoe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppoe.c,v 1.36 2013/03/28 16:45:16 tedu Exp $ */
+/* $OpenBSD: if_pppoe.c,v 1.37 2013/04/10 08:50:59 mpi Exp $ */
/* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */
/*
@@ -152,8 +152,6 @@ struct pppoe_softc {
struct ifqueue pppoediscinq;
struct ifqueue pppoeinq;
-extern int sppp_ioctl(struct ifnet *, unsigned long, void *);
-
/* input routines */
static void pppoe_disc_input(struct mbuf *);
static void pppoe_dispatch_disc_pkt(struct mbuf *, int);
diff --git a/sys/net/pf.c b/sys/net/pf.c
index c8baaf09b9a..e98f265405a 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.821 2013/03/29 13:16:14 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.822 2013/04/10 08:50:59 mpi Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -89,7 +89,7 @@
#ifdef INET6
#include <netinet/ip6.h>
-#include <netinet/in_pcb.h>
+#include <netinet6/ip6_var.h>
#include <netinet/icmp6.h>
#include <netinet6/nd6.h>
#include <netinet6/ip6_divert.h>
@@ -5712,9 +5712,7 @@ pf_routable(struct pf_addr *addr, sa_family_t af, struct pfi_kif *kif,
struct sockaddr_in *dst;
int ret = 1;
int check_mpath;
- extern int ipmultipath;
#ifdef INET6
- extern int ip6_multipath;
struct sockaddr_in6 *dst6;
struct route_in6 ro;
#else
diff --git a/sys/net/pfkeyv2_parsemessage.c b/sys/net/pfkeyv2_parsemessage.c
index 2d8f6d26eaa..4be905bb45a 100644
--- a/sys/net/pfkeyv2_parsemessage.c
+++ b/sys/net/pfkeyv2_parsemessage.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2_parsemessage.c,v 1.46 2012/06/29 14:48:04 mikeb Exp $ */
+/* $OpenBSD: pfkeyv2_parsemessage.c,v 1.47 2013/04/10 08:50:59 mpi Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -76,6 +76,7 @@
#include <sys/mbuf.h>
#include <sys/proc.h>
#include <netinet/ip_ipsp.h>
+#include <netinet/ip_var.h>
#include <net/pfkeyv2.h>
#if NPF > 0
@@ -83,8 +84,6 @@
#include <net/pfvar.h>
#endif
-extern int encdebug;
-
#ifdef ENCDEBUG
#define DPRINTF(x) if (encdebug) printf x
#else
diff --git a/sys/net/radix_mpath.c b/sys/net/radix_mpath.c
index 7e2bba7349b..317510a4b8b 100644
--- a/sys/net/radix_mpath.c
+++ b/sys/net/radix_mpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radix_mpath.c,v 1.18 2010/05/07 13:33:16 claudio Exp $ */
+/* $OpenBSD: radix_mpath.c,v 1.19 2013/04/10 08:50:59 mpi Exp $ */
/* $KAME: radix_mpath.c,v 1.13 2002/10/28 21:05:59 itojun Exp $ */
/*
@@ -47,9 +47,12 @@
#include <dev/rndvar.h>
#include <netinet/in.h>
+#include <netinet/ip_var.h>
-extern int ipmultipath;
-extern int ip6_multipath;
+#ifdef INET6
+#include <netinet/ip6.h>
+#include <netinet6/ip6_var.h>
+#endif
u_int32_t rn_mpath_hash(struct route *, u_int32_t *);