Lines Matching refs:tb

110 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()
129 if (tb[IPSET_ATTR_LINENO]) in hash_ipmac4_uadt()
130 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipmac4_uadt()
132 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip) || in hash_ipmac4_uadt()
133 ip_set_get_extensions(set, tb, &ext); in hash_ipmac4_uadt()
136 memcpy(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN); in hash_ipmac4_uadt()
226 hash_ipmac6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipmac6_uadt() argument
237 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_ipmac6_uadt()
238 !tb[IPSET_ATTR_ETHER] || in hash_ipmac6_uadt()
239 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN || in hash_ipmac6_uadt()
240 !ip_set_optattr_netorder(tb, IPSET_ATTR_TIMEOUT) || in hash_ipmac6_uadt()
241 !ip_set_optattr_netorder(tb, IPSET_ATTR_PACKETS) || in hash_ipmac6_uadt()
242 !ip_set_optattr_netorder(tb, IPSET_ATTR_BYTES) || in hash_ipmac6_uadt()
243 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBMARK) || in hash_ipmac6_uadt()
244 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBPRIO) || in hash_ipmac6_uadt()
245 !ip_set_optattr_netorder(tb, IPSET_ATTR_SKBQUEUE))) in hash_ipmac6_uadt()
248 if (tb[IPSET_ATTR_LINENO]) in hash_ipmac6_uadt()
249 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipmac6_uadt()
251 ret = ip_set_get_ipaddr6(tb[IPSET_ATTR_IP], &e.ip) || in hash_ipmac6_uadt()
252 ip_set_get_extensions(set, tb, &ext); in hash_ipmac6_uadt()
256 memcpy(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN); in hash_ipmac6_uadt()