Lines Matching defs:comment
337 * The kadt functions don't use the comment extensions in any way.
340 ip_set_init_comment(struct ip_set *set, struct ip_set_comment *comment,
343 struct ip_set_comment_rcu *c = rcu_dereference_protected(comment->c, 1);
344 size_t len = ext->comment ? strlen(ext->comment) : 0;
349 rcu_assign_pointer(comment->c, NULL);
358 strscpy(c->str, ext->comment, len + 1);
360 rcu_assign_pointer(comment->c, c);
366 ip_set_put_comment(struct sk_buff *skb, const struct ip_set_comment *comment)
368 struct ip_set_comment_rcu *c = rcu_dereference(comment->c);
383 struct ip_set_comment *comment = ptr;
386 c = rcu_dereference_protected(comment->c, 1);
391 rcu_assign_pointer(comment->c, NULL);
492 ext->comment = ip_set_comment_uget(tb[IPSET_ATTR_COMMENT]);