Home
last modified time | relevance | path

Searched refs:tb (Results 1 – 25 of 189) sorted by relevance

12345678

/net/netfilter/
Dnfnetlink_cthelper.c76 struct nlattr *tb[NFCTH_TUPLE_MAX+1]; in nfnl_cthelper_parse_tuple() local
78 err = nla_parse_nested_deprecated(tb, NFCTH_TUPLE_MAX, attr, in nfnl_cthelper_parse_tuple()
83 if (!tb[NFCTH_TUPLE_L3PROTONUM] || !tb[NFCTH_TUPLE_L4PROTONUM]) in nfnl_cthelper_parse_tuple()
89 tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM])); in nfnl_cthelper_parse_tuple()
90 tuple->dst.protonum = nla_get_u8(tb[NFCTH_TUPLE_L4PROTONUM]); in nfnl_cthelper_parse_tuple()
137 struct nlattr *tb[NFCTH_POLICY_MAX+1]; in nfnl_cthelper_expect_policy() local
139 err = nla_parse_nested_deprecated(tb, NFCTH_POLICY_MAX, attr, in nfnl_cthelper_expect_policy()
144 if (!tb[NFCTH_POLICY_NAME] || in nfnl_cthelper_expect_policy()
145 !tb[NFCTH_POLICY_EXPECT_MAX] || in nfnl_cthelper_expect_policy()
146 !tb[NFCTH_POLICY_EXPECT_TIMEOUT]) in nfnl_cthelper_expect_policy()
[all …]
Dnft_tunnel.c74 const struct nlattr * const tb[]) in nft_tunnel_get_init() argument
79 if (!tb[NFTA_TUNNEL_KEY] || in nft_tunnel_get_init()
80 !tb[NFTA_TUNNEL_DREG]) in nft_tunnel_get_init()
83 priv->key = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY])); in nft_tunnel_get_init()
95 if (tb[NFTA_TUNNEL_MODE]) { in nft_tunnel_get_init()
96 priv->mode = ntohl(nla_get_be32(tb[NFTA_TUNNEL_MODE])); in nft_tunnel_get_init()
103 return nft_parse_register_store(ctx, tb[NFTA_TUNNEL_DREG], &priv->dreg, in nft_tunnel_get_init()
165 struct nlattr *tb[NFTA_TUNNEL_KEY_IP_MAX + 1]; in nft_tunnel_obj_ip_init() local
168 err = nla_parse_nested_deprecated(tb, NFTA_TUNNEL_KEY_IP_MAX, attr, in nft_tunnel_obj_ip_init()
173 if (!tb[NFTA_TUNNEL_KEY_IP_DST]) in nft_tunnel_obj_ip_init()
[all …]
Dnft_hash.c71 const struct nlattr * const tb[]) in nft_jhash_init() argument
77 if (!tb[NFTA_HASH_SREG] || in nft_jhash_init()
78 !tb[NFTA_HASH_DREG] || in nft_jhash_init()
79 !tb[NFTA_HASH_LEN] || in nft_jhash_init()
80 !tb[NFTA_HASH_MODULUS]) in nft_jhash_init()
83 if (tb[NFTA_HASH_OFFSET]) in nft_jhash_init()
84 priv->offset = ntohl(nla_get_be32(tb[NFTA_HASH_OFFSET])); in nft_jhash_init()
86 err = nft_parse_u32_check(tb[NFTA_HASH_LEN], U8_MAX, &len); in nft_jhash_init()
94 err = nft_parse_register_load(tb[NFTA_HASH_SREG], &priv->sreg, len); in nft_jhash_init()
98 priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULUS])); in nft_jhash_init()
[all …]
Dnft_exthdr.c318 const struct nlattr * const tb[]) in nft_exthdr_init() argument
324 if (!tb[NFTA_EXTHDR_DREG] || in nft_exthdr_init()
325 !tb[NFTA_EXTHDR_TYPE] || in nft_exthdr_init()
326 !tb[NFTA_EXTHDR_OFFSET] || in nft_exthdr_init()
327 !tb[NFTA_EXTHDR_LEN]) in nft_exthdr_init()
330 err = nft_parse_u32_check(tb[NFTA_EXTHDR_OFFSET], U8_MAX, &offset); in nft_exthdr_init()
334 err = nft_parse_u32_check(tb[NFTA_EXTHDR_LEN], U8_MAX, &len); in nft_exthdr_init()
338 if (tb[NFTA_EXTHDR_FLAGS]) { in nft_exthdr_init()
339 err = nft_parse_u32_check(tb[NFTA_EXTHDR_FLAGS], U8_MAX, &flags); in nft_exthdr_init()
347 if (tb[NFTA_EXTHDR_OP]) { in nft_exthdr_init()
[all …]
Dnft_ct.c387 const struct nlattr * const tb[]) in nft_ct_get_init() argument
393 priv->key = ntohl(nla_get_be32(tb[NFTA_CT_KEY])); in nft_ct_get_init()
397 if (tb[NFTA_CT_DIRECTION] != NULL) in nft_ct_get_init()
410 if (tb[NFTA_CT_DIRECTION] != NULL) in nft_ct_get_init()
416 if (tb[NFTA_CT_DIRECTION] != NULL) in nft_ct_get_init()
422 if (tb[NFTA_CT_DIRECTION] != NULL) in nft_ct_get_init()
436 if (tb[NFTA_CT_DIRECTION] == NULL) in nft_ct_get_init()
455 if (tb[NFTA_CT_DIRECTION] == NULL) in nft_ct_get_init()
462 if (tb[NFTA_CT_DIRECTION] == NULL) in nft_ct_get_init()
469 if (tb[NFTA_CT_DIRECTION] == NULL) in nft_ct_get_init()
[all …]
Dnft_limit.c55 const struct nlattr * const tb[], bool pkts) in nft_limit_init() argument
59 if (tb[NFTA_LIMIT_RATE] == NULL || in nft_limit_init()
60 tb[NFTA_LIMIT_UNIT] == NULL) in nft_limit_init()
63 limit->rate = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_RATE])); in nft_limit_init()
64 unit = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_UNIT])); in nft_limit_init()
69 if (tb[NFTA_LIMIT_BURST]) in nft_limit_init()
70 limit->burst = ntohl(nla_get_be32(tb[NFTA_LIMIT_BURST])); in nft_limit_init()
92 if (tb[NFTA_LIMIT_FLAGS]) { in nft_limit_init()
93 u32 flags = ntohl(nla_get_be32(tb[NFTA_LIMIT_FLAGS])); in nft_limit_init()
149 const struct nlattr * const tb[]) in nft_limit_pkts_init() argument
[all …]
/net/netfilter/ipset/
Dip_set_hash_ipportnet.c159 hash_ipportnet4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipportnet4_uadt() argument
172 if (tb[IPSET_ATTR_LINENO]) in hash_ipportnet4_uadt()
173 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipportnet4_uadt()
175 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] || in hash_ipportnet4_uadt()
176 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || in hash_ipportnet4_uadt()
177 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO) || in hash_ipportnet4_uadt()
178 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) in hash_ipportnet4_uadt()
181 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_ipportnet4_uadt()
185 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportnet4_uadt()
189 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2], &ip2_from); in hash_ipportnet4_uadt()
[all …]
Dip_set_hash_ipportip.c107 hash_ipportip4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipportip4_uadt() argument
118 if (tb[IPSET_ATTR_LINENO]) in hash_ipportip4_uadt()
119 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipportip4_uadt()
121 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] || in hash_ipportip4_uadt()
122 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || in hash_ipportip4_uadt()
123 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO))) in hash_ipportip4_uadt()
126 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipportip4_uadt()
130 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipportip4_uadt()
134 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP2], &e.ip2); in hash_ipportip4_uadt()
138 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip4_uadt()
[all …]
Dip_set_hash_ipport.c104 hash_ipport4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipport4_uadt() argument
115 if (tb[IPSET_ATTR_LINENO]) in hash_ipport4_uadt()
116 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipport4_uadt()
118 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_ipport4_uadt()
119 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || in hash_ipport4_uadt()
120 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO))) in hash_ipport4_uadt()
123 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipport4_uadt()
127 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipport4_uadt()
131 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport4_uadt()
133 if (tb[IPSET_ATTR_PROTO]) { in hash_ipport4_uadt()
[all …]
Dip_set_hash_netportnet.c177 hash_netportnet4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netportnet4_uadt() argument
189 if (tb[IPSET_ATTR_LINENO]) in hash_netportnet4_uadt()
190 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_netportnet4_uadt()
193 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] || in hash_netportnet4_uadt()
194 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || in hash_netportnet4_uadt()
195 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO) || in hash_netportnet4_uadt()
196 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) in hash_netportnet4_uadt()
199 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netportnet4_uadt()
203 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2], &ip2_from); in hash_netportnet4_uadt()
207 ret = ip_set_get_extensions(set, tb, &ext); in hash_netportnet4_uadt()
[all …]
Dip_set_hash_ipmac.c110 hash_ipmac4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipmac4_uadt() argument
118 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_ipmac4_uadt()
119 !tb[IPSET_ATTR_ETHER] || in hash_ipmac4_uadt()
120 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN || in hash_ipmac4_uadt()
121 !ip_set_optattr_netorder(tb, IPSET_ATTR_TIMEOUT) || in hash_ipmac4_uadt()
122 !ip_set_optattr_netorder(tb, IPSET_ATTR_PACKETS) || in hash_ipmac4_uadt()
123 !ip_set_optattr_netorder(tb, IPSET_ATTR_BYTES) || in hash_ipmac4_uadt()
124 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBMARK) || in hash_ipmac4_uadt()
125 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBPRIO) || in hash_ipmac4_uadt()
126 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBQUEUE))) in hash_ipmac4_uadt()
[all …]
Dip_set_hash_netport.c153 hash_netport4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netport4_uadt() argument
165 if (tb[IPSET_ATTR_LINENO]) in hash_netport4_uadt()
166 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_netport4_uadt()
168 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_netport4_uadt()
169 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT) || in hash_netport4_uadt()
170 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO) || in hash_netport4_uadt()
171 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) in hash_netport4_uadt()
174 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netport4_uadt()
178 ret = ip_set_get_extensions(set, tb, &ext); in hash_netport4_uadt()
182 if (tb[IPSET_ATTR_CIDR]) { in hash_netport4_uadt()
[all …]
Dip_set_hash_netnet.c162 hash_netnet4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netnet4_uadt() argument
173 if (tb[IPSET_ATTR_LINENO]) in hash_netnet4_uadt()
174 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_netnet4_uadt()
177 if (unlikely(!tb[IPSET_ATTR_IP] || !tb[IPSET_ATTR_IP2] || in hash_netnet4_uadt()
178 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) in hash_netnet4_uadt()
181 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netnet4_uadt()
185 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP2], &ip2_from); in hash_netnet4_uadt()
189 ret = ip_set_get_extensions(set, tb, &ext); in hash_netnet4_uadt()
193 if (tb[IPSET_ATTR_CIDR]) { in hash_netnet4_uadt()
194 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netnet4_uadt()
[all …]
Dip_set_hash_ipmark.c96 hash_ipmark4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipmark4_uadt() argument
106 if (tb[IPSET_ATTR_LINENO]) in hash_ipmark4_uadt()
107 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipmark4_uadt()
109 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_ipmark4_uadt()
110 !ip_set_attr_netorder(tb, IPSET_ATTR_MARK))) in hash_ipmark4_uadt()
113 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipmark4_uadt()
117 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt()
121 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt()
125 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR])) { in hash_ipmark4_uadt()
131 if (tb[IPSET_ATTR_IP_TO]) { in hash_ipmark4_uadt()
[all …]
Dip_set_hash_net.c135 hash_net4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_net4_uadt() argument
145 if (tb[IPSET_ATTR_LINENO]) in hash_net4_uadt()
146 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_net4_uadt()
148 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_net4_uadt()
149 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) in hash_net4_uadt()
152 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_net4_uadt()
156 ret = ip_set_get_extensions(set, tb, &ext); in hash_net4_uadt()
160 if (tb[IPSET_ATTR_CIDR]) { in hash_net4_uadt()
161 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_net4_uadt()
166 if (tb[IPSET_ATTR_CADT_FLAGS]) { in hash_net4_uadt()
[all …]
Dip_set_hash_netiface.c192 hash_netiface4_uadt(struct ip_set *set, struct nlattr *tb[], in hash_netiface4_uadt() argument
202 if (tb[IPSET_ATTR_LINENO]) in hash_netiface4_uadt()
203 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_netiface4_uadt()
205 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_netiface4_uadt()
206 !tb[IPSET_ATTR_IFACE] || in hash_netiface4_uadt()
207 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS))) in hash_netiface4_uadt()
210 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in hash_netiface4_uadt()
214 ret = ip_set_get_extensions(set, tb, &ext); in hash_netiface4_uadt()
218 if (tb[IPSET_ATTR_CIDR]) { in hash_netiface4_uadt()
219 e.cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netiface4_uadt()
[all …]
Dip_set_bitmap_ip.c130 bitmap_ip_uadt(struct ip_set *set, struct nlattr *tb[], in bitmap_ip_uadt() argument
140 if (tb[IPSET_ATTR_LINENO]) in bitmap_ip_uadt()
141 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in bitmap_ip_uadt()
143 if (unlikely(!tb[IPSET_ATTR_IP])) in bitmap_ip_uadt()
146 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP], &ip); in bitmap_ip_uadt()
150 ret = ip_set_get_extensions(set, tb, &ext); in bitmap_ip_uadt()
162 if (tb[IPSET_ATTR_IP_TO]) { in bitmap_ip_uadt()
163 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in bitmap_ip_uadt()
171 } else if (tb[IPSET_ATTR_CIDR]) { in bitmap_ip_uadt()
172 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_uadt()
[all …]
/net/core/
Drtnetlink.c1892 bool strict_check, struct nlattr **tb, in rtnl_valid_dump_ifinfo_req() argument
1916 return nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, in rtnl_valid_dump_ifinfo_req()
1931 return nlmsg_parse_deprecated(nlh, hdrlen, tb, IFLA_MAX, ifla_policy, in rtnl_valid_dump_ifinfo_req()
1945 struct nlattr *tb[IFLA_MAX+1]; in rtnl_dump_ifinfo() local
1956 err = rtnl_valid_dump_ifinfo_req(nlh, cb->strict_check, tb, extack); in rtnl_dump_ifinfo()
1965 if (!tb[i]) in rtnl_dump_ifinfo()
1971 netnsid = nla_get_s32(tb[i]); in rtnl_dump_ifinfo()
1979 ext_filter_mask = nla_get_u32(tb[i]); in rtnl_dump_ifinfo()
1982 master_idx = nla_get_u32(tb[i]); in rtnl_dump_ifinfo()
1985 kind_ops = linkinfo_to_kind_ops(tb[i]); in rtnl_dump_ifinfo()
[all …]
/net/sched/
Dact_mpls.c149 struct nlattr *tb[TCA_MPLS_MAX + 1]; in tcf_mpls_init() local
164 err = nla_parse_nested(tb, TCA_MPLS_MAX, nla, mpls_policy, extack); in tcf_mpls_init()
168 if (!tb[TCA_MPLS_PARMS]) { in tcf_mpls_init()
172 parm = nla_data(tb[TCA_MPLS_PARMS]); in tcf_mpls_init()
178 if (!tb[TCA_MPLS_PROTO]) { in tcf_mpls_init()
182 if (!eth_proto_is_802_3(nla_get_be16(tb[TCA_MPLS_PROTO]))) { in tcf_mpls_init()
186 if (tb[TCA_MPLS_LABEL] || tb[TCA_MPLS_TTL] || tb[TCA_MPLS_TC] || in tcf_mpls_init()
187 tb[TCA_MPLS_BOS]) { in tcf_mpls_init()
193 if (tb[TCA_MPLS_PROTO] || tb[TCA_MPLS_LABEL] || in tcf_mpls_init()
194 tb[TCA_MPLS_TTL] || tb[TCA_MPLS_TC] || tb[TCA_MPLS_BOS]) { in tcf_mpls_init()
[all …]
Dem_ipt.c30 int (*validate_match_data)(struct nlattr **tb, u8 mrev);
60 static int policy_validate_match_data(struct nlattr **tb, u8 mrev) in policy_validate_match_data() argument
67 if (nla_get_u32(tb[TCA_EM_IPT_HOOK]) != NF_INET_PRE_ROUTING) { in policy_validate_match_data()
75 static int addrtype_validate_match_data(struct nlattr **tb, u8 mrev) in addrtype_validate_match_data() argument
97 static struct xt_match *get_xt_match(struct nlattr **tb) in get_xt_match() argument
104 mname_attr = tb[TCA_EM_IPT_MATCH_NAME]; in get_xt_match()
115 if (tb[TCA_EM_IPT_MATCH_REVISION]) in get_xt_match()
116 mrev = nla_get_u8(tb[TCA_EM_IPT_MATCH_REVISION]); in get_xt_match()
118 ret = m->validate_match_data(tb, mrev); in get_xt_match()
122 nfproto = nla_get_u8(tb[TCA_EM_IPT_NFPROTO]); in get_xt_match()
[all …]
Dcls_flower.c708 static void fl_set_key_val(struct nlattr **tb, in fl_set_key_val() argument
712 if (!tb[val_type]) in fl_set_key_val()
714 nla_memcpy(val, tb[val_type], len); in fl_set_key_val()
715 if (mask_type == TCA_FLOWER_UNSPEC || !tb[mask_type]) in fl_set_key_val()
718 nla_memcpy(mask, tb[mask_type], len); in fl_set_key_val()
721 static int fl_set_key_port_range(struct nlattr **tb, struct fl_flow_key *key, in fl_set_key_port_range() argument
725 fl_set_key_val(tb, &key->tp_range.tp_min.dst, in fl_set_key_port_range()
728 fl_set_key_val(tb, &key->tp_range.tp_max.dst, in fl_set_key_port_range()
731 fl_set_key_val(tb, &key->tp_range.tp_min.src, in fl_set_key_port_range()
734 fl_set_key_val(tb, &key->tp_range.tp_max.src, in fl_set_key_port_range()
[all …]
Dact_tunnel_key.c71 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX + 1]; in tunnel_key_copy_geneve_opt() local
75 err = nla_parse_nested_deprecated(tb, in tunnel_key_copy_geneve_opt()
81 if (!tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS] || in tunnel_key_copy_geneve_opt()
82 !tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE] || in tunnel_key_copy_geneve_opt()
83 !tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA]) { in tunnel_key_copy_geneve_opt()
88 data = nla_data(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA]); in tunnel_key_copy_geneve_opt()
89 data_len = nla_len(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_DATA]); in tunnel_key_copy_geneve_opt()
106 nla_get_be16(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS]); in tunnel_key_copy_geneve_opt()
107 opt->type = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE]); in tunnel_key_copy_geneve_opt()
219 struct nlattr *tb[TCA_TUNNEL_KEY_MAX + 1]; in tunnel_key_init() local
[all …]
/net/ipv4/
Dinet_hashtables.c70 struct inet_bind_bucket *tb = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind_bucket_create() local
72 if (tb) { in inet_bind_bucket_create()
73 write_pnet(&tb->ib_net, net); in inet_bind_bucket_create()
74 tb->l3mdev = l3mdev; in inet_bind_bucket_create()
75 tb->port = snum; in inet_bind_bucket_create()
76 tb->fastreuse = 0; in inet_bind_bucket_create()
77 tb->fastreuseport = 0; in inet_bind_bucket_create()
78 INIT_HLIST_HEAD(&tb->owners); in inet_bind_bucket_create()
79 hlist_add_head(&tb->node, &head->chain); in inet_bind_bucket_create()
81 return tb; in inet_bind_bucket_create()
[all …]
Dip_tunnel_core.c229 struct nlattr *tb[LWTUNNEL_IP_MAX + 1]; in ip_tun_build_state() local
232 err = nla_parse_nested_deprecated(tb, LWTUNNEL_IP_MAX, attr, in ip_tun_build_state()
253 if (tb[LWTUNNEL_IP_ID]) in ip_tun_build_state()
254 tun_info->key.tun_id = nla_get_be64(tb[LWTUNNEL_IP_ID]); in ip_tun_build_state()
256 if (tb[LWTUNNEL_IP_DST]) in ip_tun_build_state()
257 tun_info->key.u.ipv4.dst = nla_get_in_addr(tb[LWTUNNEL_IP_DST]); in ip_tun_build_state()
259 if (tb[LWTUNNEL_IP_SRC]) in ip_tun_build_state()
260 tun_info->key.u.ipv4.src = nla_get_in_addr(tb[LWTUNNEL_IP_SRC]); in ip_tun_build_state()
262 if (tb[LWTUNNEL_IP_TTL]) in ip_tun_build_state()
263 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state()
[all …]
/net/wireless/
Dpmsr.c18 struct nlattr *tb[NL80211_PMSR_FTM_REQ_ATTR_MAX + 1]; in pmsr_parse_ftm() local
28 nla_parse_nested_deprecated(tb, NL80211_PMSR_FTM_REQ_ATTR_MAX, ftmreq, in pmsr_parse_ftm()
31 if (tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE]) in pmsr_parse_ftm()
32 preamble = nla_get_u32(tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE]); in pmsr_parse_ftm()
42 if (!tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE]) { in pmsr_parse_ftm()
51 tb[NL80211_PMSR_FTM_REQ_ATTR_PREAMBLE], in pmsr_parse_ftm()
59 if (tb[NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD]) in pmsr_parse_ftm()
61 nla_get_u32(tb[NL80211_PMSR_FTM_REQ_ATTR_BURST_PERIOD]); in pmsr_parse_ftm()
63 out->ftm.asap = !!tb[NL80211_PMSR_FTM_REQ_ATTR_ASAP]; in pmsr_parse_ftm()
66 tb[NL80211_PMSR_FTM_REQ_ATTR_ASAP], in pmsr_parse_ftm()
[all …]

12345678