/freebsd/tests/sys/netinet/ |
H A D | carp.sh | 91 jexec carp_basic_v4_two ifconfig ${epair_one}b add vhid 1 192.0.2.1/29 94 jexec carp_basic_v4_three ifconfig ${epair_two}b add vhid 1 \ 138 jexec ${j}_two ifconfig ${epair_one}b add vhid 1 carpver 3 192.0.2.1/29 141 jexec ${j}_three ifconfig ${epair_two}b add vhid 1 carpver 3 \ 187 jexec carp_uni_v4_two ifconfig ${epair_one}b add vhid 1 \ 192 jexec carp_uni_v4_three ifconfig ${epair_two}b add vhid 1 \ 243 jexec carp_basic_v6_two ifconfig ${epair_one}b inet6 add vhid 1 \ 247 jexec carp_basic_v6_three ifconfig ${epair_two}b inet6 add vhid 1 \ 293 jexec ${j}_two ifconfig ${epair_one}b inet6 add vhid 1 carpver 3 \ 297 jexec ${j}_three ifconfig ${epair_two}b inet6 add vhid 1 carpver 3 \ [all …]
|
/freebsd/lib/libifconfig/ |
H A D | libifconfig_carp.c | 69 struct ifconfig_carp *carp, size_t ncarp, uint32_t vhid) in _ifconfig_carp_get() argument 101 if (vhid != 0) in _ifconfig_carp_get() 102 snl_add_msg_attr_u32(&nw, CARP_NL_VHID, vhid); in _ifconfig_carp_get() 209 struct ifconfig_carp *carp, uint32_t vhid) in ifconfig_carp_get_vhid() argument 211 return (_ifconfig_carp_get(h, name, carp, 1, vhid)); in ifconfig_carp_get_vhid()
|
H A D | libifconfig.h | 86 uint8_t vhid; member 96 uint8_t vhid; member 296 struct ifconfig_carp *carpr, uint32_t vhid);
|
H A D | libifconfig_inet.c | 92 addr->vhid = ((struct if_data *)ifa->ifa_data)->ifi_vhid; in ifconfig_inet_get_addrinfo()
|
H A D | libifconfig_inet6.c | 99 addr->vhid = ((struct if_data *)ifa->ifa_data)->ifi_vhid; in ifconfig_inet6_get_addrinfo()
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | pfsync.sh | 422 alias 198.18.0.10/32 vhid 10 pass 3WjvVVw7 advskew 50 426 alias 198.18.1.10/32 vhid 11 pass 3WjvVVw7 advskew 50 455 alias 198.18.0.10/32 vhid 10 pass 3WjvVVw7 advskew 100 459 alias 198.18.1.10/32 vhid 11 pass 3WjvVVw7 advskew 100 487 alias 198.18.1.20/32 vhid 21 pass 3WjvVVw7 advskew 50 491 alias 198.18.2.20/32 vhid 22 pass 3WjvVVw7 advskew 50 519 alias 198.18.1.20/32 vhid 21 pass 3WjvVVw7 advskew 100 523 alias 198.18.2.20/32 vhid 22 pass 3WjvVVw7 advskew 100 582 jexec gw_route_to_backup ifconfig if_br0 vhid 10 advskew 0 583 jexec gw_route_to_backup ifconfig if_br1 vhid 11 advskew 0 [all …]
|
H A D | sctp.sh | 605 alias 192.0.2.1/32 vhid 1 pass 1234 608 alias 198.51.100.2/32 vhid 2 pass 4321 619 alias 192.0.2.1/32 vhid 1 pass 1234 622 alias 198.51.100.2/32 vhid 2 pass 4321
|
/freebsd/sbin/ifconfig/ |
H A D | af_inet.c | 68 uint32_t vhid; member 425 if (pdata->vhid != 0) in in_exec_nl() 426 snl_add_msg_attr_u32(&nw, IFAF_VHID, pdata->vhid); in in_exec_nl() 506 in_set_vhid(int vhid) in in_set_vhid() argument 509 in_addreq.ifra_vhid = vhid; in in_set_vhid() 511 in_add.vhid = (uint32_t)vhid; in in_set_vhid()
|
H A D | af_inet6.c | 68 uint32_t vhid; member 487 if (pdata->vhid != 0) in in6_exec_nl() 488 snl_add_msg_attr_u32(&nw, IFAF_VHID, pdata->vhid); in in6_exec_nl() 685 in6_set_vhid(int vhid) in in6_set_vhid() argument 688 in6_addreq.ifra_vhid = vhid; in in6_set_vhid() 690 in6_add.vhid = (uint32_t)vhid; in in6_set_vhid()
|
/freebsd/tests/sys/netlink/ |
H A D | test_rtnl_ifaddr.py | 217 def setup_dummy_carp(self, ifindex: int, vhid: int): 225 msg.add_nla(NlAttrU32(CarpAttrType.CARP_NL_VHID, vhid)) 314 vhid = 77 316 self.setup_dummy_carp(iface.ifindex, vhid) 321 attrs_bsd = [NlAttrU32(IfafAttrType.IFAF_VHID, vhid)] 337 assert ifa_bsd.get_nla(IfafAttrType.IFAF_VHID).u32 == vhid 342 vhid = 77 344 self.setup_dummy_carp(iface.ifindex, vhid) 348 attrs_bsd = [NlAttrU32(IfafAttrType.IFAF_VHID, vhid)] 362 assert ifa_bsd.get_nla(IfafAttrType.IFAF_VHID).u32 == vhid
|
/freebsd/sys/netinet/ |
H A D | ip_carp.c | 388 uint8_t vhid = sc->sc_vhid & 0xff; in carp_hmac_prepare() local 412 SHA1Update(&sc->sc_sha1, (void *)&vhid, sizeof(vhid)); in carp_hmac_prepare() 777 carp_find_ifa(const struct mbuf *m, sa_family_t af, uint8_t vhid) in carp_find_ifa() argument 801 ifa->ifa_carp->sc_vhid == vhid) in carp_find_ifa() 803 if (vhid == 0 && carp_source_is_self(m, ifa, af)) in carp_find_ifa() 2028 int vhid; in carp_output() local 2050 bcopy(mtag + 1, &vhid, sizeof(vhid)); in carp_output() 2065 eh->ether_shost[5] = vhid; in carp_output() 2078 carp_alloc(struct ifnet *ifp, carp_version_t version, int vhid) in carp_alloc() argument 2090 .sc_vhid = vhid, in carp_alloc() [all …]
|
H A D | in.c | 459 const int vhid = (cmd == SIOCAIFADDR) ? ifra->ifra_vhid : 0; in in_aifaddr_ioctl() local 489 if (vhid != 0 && carp_attach_p == NULL) in in_aifaddr_ioctl() 578 if (vhid != 0) { in in_aifaddr_ioctl() 579 error = (*carp_attach_p)(&ia->ia_ifa, vhid); in in_aifaddr_ioctl() 609 if (vhid == 0) { in in_aifaddr_ioctl() 618 if (vhid == 0 && ia_need_loopback_route(ia)) { in in_aifaddr_ioctl() 653 if (vhid == 0) in in_aifaddr_ioctl()
|
/freebsd/share/examples/libifconfig/ |
H A D | status.c | 96 if (addr.vhid != 0) { in print_inet4_addr() 97 printf("vhid %d ", addr.vhid); in print_inet4_addr() 180 if (addr.vhid != 0) { in print_inet6_addr() 181 printf("vhid %d ", addr.vhid); in print_inet6_addr()
|
/freebsd/contrib/netbsd-tests/net/carp/ |
H A D | t_basic.sh | 67 vhid 175 advskew $advskew advbase 1 pass s3cret \
|
/freebsd/sys/netlink/route/ |
H A D | iface.c | 1010 uint32_t vhid = (uint32_t)(*carp_get_vhid_p)(ifa); in dump_iface_addr() local 1011 nlattr_add_u32(nw, IFAF_VHID, vhid); in dump_iface_addr()
|