| /freebsd-14.2/sys/netlink/ |
| H A D | netlink_snl_route_parsers.h | 59 #define _OUT(_field) offsetof(struct rta_mpath_nh, _field) macro 87 #undef _OUT 130 #define _OUT(_field) offsetof(struct snl_parsed_route, _field) macro 168 #undef _OUT 193 #define _OUT(_field) offsetof(struct snl_parsed_link, _field) macro 219 #undef _OUT 242 #undef _OUT 286 #undef _OUT 305 #define _OUT(_field) offsetof(struct snl_parsed_addr, _field) macro 336 #undef _OUT [all …]
|
| H A D | netlink_snl_generic.h | 65 #define _OUT(_field) offsetof(struct snl_genl_ctrl_mcast_group, _field) macro 67 { .type = CTRL_ATTR_MCAST_GRP_NAME, .off = _OUT(mcast_grp_name), .cb = snl_attr_get_string }, 68 { .type = CTRL_ATTR_MCAST_GRP_ID, .off = _OUT(mcast_grp_id), .cb = snl_attr_get_uint32 }, 70 #undef _OUT 82 #define _OUT(_field) offsetof(struct _getfamily_attrs, _field) macro 84 { .type = CTRL_ATTR_FAMILY_ID , .off = _OUT(family_id), .cb = snl_attr_get_uint16 }, 85 { .type = CTRL_ATTR_FAMILY_NAME, .off = _OUT(family_name), .cb = snl_attr_get_string }, 88 .off = _OUT(mcast_groups), 94 #undef _OUT
|
| H A D | ktest_netlink_message_writer.c | 50 #define _OUT(_field) offsetof(struct test_mbuf_attrs, _field) macro 52 { .type = 1, .off = _OUT(size), .cb = nlattr_get_uint32 }, 53 { .type = 2, .off = _OUT(expected_avail), .cb = nlattr_get_uint32 }, 54 { .type = 3, .off = _OUT(expected_count), .cb = nlattr_get_uint32 }, 55 { .type = 4, .off = _OUT(wtype), .cb = nlattr_get_uint32 }, 56 { .type = 5, .off = _OUT(waitok), .cb = nlattr_get_uint32 }, 58 #undef _OUT
|
| H A D | netlink_snl.h | 802 #define _OUT(_field) offsetof(struct snl_attr_bit, _field) macro 808 #undef _OUT 818 #define _OUT(_field) offsetof(struct snl_attr_bitset, _field) macro 852 #undef _OUT 908 #define _OUT(_field) offsetof(struct snl_errmsg_data, _field) macro 917 { .off_in = _IN(msg), .off_out = _OUT(orig_hdr), .cb = snl_field_get_ptr }, 920 #undef _OUT 924 #define _OUT(_field) offsetof(struct snl_errmsg_data, _field) macro 929 #undef _OUT 964 #define _OUT(_field) offsetof(struct snl_msg_info, _field) macro [all …]
|
| H A D | netlink_generic.c | 186 #define _OUT(_field) offsetof(struct nl_parsed_family, _field) macro 188 { .off_in = _IN(version), .off_out = _OUT(version), .cb = nlf_get_u8 }, 192 { .type = CTRL_ATTR_FAMILY_ID , .off = _OUT(family_id), .cb = nlattr_get_uint16 }, 193 { .type = CTRL_ATTR_FAMILY_NAME , .off = _OUT(family_name), .cb = nlattr_get_string }, 196 #undef _OUT
|
| /freebsd-14.2/usr.bin/genl/ |
| H A D | genl.c | 74 #define _OUT(_field) offsetof(struct nlevent, _field) macro 78 { .type = NLSE_ATTR_TYPE, .off = _OUT(type), .cb = snl_attr_get_string }, 79 { .type = NLSE_ATTR_DATA, .off = _OUT(data), .cb = snl_attr_get_string }, 81 #undef _OUT 94 #define _OUT(_field) offsetof(struct genl_ctrl_op, _field) macro 96 { .type = CTRL_ATTR_OP_ID, .off = _OUT(id), .cb = snl_attr_get_uint32}, 99 #undef _OUT 114 #define _OUT(_field) offsetof(struct genl_family, _field) macro 123 .off = _OUT(ops), 129 .off = _OUT(mcast_groups), [all …]
|
| /freebsd-14.2/lib/libifconfig/ |
| H A D | libifconfig_carp.c | 50 #define _OUT(_field) offsetof(struct ifconfig_carp, _field) macro 52 { .type = CARP_NL_VHID, .off = _OUT(carpr_vhid), .cb = snl_attr_get_uint32 }, 53 { .type = CARP_NL_STATE, .off = _OUT(carpr_state), .cb = snl_attr_get_uint32 }, 54 { .type = CARP_NL_ADVBASE, .off = _OUT(carpr_advbase), .cb = snl_attr_get_int32 }, 55 { .type = CARP_NL_ADVSKEW, .off = _OUT(carpr_advskew), .cb = snl_attr_get_int32 }, 56 …{ .type = CARP_NL_KEY, .off = _OUT(carpr_key), .cb = snl_attr_copy_string, .arg_u32 = CARP_KEY_LEN… 57 { .type = CARP_NL_ADDR, .off = _OUT(carpr_addr), .cb = snl_attr_get_in_addr }, 58 { .type = CARP_NL_ADDR6, .off = _OUT(carpr_addr6), .cb = snl_attr_get_in6_addr }, 60 #undef _OUT
|
| /freebsd-14.2/sys/tests/ |
| H A D | ktest_example.c | 74 #define _OUT(_field) offsetof(struct test1_attrs, _field) macro 76 { .type = 1, .off = _OUT(arg1), .cb = nlattr_get_uint32 }, 77 { .type = 2, .off = _OUT(arg2), .cb = nlattr_get_uint32 }, 78 { .type = 3, .off = _OUT(text), .cb = nlattr_get_string }, 80 #undef _OUT
|
| H A D | ktest.c | 68 #define _OUT(_field) offsetof(struct nl_ktest_parsed, _field) macro 71 { .type = KTEST_ATTR_MOD_NAME, .off = _OUT(mod_name), .cb = nlattr_get_string }, 72 { .type = KTEST_ATTR_TEST_NAME, .off = _OUT(test_name), .cb = nlattr_get_string }, 73 { .type = KTEST_ATTR_TEST_META, .off = _OUT(test_meta), .cb = nlattr_get_nla }, 79 #undef _OUT
|
| /freebsd-14.2/sys/netlink/route/ |
| H A D | rt.c | 404 #define _OUT(_field) offsetof(struct rta_mpath_nh, _field) macro 406 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = nlattr_get_ip }, 407 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = nlattr_get_ipvia }, 415 #undef _OUT 487 #define _OUT(_field) offsetof(struct nl_parsed_route, _field) macro 489 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = nlattr_get_uint32 }, 494 { .type = NL_RTA_DST, .off = _OUT(rta_dst), .cb = nlattr_get_ip }, 495 { .type = NL_RTA_OIF, .off = _OUT(rta_oif), .cb = nlattr_get_ifp }, 496 { .type = NL_RTA_GATEWAY, .off = _OUT(rta_gw), .cb = nlattr_get_ip }, 502 { .type = NL_RTA_VIA, .off = _OUT(rta_gw), .cb = nlattr_get_ipvia }, [all …]
|
| H A D | iface.c | 389 #define _OUT(_field) offsetof(struct nl_parsed_link, _field) macro 405 { .type = IFLA_MTU, .off = _OUT(ifla_mtu), .cb = nlattr_get_uint32 }, 406 { .type = IFLA_LINK, .off = _OUT(ifla_link), .cb = nlattr_get_uint32 }, 409 { .type = IFLA_GROUP, .off = _OUT(ifla_group), .cb = nlattr_get_string }, 413 #undef _OUT 740 #define _OUT(_field) offsetof(struct nl_parsed_ifa, _field) macro 750 { .type = IFAF_VHID, .off = _OUT(ifaf_vhid), .cb = nlattr_get_uint32 }, 756 { .type = IFA_ADDRESS, .off = _OUT(ifa_address), .cb = nlattr_get_ip }, 757 { .type = IFA_LOCAL, .off = _OUT(ifa_local), .cb = nlattr_get_ip }, 760 { .type = IFA_FLAGS, .off = _OUT(ifa_flags), .cb = nlattr_get_uint32 }, [all …]
|
| H A D | neigh.c | 318 #define _OUT(_field) offsetof(struct nl_parsed_neigh, _field) macro 320 { .type = NDAF_NEXT_STATE_TS, .off = _OUT(ndaf_next_ts), .cb = nlattr_get_uint32 }, 325 { .off_in = _IN(ndm_family), .off_out = _OUT(ndm_family), .cb = nlf_get_u8 }, 326 { .off_in = _IN(ndm_flags), .off_out = _OUT(ndm_flags), .cb = nlf_get_u8_u32 }, 327 { .off_in = _IN(ndm_state), .off_out = _OUT(ndm_state), .cb = nlf_get_u16 }, 328 { .off_in = _IN(ndm_ifindex), .off_out = _OUT(nda_ifp), .cb = nlf_get_ifpz }, 332 { .type = NDA_DST, .off = _OUT(nda_dst), .cb = nlattr_get_ip }, 333 { .type = NDA_LLADDR, .off = _OUT(nda_lladdr), .cb = nlattr_get_nla }, 334 { .type = NDA_IFINDEX, .off = _OUT(nda_ifp), .cb = nlattr_get_ifp }, 335 { .type = NDA_FLAGS_EXT, .off = _OUT(ndm_flags), .cb = nlattr_get_uint32 }, [all …]
|
| H A D | nexthop.c | 708 #define _OUT(_field) offsetof(struct nl_parsed_nhop, _field) macro 710 { .type = NHAF_KNHOPS, .off = _OUT(nhaf_knhops), .cb = nlattr_get_flag }, 711 { .type = NHAF_TABLE, .off = _OUT(nhaf_table), .cb = nlattr_get_uint32 }, 713 { .type = NHAF_KID, .off = _OUT(nhaf_kid), .cb = nlattr_get_uint32 }, 714 { .type = NHAF_AIF, .off = _OUT(nhaf_aif), .cb = nlattr_get_uint32 }, 724 { .type = NHA_ID, .off = _OUT(nha_id), .cb = nlattr_get_uint32 }, 725 { .type = NHA_GROUP, .off = _OUT(nha_group), .cb = nlattr_get_nhg }, 727 { .type = NHA_OIF, .off = _OUT(nha_oif), .cb = nlattr_get_ifp }, 728 { .type = NHA_GATEWAY, .off = _OUT(nha_gw), .cb = nlattr_get_ip }, 729 { .type = NHA_GROUPS, .off = _OUT(nha_groups), .cb = nlattr_get_flag }, [all …]
|
| /freebsd-14.2/tests/sys/netlink/ |
| H A D | test_snl.c | 185 #define _OUT(_field) offsetof(struct nl_parsed_link, _field) macro 187 { .type = IFLA_IFNAME, .off = _OUT(ifla_ifname), .cb = snl_attr_get_string }, 188 { .type = IFLA_MTU, .off = _OUT(ifla_mtu), .cb = snl_attr_get_uint32 }, 191 {.off_in = _IN(ifi_index), .off_out = _OUT(ifi_index), .cb = snl_field_get_uint32 }, 194 #undef _OUT
|
| /freebsd-14.2/sys/netinet/ |
| H A D | ip_carp.c | 2313 #define _OUT(_field) offsetof(struct nl_carp_parsed, _field) macro 2316 { .type = CARP_NL_VHID, .off = _OUT(vhid), .cb = nlattr_get_uint32 }, 2317 { .type = CARP_NL_STATE, .off = _OUT(state), .cb = nlattr_get_uint32 }, 2318 { .type = CARP_NL_ADVBASE, .off = _OUT(advbase), .cb = nlattr_get_uint32 }, 2319 { .type = CARP_NL_ADVSKEW, .off = _OUT(advskew), .cb = nlattr_get_uint32 }, 2320 { .type = CARP_NL_KEY, .off = _OUT(key), .cb = nlattr_get_carp_key }, 2321 { .type = CARP_NL_IFINDEX, .off = _OUT(ifindex), .cb = nlattr_get_uint32 }, 2322 { .type = CARP_NL_ADDR, .off = _OUT(addr), .cb = nlattr_get_in_addr }, 2323 { .type = CARP_NL_ADDR6, .off = _OUT(addr6), .cb = nlattr_get_in6_addr }, 2324 { .type = CARP_NL_IFNAME, .off = _OUT(ifname), .cb = nlattr_get_string }, [all …]
|
| /freebsd-14.2/sys/net/ |
| H A D | if_vlan.c | 1238 #define _OUT(_field) offsetof(struct nl_parsed_vlan, _field) macro 1240 { .type = IFLA_VLAN_ID, .off = _OUT(vlan_id), .cb = nlattr_get_uint16 }, 1241 { .type = IFLA_VLAN_FLAGS, .off = _OUT(vlan_flags), .cb = nlattr_get_nla }, 1242 { .type = IFLA_VLAN_PROTOCOL, .off = _OUT(vlan_proto), .cb = nlattr_get_uint16 }, 1244 #undef _OUT
|