-/* $OpenBSD: bgpctl.c,v 1.204 2018/07/11 16:35:37 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.205 2018/07/12 21:45:37 benno Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
void
show_interface_head(void)
{
- printf("%-15s%-15s%-15s%s\n", "Interface", "Nexthop state", "Flags",
+ printf("%-15s%-9s%-9s%-7s%s\n", "Interface", "rdomain", "Nexthop", "Flags",
"Link state");
}
case IMSG_CTL_SHOW_INTERFACE:
k = imsg->data;
printf("%-15s", k->ifname);
- printf("%-15s", k->nh_reachable ? "ok" : "invalid");
- printf("%-15s", k->flags & IFF_UP ? "UP" : "");
+ printf("%-9u", k->rdomain);
+ printf("%-9s", k->nh_reachable ? "ok" : "invalid");
+ printf("%-7s", k->flags & IFF_UP ? "UP" : "");
if ((ifms_type = ift2ifm(k->if_type)) != 0)
printf("%s, ", get_media_descr(ifms_type));
-/* $OpenBSD: bgpd.h,v 1.324 2018/07/11 16:34:36 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.325 2018/07/12 21:45:37 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
struct kif {
char ifname[IFNAMSIZ];
u_int64_t baudrate;
+ u_int rdomain;
int flags;
u_short ifindex;
u_int8_t if_type;
-/* $OpenBSD: kroute.c,v 1.219 2018/07/11 14:08:46 benno Exp $ */
+/* $OpenBSD: kroute.c,v 1.220 2018/07/12 21:45:37 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
kif->k.flags = flags;
kif->k.link_state = ifd->ifi_link_state;
kif->k.if_type = ifd->ifi_type;
+ kif->k.rdomain = ifd->ifi_rdomain;
kif->k.baudrate = ifd->ifi_baudrate;
send_imsg_session(IMSG_IFINFO, 0, &kif->k, sizeof(kif->k));
kif->k.flags = ifm.ifm_flags;
kif->k.link_state = ifm.ifm_data.ifi_link_state;
kif->k.if_type = ifm.ifm_data.ifi_type;
+ kif->k.rdomain = ifm.ifm_data.ifi_rdomain;
kif->k.baudrate = ifm.ifm_data.ifi_baudrate;
kif->k.nh_reachable = kif_validate(&kif->k);