summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-12-20 17:39:59 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-12-20 17:39:59 +0100
commit256cc8ee0867d7f5314d3a3d7db5429d2bf16b4e (patch)
tree5199a019763e2f6225434f1b8fb23266e75316c0 /proto/bgp/bgp.h
parenteeba61ccd5d1757fd79fcb0cd42b8dee9f941d7e (diff)
BGP: Report capabilities in show protocols all
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index db9ee8ea..a8a04947 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -174,6 +174,10 @@ struct bgp_caps {
struct bgp_af_caps af_data[0]; /* Per-AF capability data */
};
+#define WALK_AF_CAPS(caps,ac) \
+ for (ac = caps->af_data; ac < &caps->af_data[caps->af_count]; ac++)
+
+
struct bgp_socket {
node n; /* Node in global bgp_sockets */
sock *sk; /* Real listening socket */