summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-06-28 12:12:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-06-28 12:12:35 +0000
commit6e8e4cc5ec84d85c9851240ff0e3b77c613a1579 (patch)
tree937f5be4c9ac31718872d978721f3f7412a8b91b /usr.sbin
parent3e2ba2884185d4e69e17380a43420ac6a503448f (diff)
Try to fit 0x200 into an u_int8_t is not so clever. Pass the flags as
u_int16_t so that "bgpctl show rib 4/8 all" works again.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/bgpd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index ac6c400cd88..7da0089767e 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.170 2005/06/25 19:24:37 henning Exp $ */
+/* $OpenBSD: bgpd.h,v 1.171 2005/06/28 12:12:34 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -455,17 +455,17 @@ struct ctl_show_rib {
u_int16_t prefix_cnt;
u_int16_t active_cnt;
u_int16_t aspath_len;
+ u_int16_t flags;
u_int8_t prefixlen;
u_int8_t origin;
- u_int8_t flags;
/* plus a aspath_len bytes long aspath */
};
struct ctl_show_rib_prefix {
struct bgpd_addr prefix;
time_t lastchange;
+ u_int16_t flags;
u_int8_t prefixlen;
- u_int8_t flags;
};
enum as_spec {