-/* $OpenBSD: bgpd.h,v 1.426 2022/06/05 12:43:13 claudio Exp $ */
+/* $OpenBSD: bgpd.h,v 1.427 2022/06/07 15:57:47 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#define F_CTL_ADJ_IN 0x2000 /* only set on requests */
#define F_CTL_ADJ_OUT 0x4000 /* only set on requests */
#define F_CTL_BEST 0x8000
-#define F_RTLABEL 0x10000
#define F_CTL_SSV 0x20000 /* only used by bgpctl */
#define F_CTL_INVALID 0x40000 /* only set on requests */
#define F_CTL_OVS_VALID 0x80000
-/* $OpenBSD: kroute.c,v 1.248 2022/06/05 12:43:13 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.249 2022/06/07 15:57:47 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
kr->r.labelid = 0;
if ((label = (struct sockaddr_rtlabel *)
rti_info[RTAX_LABEL]) != NULL) {
- kr->r.flags |= F_RTLABEL;
kr->r.labelid =
rtlabel_name2id(label->sr_label);
}
kr6->r.labelid = 0;
if ((label = (struct sockaddr_rtlabel *)
rti_info[RTAX_LABEL]) != NULL) {
- kr6->r.flags |= F_RTLABEL;
kr6->r.labelid =
rtlabel_name2id(label->sr_label);
}
rtlabel_name2id(label->sr_label);
if (kr->r.labelid != new_labelid) {
rtlabel_unref(kr->r.labelid);
- kr->r.labelid = 0;
- flags |= F_RTLABEL;
kr->r.labelid = new_labelid;
rtlabel_changed = 1;
}
- } else if (kr->r.labelid && label == NULL) {
+ } else if (kr->r.labelid) {
rtlabel_unref(kr->r.labelid);
kr->r.labelid = 0;
- flags &= ~F_RTLABEL;
rtlabel_changed = 1;
}
kr->r.priority = prio;
if (label) {
- kr->r.flags |= F_RTLABEL;
kr->r.labelid =
rtlabel_name2id(label->sr_label);
}
if (kr6->r.labelid != new_labelid) {
rtlabel_unref(kr6->r.labelid);
kr6->r.labelid = 0;
- flags |= F_RTLABEL;
kr6->r.labelid = new_labelid;
rtlabel_changed = 1;
}
- } else if (kr6->r.labelid && label == NULL) {
+ } else if (kr6->r.labelid) {
rtlabel_unref(kr6->r.labelid);
kr6->r.labelid = 0;
- flags &= ~F_RTLABEL;
rtlabel_changed = 1;
}
kr6->r.priority = prio;
if (label) {
- kr6->r.flags |= F_RTLABEL;
kr6->r.labelid =
rtlabel_name2id(label->sr_label);
}