Lines Matching full:comment
1 /* Shared library add-on to iptables to add comment match support.
5 * Initial comment match
20 "comment match options:\n" in comment_help()
21 "--comment COMMENT Attach a comment to a rule\n"); in comment_help()
25 {.name = "comment", .id = O_COMMENT, .type = XTTYPE_STRING,
27 XTOPT_POINTER(struct xt_comment_info, comment)},
36 commentinfo->comment[XT_MAX_COMMENT_LEN-1] = '\0'; in comment_print()
37 printf(" /* %s */", commentinfo->comment); in comment_print()
46 commentinfo->comment[XT_MAX_COMMENT_LEN-1] = '\0'; in comment_save()
47 printf(" --comment"); in comment_save()
48 xtables_save_string(commentinfo->comment); in comment_save()
55 char comment[XT_MAX_COMMENT_LEN]; in comment_xlate() local
57 commentinfo->comment[XT_MAX_COMMENT_LEN - 1] = '\0'; in comment_xlate()
59 snprintf(comment, XT_MAX_COMMENT_LEN, "\\\"%s\\\"", in comment_xlate()
60 commentinfo->comment); in comment_xlate()
62 snprintf(comment, XT_MAX_COMMENT_LEN, "\"%s\"", in comment_xlate()
63 commentinfo->comment); in comment_xlate()
65 comment[XT_MAX_COMMENT_LEN - 1] = '\0'; in comment_xlate()
66 xt_xlate_add_comment(xl, comment); in comment_xlate()
73 .name = "comment",