/external/libnetfilter_conntrack/src/conntrack/ |
D | parse_mnl.c | 20 const struct nlattr **tb = data; in nfct_parse_ip_attr_cb() local 41 tb[type] = attr; in nfct_parse_ip_attr_cb() 49 struct nlattr *tb[CTA_IP_MAX+1] = {}; in nfct_parse_ip() local 51 if (mnl_attr_parse_nested(attr, nfct_parse_ip_attr_cb, tb) < 0) in nfct_parse_ip() 54 if (tb[CTA_IP_V4_SRC]) { in nfct_parse_ip() 55 tuple->src.v4 = mnl_attr_get_u32(tb[CTA_IP_V4_SRC]); in nfct_parse_ip() 69 if (tb[CTA_IP_V4_DST]) { in nfct_parse_ip() 70 tuple->dst.v4 = mnl_attr_get_u32(tb[CTA_IP_V4_DST]); in nfct_parse_ip() 84 if (tb[CTA_IP_V6_SRC]) { in nfct_parse_ip() 85 memcpy(&tuple->src.v6, mnl_attr_get_payload(tb[CTA_IP_V6_SRC]), in nfct_parse_ip() [all …]
|
D | parse.c | 19 struct nfattr *tb[CTA_IP_MAX]; in __parse_ip() local 21 nfnl_parse_nested(tb, CTA_IP_MAX, attr); in __parse_ip() 23 if (tb[CTA_IP_V4_SRC-1]) { in __parse_ip() 24 tuple->src.v4 = *(uint32_t *)NFA_DATA(tb[CTA_IP_V4_SRC-1]); in __parse_ip() 38 if (tb[CTA_IP_V4_DST-1]) { in __parse_ip() 39 tuple->dst.v4 = *(uint32_t *)NFA_DATA(tb[CTA_IP_V4_DST-1]); in __parse_ip() 53 if (tb[CTA_IP_V6_SRC-1]) { in __parse_ip() 54 memcpy(&tuple->src.v6, NFA_DATA(tb[CTA_IP_V6_SRC-1]), in __parse_ip() 69 if (tb[CTA_IP_V6_DST-1]) { in __parse_ip() 70 memcpy(&tuple->dst.v6, NFA_DATA(tb[CTA_IP_V6_DST-1]), in __parse_ip() [all …]
|
/external/iw/ |
D | event.c | 18 static int parse_beacon_hint_chan(struct nlattr *tb, in parse_beacon_hint_chan() argument 30 tb, in parse_beacon_hint_chan() 209 struct nlattr *tb[NUM_NL80211_WOWLAN_TRIG], in parse_wowlan_wake_event() local 218 nla_parse(tb, MAX_NL80211_WOWLAN_TRIG, in parse_wowlan_wake_event() 222 if (tb[NL80211_WOWLAN_TRIG_DISCONNECT]) in parse_wowlan_wake_event() 224 if (tb[NL80211_WOWLAN_TRIG_MAGIC_PKT]) in parse_wowlan_wake_event() 226 if (tb[NL80211_WOWLAN_TRIG_PKT_PATTERN]) in parse_wowlan_wake_event() 228 nla_get_u32(tb[NL80211_WOWLAN_TRIG_PKT_PATTERN])); in parse_wowlan_wake_event() 229 if (tb[NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE]) in parse_wowlan_wake_event() 231 if (tb[NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST]) in parse_wowlan_wake_event() [all …]
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
D | trace.c | 17 struct trace_buffer *tb; in trace_buffer_allocate() local 19 if (size < sizeof(*tb)) { in trace_buffer_allocate() 24 tb = mmap(NULL, size, PROT_READ | PROT_WRITE, in trace_buffer_allocate() 26 if (tb == MAP_FAILED) { in trace_buffer_allocate() 31 tb->size = size; in trace_buffer_allocate() 32 tb->tail = tb->data; in trace_buffer_allocate() 33 tb->overflow = false; in trace_buffer_allocate() 35 return tb; in trace_buffer_allocate() 38 static bool trace_check_bounds(struct trace_buffer *tb, void *p) in trace_check_bounds() argument 40 return p < ((void *)tb + tb->size); in trace_check_bounds() [all …]
|
/external/libnl/lib/netfilter/ |
D | ct.c | 121 struct nlattr *tb[CTA_IP_MAX+1]; in ct_parse_ip() local 125 err = nla_parse_nested(tb, CTA_IP_MAX, attr, ct_ip_policy); in ct_parse_ip() 129 if (tb[CTA_IP_V4_SRC]) { in ct_parse_ip() 130 addr = nl_addr_alloc_attr(tb[CTA_IP_V4_SRC], AF_INET); in ct_parse_ip() 138 if (tb[CTA_IP_V4_DST]) { in ct_parse_ip() 139 addr = nl_addr_alloc_attr(tb[CTA_IP_V4_DST], AF_INET); in ct_parse_ip() 147 if (tb[CTA_IP_V6_SRC]) { in ct_parse_ip() 148 addr = nl_addr_alloc_attr(tb[CTA_IP_V6_SRC], AF_INET6); in ct_parse_ip() 156 if (tb[CTA_IP_V6_DST]) { in ct_parse_ip() 157 addr = nl_addr_alloc_attr(tb[CTA_IP_V6_DST], AF_INET6); in ct_parse_ip() [all …]
|
D | exp.c | 79 struct nlattr *tb[CTA_IP_MAX+1]; in exp_parse_ip() local 83 err = nla_parse_nested(tb, CTA_IP_MAX, attr, exp_ip_policy); in exp_parse_ip() 87 if (tb[CTA_IP_V4_SRC]) { in exp_parse_ip() 88 addr = nl_addr_alloc_attr(tb[CTA_IP_V4_SRC], AF_INET); in exp_parse_ip() 96 if (tb[CTA_IP_V4_DST]) { in exp_parse_ip() 97 addr = nl_addr_alloc_attr(tb[CTA_IP_V4_DST], AF_INET); in exp_parse_ip() 105 if (tb[CTA_IP_V6_SRC]) { in exp_parse_ip() 106 addr = nl_addr_alloc_attr(tb[CTA_IP_V6_SRC], AF_INET6); in exp_parse_ip() 114 if (tb[CTA_IP_V6_DST]) { in exp_parse_ip() 115 addr = nl_addr_alloc_attr(tb[CTA_IP_V6_DST], AF_INET6); in exp_parse_ip() [all …]
|
/external/javassist/src/main/javassist/bytecode/stackmap/ |
D | Liveness.java | 61 private void computeLiveness1(TypedBlock tb) { in computeLiveness1() argument 62 if (tb.updating) { in computeLiveness1() 64 computeLiveness1u(tb); in computeLiveness1() 68 if (tb.inputs != null) in computeLiveness1() 71 tb.updating = true; in computeLiveness1() 72 byte[] usage = tb.localsUsage; in computeLiveness1() 78 BasicBlock.Catch handlers = tb.toCatch; in computeLiveness1() 89 if (tb.exit != null) { in computeLiveness1() 90 for (int i = 0; i < tb.exit.length; i++) { in computeLiveness1() 91 TypedBlock e = (TypedBlock)tb.exit[i]; in computeLiveness1() [all …]
|
/external/libmojo/third_party/jinja2/ |
D | debug.py | 39 def __init__(self, tb): argument 40 self.tb = tb 50 tb_set_next(self.tb, next and next.tb or None) 60 return '__jinja_template__' in self.tb.tb_frame.f_globals 63 return getattr(self.tb, name) 91 for tb in self.frames: 93 prev_tb.set_next(tb) 94 prev_tb = tb 124 tb = self.frames[0] 127 if type(tb) is not TracebackType: [all …]
|
/external/iproute2/ip/ |
D | iplink_bond_slave.c | 25 static void print_slave_state(FILE *f, struct rtattr *tb) in print_slave_state() argument 27 unsigned int state = rta_getattr_u8(tb); in print_slave_state() 42 static void print_slave_mii_status(FILE *f, struct rtattr *tb) in print_slave_mii_status() argument 44 unsigned int status = rta_getattr_u8(tb); in print_slave_mii_status() 52 static void bond_slave_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in bond_slave_print_opt() argument 55 if (!tb) in bond_slave_print_opt() 58 if (tb[IFLA_BOND_SLAVE_STATE]) in bond_slave_print_opt() 59 print_slave_state(f, tb[IFLA_BOND_SLAVE_STATE]); in bond_slave_print_opt() 61 if (tb[IFLA_BOND_SLAVE_MII_STATUS]) in bond_slave_print_opt() 62 print_slave_mii_status(f, tb[IFLA_BOND_SLAVE_MII_STATUS]); in bond_slave_print_opt() [all …]
|
D | iplink_bond.c | 369 static void bond_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in bond_print_opt() argument 373 if (!tb) in bond_print_opt() 376 if (tb[IFLA_BOND_MODE]) { in bond_print_opt() 378 rta_getattr_u8(tb[IFLA_BOND_MODE])); in bond_print_opt() 382 if (tb[IFLA_BOND_ACTIVE_SLAVE] && in bond_print_opt() 383 (ifindex = rta_getattr_u32(tb[IFLA_BOND_ACTIVE_SLAVE]))) { in bond_print_opt() 393 if (tb[IFLA_BOND_MIIMON]) in bond_print_opt() 394 fprintf(f, "miimon %u ", rta_getattr_u32(tb[IFLA_BOND_MIIMON])); in bond_print_opt() 396 if (tb[IFLA_BOND_UPDELAY]) in bond_print_opt() 397 fprintf(f, "updelay %u ", rta_getattr_u32(tb[IFLA_BOND_UPDELAY])); in bond_print_opt() [all …]
|
D | iplink_vxlan.c | 306 static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in vxlan_print_opt() argument 315 if (!tb) in vxlan_print_opt() 318 if (!tb[IFLA_VXLAN_ID] || in vxlan_print_opt() 319 RTA_PAYLOAD(tb[IFLA_VXLAN_ID]) < sizeof(__u32)) in vxlan_print_opt() 322 vni = rta_getattr_u32(tb[IFLA_VXLAN_ID]); in vxlan_print_opt() 325 if (tb[IFLA_VXLAN_GROUP]) { in vxlan_print_opt() 326 __be32 addr = rta_getattr_u32(tb[IFLA_VXLAN_GROUP]); in vxlan_print_opt() 335 } else if (tb[IFLA_VXLAN_GROUP6]) { in vxlan_print_opt() 337 memcpy(&addr, RTA_DATA(tb[IFLA_VXLAN_GROUP6]), sizeof(struct in6_addr)); in vxlan_print_opt() 348 if (tb[IFLA_VXLAN_LOCAL]) { in vxlan_print_opt() [all …]
|
D | iproute_lwtunnel.c | 60 struct rtattr *tb[MPLS_IPTUNNEL_MAX+1]; in print_encap_mpls() local 63 parse_rtattr_nested(tb, MPLS_IPTUNNEL_MAX, encap); in print_encap_mpls() 65 if (tb[MPLS_IPTUNNEL_DST]) in print_encap_mpls() 67 RTA_PAYLOAD(tb[MPLS_IPTUNNEL_DST]), in print_encap_mpls() 68 RTA_DATA(tb[MPLS_IPTUNNEL_DST]), in print_encap_mpls() 74 struct rtattr *tb[LWTUNNEL_IP_MAX+1]; in print_encap_ip() local 77 parse_rtattr_nested(tb, LWTUNNEL_IP_MAX, encap); in print_encap_ip() 79 if (tb[LWTUNNEL_IP_ID]) in print_encap_ip() 80 fprintf(fp, "id %llu ", ntohll(rta_getattr_u64(tb[LWTUNNEL_IP_ID]))); in print_encap_ip() 82 if (tb[LWTUNNEL_IP_SRC]) in print_encap_ip() [all …]
|
D | iplink_hsr.c | 83 static void hsr_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in hsr_print_opt() argument 87 if (!tb) in hsr_print_opt() 90 if (tb[IFLA_HSR_SLAVE1] && in hsr_print_opt() 91 RTA_PAYLOAD(tb[IFLA_HSR_SLAVE1]) < sizeof(__u32)) in hsr_print_opt() 93 if (tb[IFLA_HSR_SLAVE2] && in hsr_print_opt() 94 RTA_PAYLOAD(tb[IFLA_HSR_SLAVE2]) < sizeof(__u32)) in hsr_print_opt() 96 if (tb[IFLA_HSR_SEQ_NR] && in hsr_print_opt() 97 RTA_PAYLOAD(tb[IFLA_HSR_SEQ_NR]) < sizeof(__u16)) in hsr_print_opt() 99 if (tb[IFLA_HSR_SUPERVISION_ADDR] && in hsr_print_opt() 100 RTA_PAYLOAD(tb[IFLA_HSR_SUPERVISION_ADDR]) < ETH_ALEN) in hsr_print_opt() [all …]
|
D | ipmroute.c | 49 int tb; member 61 struct rtattr * tb[RTA_MAX+1]; in print_mroute() local 86 parse_rtattr(tb, RTA_MAX, RTM_RTA(r), len); in print_mroute() 87 table = rtm_get_table(r, tb); in print_mroute() 89 if (filter.tb > 0 && filter.tb != table) in print_mroute() 92 if (tb[RTA_IIF]) in print_mroute() 93 iif = *(int*)RTA_DATA(tb[RTA_IIF]); in print_mroute() 100 if (tb[RTA_DST] && filter.mdst.bitlen > 0) { in print_mroute() 105 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), RTA_PAYLOAD(tb[RTA_DST])); in print_mroute() 110 if (tb[RTA_SRC] && filter.msrc.bitlen > 0) { in print_mroute() [all …]
|
D | iplink_bridge_slave.c | 62 struct rtattr *tb[]) in bridge_slave_print_opt() argument 64 if (!tb) in bridge_slave_print_opt() 67 if (tb[IFLA_BRPORT_STATE]) in bridge_slave_print_opt() 68 print_portstate(f, rta_getattr_u8(tb[IFLA_BRPORT_STATE])); in bridge_slave_print_opt() 70 if (tb[IFLA_BRPORT_PRIORITY]) in bridge_slave_print_opt() 72 rta_getattr_u16(tb[IFLA_BRPORT_PRIORITY])); in bridge_slave_print_opt() 74 if (tb[IFLA_BRPORT_COST]) in bridge_slave_print_opt() 76 rta_getattr_u32(tb[IFLA_BRPORT_COST])); in bridge_slave_print_opt() 78 if (tb[IFLA_BRPORT_MODE]) in bridge_slave_print_opt() 80 rta_getattr_u8(tb[IFLA_BRPORT_MODE])); in bridge_slave_print_opt() [all …]
|
D | iplink_bridge.c | 118 static void bridge_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in bridge_print_opt() argument 120 if (!tb) in bridge_print_opt() 123 if (tb[IFLA_BR_FORWARD_DELAY]) in bridge_print_opt() 125 rta_getattr_u32(tb[IFLA_BR_FORWARD_DELAY])); in bridge_print_opt() 127 if (tb[IFLA_BR_HELLO_TIME]) in bridge_print_opt() 129 rta_getattr_u32(tb[IFLA_BR_HELLO_TIME])); in bridge_print_opt() 131 if (tb[IFLA_BR_MAX_AGE]) in bridge_print_opt() 133 rta_getattr_u32(tb[IFLA_BR_MAX_AGE])); in bridge_print_opt() 135 if (tb[IFLA_BR_AGEING_TIME]) in bridge_print_opt() 137 rta_getattr_u32(tb[IFLA_BR_AGEING_TIME])); in bridge_print_opt() [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_event.c | 930 struct nlattr *tb[]) in mlme_event_michael_mic_failure() argument 936 if (tb[NL80211_ATTR_MAC]) { in mlme_event_michael_mic_failure() 938 nla_data(tb[NL80211_ATTR_MAC]), in mlme_event_michael_mic_failure() 939 nla_len(tb[NL80211_ATTR_MAC])); in mlme_event_michael_mic_failure() 940 data.michael_mic_failure.src = nla_data(tb[NL80211_ATTR_MAC]); in mlme_event_michael_mic_failure() 942 if (tb[NL80211_ATTR_KEY_SEQ]) { in mlme_event_michael_mic_failure() 944 nla_data(tb[NL80211_ATTR_KEY_SEQ]), in mlme_event_michael_mic_failure() 945 nla_len(tb[NL80211_ATTR_KEY_SEQ])); in mlme_event_michael_mic_failure() 947 if (tb[NL80211_ATTR_KEY_TYPE]) { in mlme_event_michael_mic_failure() 949 nla_get_u32(tb[NL80211_ATTR_KEY_TYPE]); in mlme_event_michael_mic_failure() [all …]
|
/external/iproute2/tc/ |
D | q_fq.c | 214 struct rtattr *tb[TCA_FQ_MAX + 1]; in fq_print_opt() local 226 parse_rtattr_nested(tb, TCA_FQ_MAX, opt); in fq_print_opt() 228 if (tb[TCA_FQ_PLIMIT] && in fq_print_opt() 229 RTA_PAYLOAD(tb[TCA_FQ_PLIMIT]) >= sizeof(__u32)) { in fq_print_opt() 230 plimit = rta_getattr_u32(tb[TCA_FQ_PLIMIT]); in fq_print_opt() 233 if (tb[TCA_FQ_FLOW_PLIMIT] && in fq_print_opt() 234 RTA_PAYLOAD(tb[TCA_FQ_FLOW_PLIMIT]) >= sizeof(__u32)) { in fq_print_opt() 235 flow_plimit = rta_getattr_u32(tb[TCA_FQ_FLOW_PLIMIT]); in fq_print_opt() 238 if (tb[TCA_FQ_BUCKETS_LOG] && in fq_print_opt() 239 RTA_PAYLOAD(tb[TCA_FQ_BUCKETS_LOG]) >= sizeof(__u32)) { in fq_print_opt() [all …]
|
D | q_hhf.c | 122 struct rtattr *tb[TCA_HHF_MAX + 1]; in hhf_print_opt() local 135 parse_rtattr_nested(tb, TCA_HHF_MAX, opt); in hhf_print_opt() 137 if (tb[TCA_HHF_BACKLOG_LIMIT] && in hhf_print_opt() 138 RTA_PAYLOAD(tb[TCA_HHF_BACKLOG_LIMIT]) >= sizeof(__u32)) { in hhf_print_opt() 139 limit = rta_getattr_u32(tb[TCA_HHF_BACKLOG_LIMIT]); in hhf_print_opt() 142 if (tb[TCA_HHF_QUANTUM] && in hhf_print_opt() 143 RTA_PAYLOAD(tb[TCA_HHF_QUANTUM]) >= sizeof(__u32)) { in hhf_print_opt() 144 quantum = rta_getattr_u32(tb[TCA_HHF_QUANTUM]); in hhf_print_opt() 147 if (tb[TCA_HHF_HH_FLOWS_LIMIT] && in hhf_print_opt() 148 RTA_PAYLOAD(tb[TCA_HHF_HH_FLOWS_LIMIT]) >= sizeof(__u32)) { in hhf_print_opt() [all …]
|
D | q_pie.c | 133 struct rtattr *tb[TCA_PIE_MAX + 1]; in pie_print_opt() local 146 parse_rtattr_nested(tb, TCA_PIE_MAX, opt); in pie_print_opt() 148 if (tb[TCA_PIE_LIMIT] && in pie_print_opt() 149 RTA_PAYLOAD(tb[TCA_PIE_LIMIT]) >= sizeof(__u32)) { in pie_print_opt() 150 limit = rta_getattr_u32(tb[TCA_PIE_LIMIT]); in pie_print_opt() 153 if (tb[TCA_PIE_TARGET] && in pie_print_opt() 154 RTA_PAYLOAD(tb[TCA_PIE_TARGET]) >= sizeof(__u32)) { in pie_print_opt() 155 target = rta_getattr_u32(tb[TCA_PIE_TARGET]); in pie_print_opt() 158 if (tb[TCA_PIE_TUPDATE] && in pie_print_opt() 159 RTA_PAYLOAD(tb[TCA_PIE_TUPDATE]) >= sizeof(__u32)) { in pie_print_opt() [all …]
|
D | f_tcindex.c | 132 struct rtattr *tb[TCA_TCINDEX_MAX+1]; in tcindex_print_opt() local 137 parse_rtattr_nested(tb, TCA_TCINDEX_MAX, opt); in tcindex_print_opt() 140 if (tb[TCA_TCINDEX_HASH]) { in tcindex_print_opt() 143 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash)) in tcindex_print_opt() 145 hash = rta_getattr_u16(tb[TCA_TCINDEX_HASH]); in tcindex_print_opt() 148 if (tb[TCA_TCINDEX_MASK]) { in tcindex_print_opt() 151 if (RTA_PAYLOAD(tb[TCA_TCINDEX_MASK]) < sizeof(mask)) in tcindex_print_opt() 153 mask = rta_getattr_u16(tb[TCA_TCINDEX_MASK]); in tcindex_print_opt() 156 if (tb[TCA_TCINDEX_SHIFT]) { in tcindex_print_opt() 159 if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT]) < sizeof(shift)) in tcindex_print_opt() [all …]
|
/external/libnetfilter_conntrack/src/expect/ |
D | parse_mnl.c | 17 const struct nlattr **tb = data; in nlmsg_parse_expection_attr_cb() local 46 tb[type] = attr; in nlmsg_parse_expection_attr_cb() 52 struct nlattr *tb[CTA_EXPECT_MAX+1] = {}; in nfexp_nlmsg_parse() local 56 nlmsg_parse_expection_attr_cb, tb); in nfexp_nlmsg_parse() 58 if (tb[CTA_EXPECT_MASTER]) { in nfexp_nlmsg_parse() 62 nfct_parse_tuple(tb[CTA_EXPECT_MASTER], &exp->master.orig, in nfexp_nlmsg_parse() 66 if (tb[CTA_EXPECT_TUPLE]) { in nfexp_nlmsg_parse() 70 nfct_parse_tuple(tb[CTA_EXPECT_TUPLE], &exp->expected.orig, in nfexp_nlmsg_parse() 74 if (tb[CTA_EXPECT_MASK]) { in nfexp_nlmsg_parse() 78 nfct_parse_tuple(tb[CTA_EXPECT_MASK], &exp->mask.orig, in nfexp_nlmsg_parse() [all …]
|
/external/syslinux/com32/lua/src/ |
D | lstring.c | 66 stringtable *tb = &G(L)->strt; in luaS_resize() local 69 if (newsize > tb->size) { in luaS_resize() 70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize() 74 for (i=0; i<tb->size; i++) { in luaS_resize() 75 GCObject *p = tb->hash[i]; in luaS_resize() 76 tb->hash[i] = NULL; in luaS_resize() 80 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize() 81 tb->hash[h] = p; in luaS_resize() 86 if (newsize < tb->size) { in luaS_resize() [all …]
|
/external/skia/third_party/lua/src/ |
D | lstring.c | 66 stringtable *tb = &G(L)->strt; in luaS_resize() local 69 if (newsize > tb->size) { in luaS_resize() 70 luaM_reallocvector(L, tb->hash, tb->size, newsize, GCObject *); in luaS_resize() 71 for (i = tb->size; i < newsize; i++) tb->hash[i] = NULL; in luaS_resize() 74 for (i=0; i<tb->size; i++) { in luaS_resize() 75 GCObject *p = tb->hash[i]; in luaS_resize() 76 tb->hash[i] = NULL; in luaS_resize() 80 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize() 81 tb->hash[h] = p; in luaS_resize() 86 if (newsize < tb->size) { in luaS_resize() [all …]
|
/external/iproute2/genl/ |
D | ctrl.c | 76 struct rtattr *tb[CTRL_ATTR_MAX + 1]; in genl_ctrl_resolve_family() local 100 parse_rtattr(tb, CTRL_ATTR_MAX, attrs, len); in genl_ctrl_resolve_family() 102 if (tb[CTRL_ATTR_FAMILY_ID] == NULL) { in genl_ctrl_resolve_family() 107 ret = rta_getattr_u16(tb[CTRL_ATTR_FAMILY_ID]); in genl_ctrl_resolve_family() 138 struct rtattr *tb[CTRL_ATTR_OP_MAX + 1]; in print_ctrl_cmds() local 143 parse_rtattr_nested(tb, CTRL_ATTR_OP_MAX, arg); in print_ctrl_cmds() 144 if (tb[CTRL_ATTR_OP_ID]) { in print_ctrl_cmds() 145 __u32 *id = RTA_DATA(tb[CTRL_ATTR_OP_ID]); in print_ctrl_cmds() 149 if (tb[CTRL_ATTR_OP_FLAGS] && ctrl_ver >= 0x2) { in print_ctrl_cmds() 150 __u32 *fl = RTA_DATA(tb[CTRL_ATTR_OP_FLAGS]); in print_ctrl_cmds() [all …]
|