summaryrefslogtreecommitdiffstats
path: root/sbin/route
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-12-04 20:15:53 +0000
committereadler <eadler@FreeBSD.org>2013-12-04 20:15:53 +0000
commitb41ad3b4c5a57e8275a45d7840317f7f804431b3 (patch)
tree82dc18f0935edb16cac4bcc0f6d74e6471e29384 /sbin/route
parent8899d0bd6d8bad732b8691980566c75a92926f4a (diff)
downloadFreeBSD-src-b41ad3b4c5a57e8275a45d7840317f7f804431b3.zip
FreeBSD-src-b41ad3b4c5a57e8275a45d7840317f7f804431b3.tar.gz
route(1): Pull static data to the top of the file.
This is a pre-requisisite to some upcoming changes. Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> Discussed on: -hackers
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/route.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index d8b0dbf..5fad875 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -74,6 +74,14 @@ __FBSDID("$FreeBSD$");
#define ATALK_BUF_SIZE 20
+struct fibl {
+ TAILQ_ENTRY(fibl) fl_next;
+
+ int fl_num;
+ int fl_error;
+ int fl_errno;
+};
+
static struct keytab {
const char *kt_cp;
int kt_i;
@@ -99,6 +107,13 @@ static int rtm_seq;
static char rt_line[NI_MAXHOST];
static char net_line[MAXHOSTNAMELEN + 1];
+static struct {
+ struct rt_msghdr m_rtm;
+ char m_space[512];
+} m_rtmsg;
+
+static TAILQ_HEAD(fibl_head_t, fibl) fibl_head;
+
static int atalk_aton(const char *, struct at_addr *);
static char *atalk_ntoa(struct at_addr, char [ATALK_BUF_SIZE]);
static void printb(int, const char *);
@@ -129,16 +144,6 @@ static void set_metric(char *, int);
static int set_sofib(int);
static void sockaddr(char *, struct sockaddr *, size_t);
static void sodump(struct sockaddr *, const char *);
-
-struct fibl {
- TAILQ_ENTRY(fibl) fl_next;
-
- int fl_num;
- int fl_error;
- int fl_errno;
-};
-static TAILQ_HEAD(fibl_head_t, fibl) fibl_head;
-
static int fiboptlist_csv(const char *, struct fibl_head_t *);
static int fiboptlist_range(const char *, struct fibl_head_t *);
@@ -1483,11 +1488,6 @@ monitor(int argc, char *argv[])
}
}
-static struct {
- struct rt_msghdr m_rtm;
- char m_space[512];
-} m_rtmsg;
-
static int
rtmsg(int cmd, int flags, int fib)
{
OpenPOWER on IntegriCloud