summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-01-31 11:23:21 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-01-31 11:23:21 +0000
commit44b0ccfcc5b078064f76743c000bdd3d1112727b (patch)
tree4f43605fd2f13d346037d0eb786f14953a41414a /usr.sbin/bgpctl/bgpctl.h
parentb06ac598b36bb10d56fde173656c384df8a414ed (diff)
Convert IMSG_CTL_SHOW_RIB_ATTR over to the new ibuf API.
This converts show_attr() and json_attr() and with that also the community specific functions. This removes some hacks inside of show_attr() that where added before. OK tb@
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.h')
-rw-r--r--usr.sbin/bgpctl/bgpctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.h b/usr.sbin/bgpctl/bgpctl.h
index 4ec108688a1..b7070172034 100644
--- a/usr.sbin/bgpctl/bgpctl.h
+++ b/usr.sbin/bgpctl/bgpctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.h,v 1.23 2024/01/30 13:51:13 claudio Exp $ */
+/* $OpenBSD: bgpctl.h,v 1.24 2024/01/31 11:23:20 claudio Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
@@ -27,7 +27,7 @@ struct output {
void (*flowspec)(struct flowspec *);
void (*nexthop)(struct ctl_show_nexthop *);
void (*interface)(struct ctl_show_interface *);
- void (*attr)(u_char *, size_t, int, int);
+ void (*attr)(struct ibuf *, int, int);
void (*communities)(struct ibuf *, struct parse_result *);
void (*rib)(struct ctl_show_rib *, struct ibuf *,
struct parse_result *);