From 44b0ccfcc5b078064f76743c000bdd3d1112727b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 31 Jan 2024 11:23:21 +0000 Subject: 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@ --- usr.sbin/bgpctl/bgpctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bgpctl/bgpctl.h') 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 @@ -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 *); -- cgit v1.2.3