Lines Matching refs:tb
153 bitmap_port_uadt(struct ip_set *set, struct nlattr *tb[],
164 if (tb[IPSET_ATTR_LINENO])
165 *lineno = nla_get_u32(tb[IPSET_ATTR_LINENO]);
167 if (unlikely(!ip_set_attr_netorder(tb, IPSET_ATTR_PORT) ||
168 !ip_set_optattr_netorder(tb, IPSET_ATTR_PORT_TO)))
171 port = ip_set_get_h16(tb[IPSET_ATTR_PORT]);
174 ret = ip_set_get_extensions(set, tb, &ext);
183 if (tb[IPSET_ATTR_PORT_TO]) {
184 port_to = ip_set_get_h16(tb[IPSET_ATTR_PORT_TO]);
249 bitmap_port_create(struct net *net, struct ip_set *set, struct nlattr *tb[],
256 if (unlikely(!ip_set_attr_netorder(tb, IPSET_ATTR_PORT) ||
257 !ip_set_attr_netorder(tb, IPSET_ATTR_PORT_TO) ||
258 !ip_set_optattr_netorder(tb, IPSET_ATTR_TIMEOUT) ||
259 !ip_set_optattr_netorder(tb, IPSET_ATTR_CADT_FLAGS)))
262 first_port = ip_set_get_h16(tb[IPSET_ATTR_PORT]);
263 last_port = ip_set_get_h16(tb[IPSET_ATTR_PORT_TO]);
268 set->dsize = ip_set_elem_len(set, tb, 0, 0);
280 if (tb[IPSET_ATTR_TIMEOUT]) {
281 set->timeout = ip_set_timeout_uget(tb[IPSET_ATTR_TIMEOUT]);