Home
last modified time | relevance | path

Searched refs:_OUT (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/sys/netlink/
H A Dnetlink_snl_route_parsers.h61 #define _OUT(_field) offsetof(struct rta_mpath_nh, _field) macro
63 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = snl_attr_get_uint32 },
68 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = snl_attr_get_ip },
69 { .type = NL_RTA_PRIORITY, .off = _OUT(rta_metric), .cb = snl_attr_get_uint32 },
71 { .type = NL_RTA_RTFLAGS, .off = _OUT(rta_rtflags), .cb = snl_attr_get_uint32 },
72 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = snl_attr_get_ipvia },
73 { .type = NL_RTA_EXPIRES, .off = _OUT(rta_expire), .cb = snl_attr_get_uint32 },
77 { .off_in = _IN(rtnh_flags), .off_out = _OUT(rtnh_flags), .cb = snl_field_get_uint8 },
78 { .off_in = _IN(rtnh_hops), .off_out = _OUT(rtnh_weight), .cb = snl_field_get_uint8 },
79 { .off_in = _IN(rtnh_ifindex), .off_out = _OUT(ifindex), .cb = snl_field_get_uint32 },
[all …]
H A Dnetlink_snl_generic.h68 #define _OUT(_field) offsetof(struct _snl_genl_ctrl_mcast_group, _field) macro
72 .off = _OUT(mcast_grp_name),
77 .off = _OUT(mcast_grp_id),
81 #undef _OUT
92 #define _OUT(_field) offsetof(struct _getfamily_attrs, _field) macro
96 .off = _OUT(family_id),
101 .off = _OUT(family_name),
106 .off = _OUT(mcast_groups),
112 #undef _OUT
H A Dktest_netlink_message_writer.c46 #define _OUT(_field) offsetof(struct test_nlbuf_attrs, _field) macro
48 { .type = 1, .off = _OUT(size), .cb = nlattr_get_uint32 },
49 { .type = 2, .off = _OUT(expected_avail), .cb = nlattr_get_uint32 },
50 { .type = 3, .off = _OUT(waitok), .cb = nlattr_get_uint32 },
52 #undef _OUT
H A Dnetlink_snl.h907 #define _OUT(_field) offsetof(struct snl_attr_bit, _field) macro
909 { .type = NLA_BITSET_BIT_INDEX, .off = _OUT(bit_index), .cb = snl_attr_get_uint32 },
910 { .type = NLA_BITSET_BIT_NAME, .off = _OUT(bit_name), .cb = snl_attr_dup_string },
911 { .type = NLA_BITSET_BIT_VALUE, .off = _OUT(bit_value), .cb = snl_attr_get_flag },
913 #undef _OUT
923 #define _OUT(_field) offsetof(struct snl_attr_bitset, _field) macro
925 { .type = NLA_BITSET_SIZE, .off = _OUT(nla_bitset_size), .cb = snl_attr_get_uint32 },
926 { .type = NLA_BITSET_BITS, .off = _OUT(bits), .cb = snl_attr_get_parray, .arg = &_nla_bit_parser },
927 { .type = NLA_BITSET_VALUE, .off = _OUT(nla_bitset_mask), .cb = snl_attr_dup_nla },
928 { .type = NLA_BITSET_MASK, .off = _OUT(nla_bitset_value), .cb = snl_attr_dup_nla },
[all …]
H A Dnetlink_generic.c246 #define _OUT(_field) offsetof(struct nl_parsed_family, _field) macro
248 { .off_in = _IN(version), .off_out = _OUT(version), .cb = nlf_get_u8 },
252 { .type = CTRL_ATTR_FAMILY_ID , .off = _OUT(family_id), .cb = nlattr_get_uint16 },
253 { .type = CTRL_ATTR_FAMILY_NAME , .off = _OUT(family_name), .cb = nlattr_get_string },
256 #undef _OUT
/freebsd/sys/netpfil/pf/
H A Dpf_nl.c73 #define _OUT(_field) offsetof(struct nl_parsed_state, _field) macro
75 { .type = PF_ST_ID, .off = _OUT(id), .cb = nlattr_get_uint32 },
76 { .type = PF_ST_CREATORID, .off = _OUT(creatorid), .cb = nlattr_get_uint32 },
77 …{ .type = PF_ST_IFNAME, .arg = (const void *)IFNAMSIZ, .off = _OUT(ifname), .cb = nlattr_get_chara…
78 { .type = PF_ST_AF, .off = _OUT(af), .cb = nlattr_get_uint8 },
79 { .type = PF_ST_PROTO, .off = _OUT(proto), .cb = nlattr_get_uint16 },
80 { .type = PF_ST_FILTER_ADDR, .off = _OUT(addr), .cb = nlattr_get_in6_addr },
81 { .type = PF_ST_FILTER_MASK, .off = _OUT(mask), .cb = nlattr_get_in6_addr },
82 { .type = PF_ST_INCLUDE_RULE, .off = _OUT(include_rule), .cb = nlattr_get_bool },
85 { .off_in = _IN(version), .off_out = _OUT(version), .cb = nlf_get_u8 },
[all …]
H A Dpflow.c1392 #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 Dlibpfctl.c305 #define _OUT(_field) offsetof(struct pfctl_status_counter, _field) macro
307 { .type = PF_C_COUNTER, .off = _OUT(counter), .cb = snl_attr_get_uint64 },
308 { .type = PF_C_NAME, .off = _OUT(name), .cb = snl_attr_get_string },
309 { .type = PF_C_ID, .off = _OUT(id), .cb = snl_attr_get_uint32 },
312 #undef _OUT
386 #define _OUT(_field) offsetof(struct pfctl_status, _field) macro
388 { .type = PF_GS_IFNAME, .off = _OUT(ifname), .arg_u32 = IFNAMSIZ, .cb = snl_attr_copy_string },
389 { .type = PF_GS_RUNNING, .off = _OUT(running), .cb = snl_attr_get_bool },
390 { .type = PF_GS_SINCE, .off = _OUT(since), .cb = snl_attr_get_uint32 },
391 { .type = PF_GS_DEBUG, .off = _OUT(debug), .cb = snl_attr_get_uint32 },
[all …]
/freebsd/usr.bin/genl/
H A Dgenl.c77 #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
102 #define _OUT(_field) offsetof(struct genl_ctrl_op, _field) macro
105 .off = _OUT(id),
110 .off = _OUT(flags),
113 #undef _OUT
[all …]
/freebsd/tests/sys/netlink/
H A Dtest_rtnl_gre.c43 #define _OUT(_field) offsetof(struct nl_parsed_gre, _field) macro
45 { .type = IFLA_GRE_LOCAL, .off = _OUT(ifla_local), .cb = snl_attr_get_ip },
46 { .type = IFLA_GRE_REMOTE, .off = _OUT(ifla_remote), .cb = snl_attr_get_ip },
47 { .type = IFLA_GRE_FLAGS, .off = _OUT(ifla_flags), .cb = snl_attr_get_uint32 },
48 { .type = IFLA_GRE_OKEY, .off = _OUT(ifla_okey), .cb = snl_attr_get_uint32 },
49 { .type = IFLA_GRE_ENCAP_TYPE, .off = _OUT(ifla_encap_type), .cb = snl_attr_get_uint32 },
50 { .type = IFLA_GRE_ENCAP_SPORT, .off = _OUT(ifla_encap_sport), .cb = snl_attr_get_uint16 },
52 #undef _OUT
55 #define _OUT(_field) offsetof(struct nla_gre_info, _field) macro
57 { .type = IFLA_INFO_KIND, .off = _OUT(kind), .cb = snl_attr_get_string },
[all …]
H A Dtest_rtnl_gif.c40 #define _OUT(_field) offsetof(struct nl_parsed_gif, _field) macro
42 { .type = IFLA_IPTUN_LOCAL, .off = _OUT(ifla_local), .cb = snl_attr_get_ip },
43 { .type = IFLA_IPTUN_REMOTE, .off = _OUT(ifla_remote), .cb = snl_attr_get_ip },
44 { .type = IFLA_IPTUN_FLAGS, .off = _OUT(ifla_flags), .cb = snl_attr_get_uint32 },
46 #undef _OUT
49 #define _OUT(_field) offsetof(struct nla_gif_info, _field) macro
51 { .type = IFLA_INFO_KIND, .off = _OUT(kind), .cb = snl_attr_get_string },
52 { .type = IFLA_INFO_DATA, .off = _OUT(data),
55 #undef _OUT
59 #define _OUT(_field) offsetof(struct nla_gif_link, _field) macro
[all …]
H A Dtest_snl.c252 #define _OUT(_field) offsetof(struct nl_parsed_link, _field) macro
254 { .type = IFLA_IFNAME, .off = _OUT(ifla_ifname), .cb = snl_attr_get_string },
255 { .type = IFLA_MTU, .off = _OUT(ifla_mtu), .cb = snl_attr_get_uint32 },
258 {.off_in = _IN(ifi_index), .off_out = _OUT(ifi_index), .cb = snl_field_get_uint32 },
261 #undef _OUT
/freebsd/lib/libifconfig/
H A Dlibifconfig_carp.c50 #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_get_bytes, .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/ifconfig/
H A Difgeneve.c224 #define _OUT(_field) offsetof(struct nl_parsed_geneve, _field) macro
226 { .type = IFLA_GENEVE_ID, .off = _OUT(ifla_vni), .cb = snl_attr_get_uint32 },
227 { .type = IFLA_GENEVE_PROTOCOL, .off = _OUT(ifla_proto), .cb = snl_attr_get_uint16 },
228 { .type = IFLA_GENEVE_LOCAL, .off = _OUT(ifla_local), .cb = snl_attr_get_ip },
229 { .type = IFLA_GENEVE_REMOTE, .off = _OUT(ifla_remote), .cb = snl_attr_get_ip },
230 { .type = IFLA_GENEVE_LOCAL_PORT, .off = _OUT(ifla_local_port), .cb = snl_attr_get_uint16 },
231 { .type = IFLA_GENEVE_PORT, .off = _OUT(ifla_remote_port), .cb = snl_attr_get_uint16 },
232 { .type = IFLA_GENEVE_PORT_RANGE, .off = _OUT(ifla_port_range), .cb = snl_attr_dup_struct },
233 { .type = IFLA_GENEVE_DF, .off = _OUT(ifla_df), .cb = snl_attr_get_uint8 },
234 { .type = IFLA_GENEVE_TTL, .off = _OUT(ifla_ttl), .cb = snl_attr_get_uint8 },
[all …]
H A Difgif.c103 #define _OUT(_field) offsetof(struct nl_parsed_gif, _field) macro
105 { .type = IFLA_IPTUN_FLAGS, .off = _OUT(ifla_flags), .cb = snl_attr_get_uint32 },
107 #undef _OUT
110 #define _OUT(_field) offsetof(struct nla_gif_info, _field) macro
112 { .type = IFLA_INFO_KIND, .off = _OUT(kind), .cb = snl_attr_get_string },
113 { .type = IFLA_INFO_DATA, .off = _OUT(data),
116 #undef _OUT
120 #define _OUT(_field) offsetof(struct nla_gif_link, _field) macro
122 { .type = IFLA_LINKINFO, .off = _OUT(linkinfo),
127 { .off_in = _IN(ifi_index), .off_out = _OUT(ifi_index),
[all …]
H A Difgre.c98 #define _OUT(_field) offsetof(struct nl_parsed_gre, _field) macro
100 { .type = IFLA_GRE_FLAGS, .off = _OUT(ifla_flags), .cb = snl_attr_get_uint32 },
101 { .type = IFLA_GRE_OKEY, .off = _OUT(ifla_okey), .cb = snl_attr_get_uint32 },
102 { .type = IFLA_GRE_ENCAP_TYPE, .off = _OUT(ifla_encap_type),
104 { .type = IFLA_GRE_ENCAP_SPORT, .off = _OUT(ifla_encap_sport),
107 #undef _OUT
110 #define _OUT(_field) offsetof(struct nla_gre_info, _field) macro
112 { .type = IFLA_INFO_KIND, .off = _OUT(kind), .cb = snl_attr_get_string },
113 { .type = IFLA_INFO_DATA, .off = _OUT(data),
116 #undef _OUT
[all …]
/freebsd/sbin/pflowctl/
H A Dpflowctl.c84 #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 Dktest_example.c74 #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 Dktest.c68 #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 Drt.c468 #define _OUT(_field) offsetof(struct rta_mpath_nh, _field) macro
470 { .type = NL_RTA_GATEWAY, .off = _OUT(gw), .cb = nlattr_get_ip },
471 { .type = NL_RTA_VIA, .off = _OUT(gw), .cb = nlattr_get_ipvia },
474 { .off_in = _IN(rtnh_flags), .off_out = _OUT(rtnh_flags), .cb = nlf_get_u8 },
475 { .off_in = _IN(rtnh_hops), .off_out = _OUT(rtnh_weight), .cb = nlf_get_u8 },
476 { .off_in = _IN(rtnh_ifindex), .off_out = _OUT(ifp), .cb = nlf_get_ifpz },
479 #undef _OUT
570 #define _OUT(_field) offsetof(struct nl_parsed_route, _field) macro
572 { .type = NL_RTAX_MTU, .off = _OUT(rtax_mtu), .cb = nlattr_get_uint32 },
577 { .type = NL_RTA_DST, .off = _OUT(rta_dst), .cb = nlattr_get_ip },
[all …]
H A Diface.c429 #define _OUT(_field) offsetof(struct nl_parsed_link, _field) macro
431 { .off_in = _IN(ifi_type), .off_out = _OUT(ifi_type), .cb = nlf_get_u16 },
432 { .off_in = _IN(ifi_index), .off_out = _OUT(ifi_index), .cb = nlf_get_u32 },
433 { .off_in = _IN(ifi_flags), .off_out = _OUT(ifi_flags), .cb = nlf_get_u32 },
434 { .off_in = _IN(ifi_change), .off_out = _OUT(ifi_change), .cb = nlf_get_u32 },
438 { .type = IFLA_INFO_KIND, .off = _OUT(ifla_cloner), .cb = nlattr_get_stringn },
439 { .type = IFLA_INFO_DATA, .off = _OUT(ifla_idata), .cb = nlattr_get_nla },
444 { .type = IFLA_ADDRESS, .off = _OUT(ifla_address), .cb = nlattr_get_nla },
445 { .type = IFLA_IFNAME, .off = _OUT(ifla_ifname), .cb = nlattr_get_string },
446 { .type = IFLA_MTU, .off = _OUT(ifla_mtu), .cb = nlattr_get_uint32 },
[all …]
H A Dneigh.c317 #define _OUT(_field) offsetof(struct nl_parsed_neigh, _field) macro
319 { .type = NDAF_NEXT_STATE_TS, .off = _OUT(ndaf_next_ts), .cb = nlattr_get_uint32 },
324 { .off_in = _IN(ndm_family), .off_out = _OUT(ndm_family), .cb = nlf_get_u8 },
325 { .off_in = _IN(ndm_flags), .off_out = _OUT(ndm_flags), .cb = nlf_get_u8_u32 },
326 { .off_in = _IN(ndm_state), .off_out = _OUT(ndm_state), .cb = nlf_get_u16 },
327 { .off_in = _IN(ndm_ifindex), .off_out = _OUT(nda_ifp), .cb = nlf_get_ifpz },
331 { .type = NDA_DST, .off = _OUT(nda_dst), .cb = nlattr_get_ip },
332 { .type = NDA_LLADDR, .off = _OUT(nda_lladdr), .cb = nlattr_get_nla },
333 { .type = NDA_IFINDEX, .off = _OUT(nda_ifp), .cb = nlattr_get_ifp },
334 { .type = NDA_FLAGS_EXT, .off = _OUT(ndm_flags), .cb = nlattr_get_uint32 },
[all …]
H A Dnexthop.c704 #define _OUT(_field) offsetof(struct nl_parsed_nhop, _field) macro
706 { .type = NHAF_KNHOPS, .off = _OUT(nhaf_knhops), .cb = nlattr_get_flag },
707 { .type = NHAF_TABLE, .off = _OUT(nhaf_table), .cb = nlattr_get_uint32 },
708 { .type = NHAF_FAMILY, .off = _OUT(nhaf_family), .cb = nlattr_get_uint8 },
709 { .type = NHAF_KID, .off = _OUT(nhaf_kid), .cb = nlattr_get_uint32 },
710 { .type = NHAF_AIF, .off = _OUT(nhaf_aif), .cb = nlattr_get_uint32 },
715 { .off_in = _IN(nh_family), .off_out = _OUT(nh_family), .cb = nlf_get_u8 },
716 { .off_in = _IN(nh_protocol), .off_out = _OUT(nh_protocol), .cb = nlf_get_u8 },
720 { .type = NHA_ID, .off = _OUT(nha_id), .cb = nlattr_get_uint32 },
721 { .type = NHA_GROUP, .off = _OUT(nha_group), .cb = nlattr_get_nhg },
[all …]
/freebsd/lib/libusb/
H A Dlibusb10_hotplug.c116 #define _OUT(_field) offsetof(struct nlevent, _field) macro
118 { .type = NLSE_ATTR_SYSTEM, .off = _OUT(name), .cb = snl_attr_get_string },
119 { .type = NLSE_ATTR_SUBSYSTEM, .off = _OUT(subsystem), .cb = snl_attr_get_string },
120 { .type = NLSE_ATTR_TYPE, .off = _OUT(type), .cb = snl_attr_get_string },
121 { .type = NLSE_ATTR_DATA, .off = _OUT(data), .cb = snl_attr_get_string },
123 #undef _OUT
/freebsd/usr.sbin/powerd/
H A Dpowerd.c347 #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

12