/freebsd/sys/netlink/ |
H A D | netlink_snl_route_parsers.h | 59 #define _OUT(_field) offsetof(struct rta_mpath_nh, _field) macro 61 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 }, 66 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = snl_attr_get_ip }, 68 { .type = NL_RTA_RTFLAGS, .off = _OUT(rta_rtflags), .cb = snl_attr_get_uint32 }, 69 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = snl_attr_get_ipvia }, 73 { .off_in = _IN(rtnh_flags), .off_out = _OUT(rtnh_flags), .cb = snl_field_get_uint8 }, 74 { .off_in = _IN(rtnh_hops), .off_out = _OUT(rtnh_weight), .cb = snl_field_get_uint8 }, 75 { .off_in = _IN(rtnh_ifindex), .off_out = _OUT(ifindex), .cb = snl_field_get_uint32 }, 87 #undef _OUT 130 #define _OUT(_field) offsetof(struct snl_parsed_route, _field) macro [all …]
|
H A D | netlink_snl_generic.h | 73 #define _OUT(_field) offsetof(struct _snl_genl_ctrl_mcast_group, _field) macro 77 .off = _OUT(mcast_grp_name), 82 .off = _OUT(mcast_grp_id), 86 #undef _OUT 97 #define _OUT(_field) offsetof(struct _getfamily_attrs, _field) macro 101 .off = _OUT(family_id), 106 .off = _OUT(family_name), 111 .off = _OUT(mcast_groups), 117 #undef _OUT
|
H A D | ktest_netlink_message_writer.c | 48 #define _OUT(_field) offsetof(struct test_nlbuf_attrs, _field) macro 50 { .type = 1, .off = _OUT(size), .cb = nlattr_get_uint32 }, 51 { .type = 2, .off = _OUT(expected_avail), .cb = nlattr_get_uint32 }, 52 { .type = 3, .off = _OUT(waitok), .cb = nlattr_get_uint32 }, 54 #undef _OUT
|
H A D | netlink_snl.h | 834 #define _OUT(_field) offsetof(struct snl_attr_bit, _field) macro 836 { .type = NLA_BITSET_BIT_INDEX, .off = _OUT(bit_index), .cb = snl_attr_get_uint32 }, 837 { .type = NLA_BITSET_BIT_NAME, .off = _OUT(bit_name), .cb = snl_attr_dup_string }, 838 { .type = NLA_BITSET_BIT_VALUE, .off = _OUT(bit_value), .cb = snl_attr_get_flag }, 840 #undef _OUT 850 #define _OUT(_field) offsetof(struct snl_attr_bitset, _field) macro 852 { .type = NLA_BITSET_SIZE, .off = _OUT(nla_bitset_size), .cb = snl_attr_get_uint32 }, 853 { .type = NLA_BITSET_BITS, .off = _OUT(bits), .cb = snl_attr_get_parray, .arg = &_nla_bit_parser }, 854 { .type = NLA_BITSET_VALUE, .off = _OUT(nla_bitset_mask), .cb = snl_attr_dup_nla }, 855 { .type = NLA_BITSET_MASK, .off = _OUT(nla_bitset_value), .cb = snl_attr_dup_nla }, [all …]
|
H A D | netlink_generic.c | 240 #define _OUT(_field) offsetof(struct nl_parsed_family, _field) macro 242 { .off_in = _IN(version), .off_out = _OUT(version), .cb = nlf_get_u8 }, 246 { .type = CTRL_ATTR_FAMILY_ID , .off = _OUT(family_id), .cb = nlattr_get_uint16 }, 247 { .type = CTRL_ATTR_FAMILY_NAME , .off = _OUT(family_name), .cb = nlattr_get_string }, 250 #undef _OUT
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_nl.c | 66 #define _OUT(_field) offsetof(struct nl_parsed_state, _field) macro 68 { .type = PF_ST_ID, .off = _OUT(id), .cb = nlattr_get_uint32 }, 69 { .type = PF_ST_CREATORID, .off = _OUT(creatorid), .cb = nlattr_get_uint32 }, 70 …{ .type = PF_ST_IFNAME, .arg = (const void *)IFNAMSIZ, .off = _OUT(ifname), .cb = nlattr_get_chara… 71 { .type = PF_ST_AF, .off = _OUT(af), .cb = nlattr_get_uint8 }, 72 { .type = PF_ST_PROTO, .off = _OUT(proto), .cb = nlattr_get_uint16 }, 73 { .type = PF_ST_FILTER_ADDR, .off = _OUT(addr), .cb = nlattr_get_in6_addr }, 74 { .type = PF_ST_FILTER_MASK, .off = _OUT(mask), .cb = nlattr_get_in6_addr }, 77 { .off_in = _IN(version), .off_out = _OUT(version), .cb = nlf_get_u8 }, 80 #undef _OUT [all …]
|
H A D | pflow.c | 1392 #define _OUT(_field) offsetof(struct pflow_parsed_del, _field) macro 1394 { .type = PFLOWNL_DEL_ID, .off = _OUT(id), .cb = nlattr_get_uint32 }, 1396 #undef _OUT 1417 #define _OUT(_field) offsetof(struct pflow_parsed_get, _field) macro 1419 { .type = PFLOWNL_GET_ID, .off = _OUT(id), .cb = nlattr_get_uint32 }, 1421 #undef _OUT 1538 #define _OUT(_field) offsetof(struct pflow_sockaddr, _field) macro 1540 { .type = PFLOWNL_ADDR_FAMILY, .off = _OUT(in.sin_family), .cb = nlattr_get_uint8 }, 1541 { .type = PFLOWNL_ADDR_PORT, .off = _OUT(in.sin_port), .cb = nlattr_get_uint16 }, 1542 { .type = PFLOWNL_ADDR_IP, .off = _OUT(in.sin_addr), .cb = nlattr_get_in_addr }, [all …]
|
/freebsd/lib/libpfctl/ |
H A D | libpfctl.c | 295 #define _OUT(_field) offsetof(struct pfctl_status_counter, _field) macro 297 { .type = PF_C_COUNTER, .off = _OUT(counter), .cb = snl_attr_get_uint64 }, 298 { .type = PF_C_NAME, .off = _OUT(name), .cb = snl_attr_get_string }, 299 { .type = PF_C_ID, .off = _OUT(id), .cb = snl_attr_get_uint32 }, 302 #undef _OUT 376 #define _OUT(_field) offsetof(struct pfctl_status, _field) macro 378 { .type = PF_GS_IFNAME, .off = _OUT(ifname), .arg_u32 = IFNAMSIZ, .cb = snl_attr_copy_string }, 379 { .type = PF_GS_RUNNING, .off = _OUT(running), .cb = snl_attr_get_bool }, 380 { .type = PF_GS_SINCE, .off = _OUT(since), .cb = snl_attr_get_uint32 }, 381 { .type = PF_GS_DEBUG, .off = _OUT(debug), .cb = snl_attr_get_uint32 }, [all …]
|
/freebsd/usr.bin/genl/ |
H A D | genl.c | 77 #define _OUT(_field) offsetof(struct nlevent, _field) macro 79 { .type = NLSE_ATTR_SYSTEM, .off = _OUT(name), .cb = snl_attr_get_string }, 80 { .type = NLSE_ATTR_SUBSYSTEM, .off = _OUT(subsystem), .cb = snl_attr_get_string }, 81 { .type = NLSE_ATTR_TYPE, .off = _OUT(type), .cb = snl_attr_get_string }, 82 { .type = NLSE_ATTR_DATA, .off = _OUT(data), .cb = snl_attr_get_string }, 84 #undef _OUT 106 #define _OUT(_field) offsetof(struct genl_ctrl_op, _field) macro 109 .off = _OUT(id), 114 .off = _OUT(flags), 117 #undef _OUT [all …]
|
/freebsd/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 }, 59 { .type = CARP_NL_VERSION, .off = _OUT(carpr_version), .cb = snl_attr_get_uint8 }, 60 { .type = CARP_NL_VRRP_PRIORITY, .off = _OUT(carpr_vrrp_prio), .cb = snl_attr_get_uint8 }, [all …]
|
/freebsd/sbin/pflowctl/ |
H A D | pflowctl.c | 84 #define _OUT(_field) offsetof(struct pflowctl_list, _field) macro 86 { .type = PFLOWNL_L_ID, .off = _OUT(id), .cb = snl_attr_get_int32 }, 90 #undef _OUT 136 #define _OUT(_field) offsetof(struct pflowctl_create, _field) macro 138 { .type = PFLOWNL_CREATE_ID, .off = _OUT(id), .cb = snl_attr_get_int32 }, 142 #undef _OUT 242 #define _OUT(_field) offsetof(struct pflowctl_sockaddr, _field) macro 244 { .type = PFLOWNL_ADDR_FAMILY, .off = _OUT(in.sin_family), .cb = snl_attr_get_uint8 }, 245 { .type = PFLOWNL_ADDR_PORT, .off = _OUT(in.sin_port), .cb = snl_attr_get_uint16 }, 246 { .type = PFLOWNL_ADDR_IP, .off = _OUT(in.sin_addr), .cb = snl_attr_get_in_addr }, [all …]
|
/freebsd/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/sys/netlink/route/ |
H A D | rt.c | 405 #define _OUT(_field) offsetof(struct rta_mpath_nh, _field) macro 407 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = nlattr_get_ip }, 408 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = nlattr_get_ipvia }, 411 { .off_in = _IN(rtnh_flags), .off_out = _OUT(rtnh_flags), .cb = nlf_get_u8 }, 412 { .off_in = _IN(rtnh_hops), .off_out = _OUT(rtnh_weight), .cb = nlf_get_u8 }, 413 { .off_in = _IN(rtnh_ifindex), .off_out = _OUT(ifp), .cb = nlf_get_ifpz }, 416 #undef _OUT 500 #define _OUT(_field) offsetof(struct nl_parsed_route, _field) 502 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = nlattr_get_uint32 }, 507 { .type = NL_RTA_DST, .off = _OUT(rta_ds 488 #define _OUT( global() macro [all...] |
H A D | iface.c | 391 #define _OUT(_field) offsetof(struct nl_parsed_link, _field) macro 393 { .off_in = _IN(ifi_type), .off_out = _OUT(ifi_type), .cb = nlf_get_u16 }, 394 { .off_in = _IN(ifi_index), .off_out = _OUT(ifi_index), .cb = nlf_get_u32 }, 395 { .off_in = _IN(ifi_flags), .off_out = _OUT(ifi_flags), .cb = nlf_get_u32 }, 396 { .off_in = _IN(ifi_change), .off_out = _OUT(ifi_change), .cb = nlf_get_u32 }, 400 { .type = IFLA_INFO_KIND, .off = _OUT(ifla_cloner), .cb = nlattr_get_stringn }, 401 { .type = IFLA_INFO_DATA, .off = _OUT(ifla_idata), .cb = nlattr_get_nla }, 406 { .type = IFLA_IFNAME, .off = _OUT(ifla_ifname), .cb = nlattr_get_string }, 407 { .type = IFLA_MTU, .off = _OUT(ifla_mtu), .cb = nlattr_get_uint32 }, 408 { .type = IFLA_LINK, .off = _OUT(ifla_link), .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 }, 712 { .type = NHAF_FAMILY, .off = _OUT(nhaf_family), .cb = nlattr_get_uint8 }, 713 { .type = NHAF_KID, .off = _OUT(nhaf_kid), .cb = nlattr_get_uint32 }, 714 { .type = NHAF_AIF, .off = _OUT(nhaf_aif), .cb = nlattr_get_uint32 }, 719 { .off_in = _IN(nh_family), .off_out = _OUT(nh_family), .cb = nlf_get_u8 }, 720 { .off_in = _IN(nh_protocol), .off_out = _OUT(nh_protocol), .cb = nlf_get_u8 }, 724 { .type = NHA_ID, .off = _OUT(nha_id), .cb = nlattr_get_uint32 }, 725 { .type = NHA_GROUP, .off = _OUT(nha_group), .cb = nlattr_get_nhg }, [all …]
|
/freebsd/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/usr.sbin/powerd/ |
H A D | powerd.c | 347 #define _OUT(_field) offsetof(struct nlevent, _field) macro 349 { .type = NLSE_ATTR_SYSTEM, .off = _OUT(name), .cb = snl_attr_get_string }, 350 { .type = NLSE_ATTR_SUBSYSTEM, .off = _OUT(subsystem), .cb = snl_attr_get_string }, 351 { .type = NLSE_ATTR_TYPE, .off = _OUT(type), .cb = snl_attr_get_string }, 352 { .type = NLSE_ATTR_DATA, .off = _OUT(data), .cb = snl_attr_get_string }, 354 #undef _OUT
|
/freebsd/sys/netinet/ |
H A D | ip_carp.c | 2806 #define _OUT(_field) offsetof(struct nl_carp_parsed, _field) macro 2808 { .type = CARP_NL_VHID, .off = _OUT(vhid), .cb = nlattr_get_uint32 }, 2809 { .type = CARP_NL_STATE, .off = _OUT(state), .cb = nlattr_get_uint32 }, 2810 { .type = CARP_NL_ADVBASE, .off = _OUT(advbase), .cb = nlattr_get_uint32 }, 2811 { .type = CARP_NL_ADVSKEW, .off = _OUT(advskew), .cb = nlattr_get_uint32 }, 2812 { .type = CARP_NL_KEY, .off = _OUT(key), .cb = nlattr_get_carp_key }, 2813 { .type = CARP_NL_IFINDEX, .off = _OUT(ifindex), .cb = nlattr_get_uint32 }, 2814 { .type = CARP_NL_ADDR, .off = _OUT(addr), .cb = nlattr_get_in_addr }, 2815 { .type = CARP_NL_ADDR6, .off = _OUT(addr6), .cb = nlattr_get_in6_addr }, 2816 { .type = CARP_NL_IFNAME, .off = _OUT(ifname), .cb = nlattr_get_string }, [all …]
|
/freebsd/sys/net/ |
H A D | if_vlan.c | 1239 #define _OUT(_field) offsetof(struct nl_parsed_vlan, _field) macro 1241 { .type = IFLA_VLAN_ID, .off = _OUT(vlan_id), .cb = nlattr_get_uint16 }, 1242 { .type = IFLA_VLAN_FLAGS, .off = _OUT(vlan_flags), .cb = nlattr_get_nla }, 1243 { .type = IFLA_VLAN_PROTOCOL, .off = _OUT(vlan_proto), .cb = nlattr_get_uint16 }, 1245 #undef _OUT
|