/openbsd/usr.sbin/relayd/ |
H A D | carp.c | 139 carp_demote_set(char *group, int demote) in carp_demote_set() argument 148 if (c->changed_by + demote < 0) { in carp_demote_set() 156 c->changed_by += demote; in carp_demote_set() 159 if (demote < 0 && c->changed_by == 0) in carp_demote_set() 169 int demote = 0; in carp_demote_reset() local 181 demote -= level; in carp_demote_reset() 182 demote += value; in carp_demote_reset() 184 if (carp_demote_ioctl(group, demote) == -1) in carp_demote_reset() 191 carp_demote_ioctl(char *group, int demote) in carp_demote_ioctl() argument 208 ifgr.ifgr_attrib.ifg_carp_demoted = demote; in carp_demote_ioctl() [all …]
|
H A D | pfe.c | 710 struct ctl_demote demote; in pfe_sync() local 788 demote.level = 0; in pfe_sync() 790 demote.level = -1; in pfe_sync() 794 demote.level = 1; in pfe_sync() 797 if (demote.level == 0) in pfe_sync() 800 demote.level, table->conf.name, table->conf.demote_group); in pfe_sync() 801 (void)strlcpy(demote.group, table->conf.demote_group, in pfe_sync() 802 sizeof(demote.group)); in pfe_sync() 804 &demote, sizeof(demote)); in pfe_sync()
|
H A D | relayd.c | 395 struct ctl_demote demote; in parent_dispatch_pfe() local 402 IMSG_SIZE_CHECK(imsg, &demote); in parent_dispatch_pfe() 403 memcpy(&demote, imsg->data, sizeof(demote)); in parent_dispatch_pfe() 404 carp_demote_set(demote.group, demote.level); in parent_dispatch_pfe()
|
/openbsd/usr.sbin/ospfd/ |
H A D | carp.c | 132 carp_demote_set(char *group, int demote) in carp_demote_set() argument 141 if (c->changed_by + demote < 0) { in carp_demote_set() 146 if (c->do_demote && carp_demote_ioctl(group, demote) == -1) in carp_demote_set() 149 c->changed_by += demote; in carp_demote_set() 152 if (demote < 0 && c->changed_by == 0) in carp_demote_set() 159 carp_demote_ioctl(char *group, int demote) in carp_demote_ioctl() argument 171 ifgr.ifgr_attrib.ifg_carp_demoted = demote; in carp_demote_ioctl() 175 "of group '%s'", (demote > 0) ? "increment" : "decrement", in carp_demote_ioctl() 179 (demote > 0) ? "incremented" : "decremented", group); in carp_demote_ioctl()
|
/openbsd/usr.sbin/ospf6d/ |
H A D | carp.c | 132 carp_demote_set(char *group, int demote) in carp_demote_set() argument 141 if (c->changed_by + demote < 0) { in carp_demote_set() 146 if (c->do_demote && carp_demote_ioctl(group, demote) == -1) in carp_demote_set() 149 c->changed_by += demote; in carp_demote_set() 152 if (demote < 0 && c->changed_by == 0) in carp_demote_set() 159 carp_demote_ioctl(char *group, int demote) in carp_demote_ioctl() argument 171 ifgr.ifgr_attrib.ifg_carp_demoted = demote; in carp_demote_ioctl() 175 "of group '%s'", (demote > 0) ? "increment" : "decrement", in carp_demote_ioctl() 179 (demote > 0) ? "incremented" : "decremented", group); in carp_demote_ioctl()
|
/openbsd/usr.sbin/ripd/ |
H A D | carp.c | 132 carp_demote_set(char *group, int demote) in carp_demote_set() argument 141 if (c->changed_by + demote < 0) { in carp_demote_set() 146 if (c->do_demote && carp_demote_ioctl(group, demote) == -1) in carp_demote_set() 149 c->changed_by += demote; in carp_demote_set() 152 if (demote < 0 && c->changed_by == 0) in carp_demote_set() 159 carp_demote_ioctl(char *group, int demote) in carp_demote_ioctl() argument 171 ifgr.ifgr_attrib.ifg_carp_demoted = demote; in carp_demote_ioctl() 175 "of group '%s'", (demote > 0) ? "increment" : "decrement", in carp_demote_ioctl() 179 (demote > 0) ? "incremented" : "decremented", group); in carp_demote_ioctl()
|
/openbsd/usr.sbin/bgpd/ |
H A D | carp.c | 133 carp_demote_set(char *group, int demote) in carp_demote_set() argument 142 if (c->changed_by + demote < 0) { in carp_demote_set() 147 if (c->do_demote && carp_demote_ioctl(group, demote) == -1) in carp_demote_set() 150 c->changed_by += demote; in carp_demote_set() 153 if (demote < 0 && c->changed_by == 0) in carp_demote_set() 160 carp_demote_ioctl(char *group, int demote) in carp_demote_ioctl() argument 172 ifgr.ifgr_attrib.ifg_carp_demoted = demote; in carp_demote_ioctl() 176 "of group '%s'", (demote > 0) ? "increment" : "decrement", in carp_demote_ioctl() 180 (demote > 0) ? "incremented" : "decremented", group); in carp_demote_ioctl()
|
H A D | bgpd.c | 862 struct demote_msg demote; in dispatch_imsg() local 1006 else if (imsg_get_data(&imsg, &demote, sizeof(demote)) in dispatch_imsg() 1010 carp_demote_set(demote.demote_group, in dispatch_imsg() 1011 demote.level); in dispatch_imsg()
|
/openbsd/usr.sbin/sasyncd/ |
H A D | carp.c | 105 carp_demote(int demote, int force) in carp_demote() argument 110 if (carp_demoted + demote < 0) { in carp_demote() 137 ifgr.ifgr_attrib.ifg_carp_demoted = demote; in carp_demote() 140 "of group '%s'", (demote > 0) ? in carp_demote() 143 carp_demoted += demote; in carp_demote() 145 "of group '%s'", (demote > 0) ? in carp_demote()
|
/openbsd/regress/sys/netinet/carp/ |
H A D | README | 1 carp_1: simplest. becoming master properly. demote.
|
/openbsd/share/snmp/ |
H A D | OPENBSD-CARP-MIB.txt | 213 "The demote value of the interface group." 229 "The demote value of the interface group."
|
/openbsd/sys/net/ |
H A D | if.c | 3070 int demote; in if_setgroupattribs() local 3078 demote = ifgr->ifgr_attrib.ifg_carp_demoted; in if_setgroupattribs() 3079 if (demote + ifg->ifg_carp_demoted > 0xff || in if_setgroupattribs() 3080 demote + ifg->ifg_carp_demoted < 0) in if_setgroupattribs() 3083 ifg->ifg_carp_demoted += demote; in if_setgroupattribs()
|
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/ |
H A D | AArch64CallingConvention.td | 268 // Re-demote pointers to 32-bits so we don't end up storing 64-bit
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | SIInstructions.td | 434 // a mask of live lanes after a kill/demote operation.
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | IntrinsicsX86.td | 5140 // Cache-line demote
|
/openbsd/share/dict/ |
H A D | web2 | 50889 demote
|