Lines Matching refs:tb

97 hash_ipmark4_uadt(struct ip_set *set, struct nlattr *tb[],  in hash_ipmark4_uadt()  argument
107 if (tb[IPSET_ATTR_LINENO]) in hash_ipmark4_uadt()
108 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipmark4_uadt()
110 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_ipmark4_uadt()
111 !ip_set_attr_netorder(tb, IPSET_ATTR_MARK))) in hash_ipmark4_uadt()
114 ret = ip_set_get_ipaddr4(tb[IPSET_ATTR_IP], &e.ip); in hash_ipmark4_uadt()
118 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark4_uadt()
122 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark4_uadt()
128 !(tb[IPSET_ATTR_IP_TO] || tb[IPSET_ATTR_CIDR])) { in hash_ipmark4_uadt()
134 if (tb[IPSET_ATTR_IP_TO]) { in hash_ipmark4_uadt()
135 ret = ip_set_get_hostipaddr4(tb[IPSET_ATTR_IP_TO], &ip_to); in hash_ipmark4_uadt()
143 } else if (tb[IPSET_ATTR_CIDR]) { in hash_ipmark4_uadt()
144 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark4_uadt()
232 hash_ipmark6_uadt(struct ip_set *set, struct nlattr *tb[], in hash_ipmark6_uadt() argument
241 if (tb[IPSET_ATTR_LINENO]) in hash_ipmark6_uadt()
242 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]); in hash_ipmark6_uadt()
244 if (unlikely(!tb[IPSET_ATTR_IP] || in hash_ipmark6_uadt()
245 !ip_set_attr_netorder(tb, IPSET_ATTR_MARK))) in hash_ipmark6_uadt()
247 if (unlikely(tb[IPSET_ATTR_IP_TO])) in hash_ipmark6_uadt()
249 if (unlikely(tb[IPSET_ATTR_CIDR])) { in hash_ipmark6_uadt()
250 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark6_uadt()
256 ret = ip_set_get_ipaddr6(tb[IPSET_ATTR_IP], &e.ip); in hash_ipmark6_uadt()
260 ret = ip_set_get_extensions(set, tb, &ext); in hash_ipmark6_uadt()
264 e.mark = ntohl(nla_get_be32(tb[IPSET_ATTR_MARK])); in hash_ipmark6_uadt()