/external/iptables/extensions/ |
D | libip6t_LOG.c | 192 xt_xlate_add(xl, "log"); in LOG_xlate() 195 xt_xlate_add(xl, " prefix \\\"%s\\\"", loginfo->prefix); in LOG_xlate() 197 xt_xlate_add(xl, " prefix \"%s\"", loginfo->prefix); in LOG_xlate() 203 xt_xlate_add(xl, " level %s", in LOG_xlate() 209 xt_xlate_add(xl, " flags all"); in LOG_xlate() 214 xt_xlate_add(xl, " flags tcp"); in LOG_xlate() 216 xt_xlate_add(xl, " sequence"); in LOG_xlate() 220 xt_xlate_add(xl, "%soptions", delim); in LOG_xlate() 223 xt_xlate_add(xl, " flags ip options"); in LOG_xlate() 225 xt_xlate_add(xl, " flags skuid"); in LOG_xlate() [all …]
|
D | libipt_LOG.c | 192 xt_xlate_add(xl, "log"); in LOG_xlate() 195 xt_xlate_add(xl, " prefix \\\"%s\\\"", loginfo->prefix); in LOG_xlate() 197 xt_xlate_add(xl, " prefix \"%s\"", loginfo->prefix); in LOG_xlate() 203 xt_xlate_add(xl, " level %s", in LOG_xlate() 209 xt_xlate_add(xl, " flags all"); in LOG_xlate() 214 xt_xlate_add(xl, " flags tcp"); in LOG_xlate() 216 xt_xlate_add(xl, " sequence"); in LOG_xlate() 220 xt_xlate_add(xl, "%soptions", delim); in LOG_xlate() 223 xt_xlate_add(xl, " flags ip options"); in LOG_xlate() 225 xt_xlate_add(xl, " flags skuid"); in LOG_xlate() [all …]
|
D | libxt_MARK.c | 253 xt_xlate_add(xl, "meta mark set "); in mark_tg_xlate() 256 xt_xlate_add(xl, "mark and 0x%x ", ~info->mask); in mark_tg_xlate() 258 xt_xlate_add(xl, "mark or 0x%x ", info->mark); in mark_tg_xlate() 260 xt_xlate_add(xl, "mark xor 0x%x ", info->mark); in mark_tg_xlate() 262 xt_xlate_add(xl, "0x%x ", info->mark); in mark_tg_xlate() 264 xt_xlate_add(xl, "mark and 0x%x xor 0x%x ", ~info->mask, in mark_tg_xlate() 276 xt_xlate_add(xl, "meta mark set "); in MARK_xlate() 280 xt_xlate_add(xl, "0x%x ", markinfo->mark); in MARK_xlate() 283 xt_xlate_add(xl, "mark and 0x%x ", markinfo->mark); in MARK_xlate() 286 xt_xlate_add(xl, "mark or 0x%x ", markinfo->mark); in MARK_xlate()
|
D | libxt_multiport.c | 478 xt_xlate_add(xl, " sport "); in __multiport_xlate() 481 xt_xlate_add(xl, " dport "); in __multiport_xlate() 488 xt_xlate_add(xl, "{ "); in __multiport_xlate() 491 xt_xlate_add(xl, "%s%u", i ? "," : "", multiinfo->ports[i]); in __multiport_xlate() 494 xt_xlate_add(xl, "}"); in __multiport_xlate() 504 xt_xlate_add(xl, "%s", proto_to_name(proto)); in multiport_xlate() 513 xt_xlate_add(xl, "%s", proto_to_name(proto)); in multiport_xlate6() 526 xt_xlate_add(xl, " sport "); in __multiport_xlate_v1() 529 xt_xlate_add(xl, " dport "); in __multiport_xlate_v1() 536 xt_xlate_add(xl, "!= "); in __multiport_xlate_v1() [all …]
|
D | libxt_ecn.c | 130 xt_xlate_add(xl, "ip ecn "); in ecn_xlate() 132 xt_xlate_add(xl,"!= "); in ecn_xlate() 136 xt_xlate_add(xl, "not-ect"); in ecn_xlate() 139 xt_xlate_add(xl, "ect1"); in ecn_xlate() 142 xt_xlate_add(xl, "ect0"); in ecn_xlate() 145 xt_xlate_add(xl, "ce"); in ecn_xlate()
|
D | libxt_dccp.c | 302 xt_xlate_add(xl, " dccp type%s ", einfo->invflags ? " !=" : ""); in dccp_type_xlate() 305 xt_xlate_add(xl, "{"); in dccp_type_xlate() 315 xt_xlate_add(xl, ", "); in dccp_type_xlate() 319 xt_xlate_add(xl, "%s", dccp_pkt_types_xlate[i]); in dccp_type_xlate() 325 xt_xlate_add(xl, "}"); in dccp_type_xlate() 338 xt_xlate_add(xl, "dccp "); in dccp_xlate() 342 xt_xlate_add(xl, "sport%s %u-%u", in dccp_xlate() 346 xt_xlate_add(xl, "sport%s %u", in dccp_xlate() 354 xt_xlate_add(xl, "%sdport%s %u-%u", space, in dccp_xlate() 358 xt_xlate_add(xl, "%sdport%s %u", space, in dccp_xlate()
|
D | libxt_conntrack.c | 1164 xt_xlate_add(xl, "%s%s", sep, "invalid"); in state_xlate_print() 1168 xt_xlate_add(xl, "%s%s", sep, "new"); in state_xlate_print() 1172 xt_xlate_add(xl, "%s%s", sep, "related"); in state_xlate_print() 1176 xt_xlate_add(xl, "%s%s", sep, "established"); in state_xlate_print() 1180 xt_xlate_add(xl, "%s%s", sep, "untracked"); in state_xlate_print() 1191 xt_xlate_add(xl, "ct state %s", sinfo->invert_flags & XT_CONNTRACK_STATE ? in state_xlate() 1194 xt_xlate_add(xl, " "); in state_xlate() 1203 xt_xlate_add(xl, "%s%s", sep, "expected"); in status_xlate_print() 1207 xt_xlate_add(xl, "%s%s", sep, "seen-reply"); in status_xlate_print() 1211 xt_xlate_add(xl, "%s%s", sep, "assured"); in status_xlate_print() [all …]
|
D | libxt_TEE.c | 101 xt_xlate_add(xl, "dup to %s", in tee_tg_xlate() 104 xt_xlate_add(xl, "dup to %s", in tee_tg_xlate() 107 xt_xlate_add(xl, " device %s", info->oif); in tee_tg_xlate() 118 xt_xlate_add(xl, "dup to %s", in tee_tg6_xlate() 121 xt_xlate_add(xl, "dup to %s", in tee_tg6_xlate() 124 xt_xlate_add(xl, " device %s", info->oif); in tee_tg6_xlate()
|
D | libxt_NFLOG.c | 112 xt_xlate_add(xl, "log "); in nflog_print_xlate() 115 xt_xlate_add(xl, "prefix \\\"%s\\\" ", info->prefix); in nflog_print_xlate() 117 xt_xlate_add(xl, "prefix \"%s\" ", info->prefix); in nflog_print_xlate() 121 xt_xlate_add(xl, "snaplen %u ", info->len); in nflog_print_xlate() 123 xt_xlate_add(xl, "queue-threshold %u ", info->threshold); in nflog_print_xlate() 124 xt_xlate_add(xl, "group %u ", info->group); in nflog_print_xlate()
|
D | libip6t_frag.c | 184 xt_xlate_add(xl, "frag id %s", in frag_xlate() 188 xt_xlate_add(xl, "%u-%u", fraginfo->ids[0], in frag_xlate() 191 xt_xlate_add(xl, "%u", fraginfo->ids[0]); in frag_xlate() 197 xt_xlate_add(xl, "%sfrag reserved 1", space); in frag_xlate() 201 xt_xlate_add(xl, "%sfrag frag-off 0", space); in frag_xlate() 205 xt_xlate_add(xl, "%sfrag more-fragments 1", space); in frag_xlate() 209 xt_xlate_add(xl, "%sfrag more-fragments 0", space); in frag_xlate()
|
D | libxt_NFQUEUE.c | 279 xt_xlate_add(xl, "queue num %u ", tinfo->queuenum); in NFQUEUE_xlate() 292 xt_xlate_add(xl, "queue num %u-%u ", tinfo->queuenum, last); in NFQUEUE_xlate_v1() 294 xt_xlate_add(xl, "queue num %u ", tinfo->queuenum); in NFQUEUE_xlate_v1() 308 xt_xlate_add(xl, "queue num %u-%u ", info->queuenum, last); in NFQUEUE_xlate_v2() 310 xt_xlate_add(xl, "queue num %u ", info->queuenum); in NFQUEUE_xlate_v2() 313 xt_xlate_add(xl, "bypass"); in NFQUEUE_xlate_v2() 326 xt_xlate_add(xl, "queue num %u-%u ", info->queuenum, last); in NFQUEUE_xlate_v3() 328 xt_xlate_add(xl, "queue num %u ", info->queuenum); in NFQUEUE_xlate_v3() 331 xt_xlate_add(xl, "bypass"); in NFQUEUE_xlate_v3() 334 xt_xlate_add(xl, "%sfanout ", in NFQUEUE_xlate_v3()
|
D | libxt_CONNMARK.c | 358 xt_xlate_add(xl, "ct mark set "); in connmark_tg_xlate() 360 xt_xlate_add(xl, "ct mark and 0x%x", ~info->ctmask); in connmark_tg_xlate() 362 xt_xlate_add(xl, "ct mark or 0x%x", in connmark_tg_xlate() 365 xt_xlate_add(xl, "ct mark xor 0x%x", in connmark_tg_xlate() 368 xt_xlate_add(xl, "0x%x ", info->ctmark); in connmark_tg_xlate() 370 xt_xlate_add(xl, "ct mark xor 0x%x and 0x%x", in connmark_tg_xlate() 374 xt_xlate_add(xl, "ct mark set mark"); in connmark_tg_xlate() 378 xt_xlate_add(xl, " and 0x%x", info->nfmask); in connmark_tg_xlate() 382 xt_xlate_add(xl, "meta mark set ct mark"); in connmark_tg_xlate() 386 xt_xlate_add(xl, " and 0x%x", info->nfmask); in connmark_tg_xlate()
|
D | libip6t_ah.c | 138 xt_xlate_add(xl, "ah spi%s ", in ah_xlate() 141 xt_xlate_add(xl, "%u-%u", ahinfo->spis[0], in ah_xlate() 144 xt_xlate_add(xl, "%u", ahinfo->spis[0]); in ah_xlate() 149 xt_xlate_add(xl, "%sah hdrlength%s %u", space, in ah_xlate() 156 xt_xlate_add(xl, "%sah reserved %u", space, ahinfo->hdrres); in ah_xlate() 161 xt_xlate_add(xl, "meta l4proto ah"); in ah_xlate()
|
D | libipt_ttl.c | 111 xt_xlate_add(xl, "ip ttl"); in ttl_xlate() 114 xt_xlate_add(xl, "ip ttl !="); in ttl_xlate() 117 xt_xlate_add(xl, "ip ttl lt"); in ttl_xlate() 120 xt_xlate_add(xl, "ip ttl gt"); in ttl_xlate() 127 xt_xlate_add(xl, " %u", info->ttl); in ttl_xlate()
|
D | libxt_iprange.c | 313 xt_xlate_add(xl, " %u.%u.%u.%u-%u.%u.%u.%u ", in print_iprange_xlate() 325 xt_xlate_add(xl, "ip saddr%s", in iprange_xlate() 331 xt_xlate_add(xl, "%sip daddr%s", space, in iprange_xlate() 347 xt_xlate_add(xl, "ip saddr%s %s", in iprange_mt4_xlate() 350 xt_xlate_add(xl, "-%s", in iprange_mt4_xlate() 355 xt_xlate_add(xl, "%sip daddr%s %s", space, in iprange_mt4_xlate() 358 xt_xlate_add(xl, "-%s", in iprange_mt4_xlate() 373 xt_xlate_add(xl, "ip6 saddr%s %s", in iprange_mt6_xlate() 376 xt_xlate_add(xl, "-%s", in iprange_mt6_xlate() 381 xt_xlate_add(xl, "%sip6 daddr%s %s", space, in iprange_mt6_xlate() [all …]
|
D | libxt_devgroup.c | 161 xt_xlate_add(xl, "and 0x%x %s 0x%x", mask, in print_devgroup_xlate() 167 xt_xlate_add(xl, "%s", op == XT_OP_EQ ? "" : "!= "); in print_devgroup_xlate() 169 xt_xlate_add(xl, "%s", name); in print_devgroup_xlate() 171 xt_xlate_add(xl, "0x%x", id); in print_devgroup_xlate() 184 xt_xlate_add(xl, "iifgroup "); in devgroup_show_xlate() 193 xt_xlate_add(xl, "%soifgroup ", space); in devgroup_show_xlate()
|
D | libip6t_SNAT.c | 250 xt_xlate_add(xl, "%s%s%s", in print_range_xlate() 257 xt_xlate_add(xl, "-%s%s%s", in print_range_xlate() 264 xt_xlate_add(xl, ":%hu", ntohs(range->min_proto.tcp.port)); in print_range_xlate() 267 xt_xlate_add(xl, "-%hu", in print_range_xlate() 279 xt_xlate_add(xl, "snat to "); in SNAT_xlate() 282 xt_xlate_add(xl, " random"); in SNAT_xlate() 288 xt_xlate_add(xl, "%sfully-random", sep); in SNAT_xlate() 294 xt_xlate_add(xl, "%spersistent", sep); in SNAT_xlate()
|
D | libipt_SNAT.c | 262 xt_xlate_add(xl, "%s", xtables_ipaddr_to_numeric(&a)); in print_range_xlate() 265 xt_xlate_add(xl, "-%s", xtables_ipaddr_to_numeric(&a)); in print_range_xlate() 269 xt_xlate_add(xl, ":"); in print_range_xlate() 270 xt_xlate_add(xl, "%hu", ntohs(r->min.tcp.port)); in print_range_xlate() 272 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in print_range_xlate() 285 xt_xlate_add(xl, "snat to "); in SNAT_xlate() 288 xt_xlate_add(xl, " random"); in SNAT_xlate() 294 xt_xlate_add(xl, "%sfully-random", sep); in SNAT_xlate() 300 xt_xlate_add(xl, "%spersistent", sep); in SNAT_xlate()
|
D | libxt_tcp.c | 384 xt_xlate_add(xl, "|"); in print_tcp_xlate() 386 xt_xlate_add(xl, "%s", tcp_flag_names_xlate[i].name); in print_tcp_xlate() 393 xt_xlate_add(xl, "0x0"); in print_tcp_xlate() 405 xt_xlate_add(xl, "tcp sport %s%u-%u", in tcp_xlate() 410 xt_xlate_add(xl, "tcp sport %s%u", in tcp_xlate() 420 xt_xlate_add(xl, "%stcp dport %s%u-%u", space, in tcp_xlate() 425 xt_xlate_add(xl, "%stcp dport %s%u", space, in tcp_xlate() 438 xt_xlate_add(xl, "%stcp flags & (", space); in tcp_xlate() 440 xt_xlate_add(xl, ") %s ", in tcp_xlate()
|
D | libip6t_MASQUERADE.c | 139 xt_xlate_add(xl, "masquerade"); in MASQUERADE_xlate() 142 xt_xlate_add(xl, " to :%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_xlate() 144 xt_xlate_add(xl, "-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_xlate() 147 xt_xlate_add(xl, " "); in MASQUERADE_xlate() 149 xt_xlate_add(xl, "random "); in MASQUERADE_xlate()
|
D | libip6t_DNAT.c | 240 xt_xlate_add(xl, "%s%s%s", in print_range_xlate() 247 xt_xlate_add(xl, "-%s%s%s", in print_range_xlate() 254 xt_xlate_add(xl, ":%hu", ntohs(range->min_proto.tcp.port)); in print_range_xlate() 257 xt_xlate_add(xl, "-%hu", in print_range_xlate() 269 xt_xlate_add(xl, "dnat to "); in DNAT_xlate() 272 xt_xlate_add(xl, " random"); in DNAT_xlate() 278 xt_xlate_add(xl, "%spersistent", sep); in DNAT_xlate()
|
D | libxt_CLASSIFY.c | 90 xt_xlate_add(xl, "meta priority set "); in CLASSIFY_xlate() 94 xt_xlate_add(xl, "root"); in CLASSIFY_xlate() 97 xt_xlate_add(xl, "none"); in CLASSIFY_xlate() 100 xt_xlate_add(xl, "%0x:%0x", TC_H_MAJ(handle) >> 16, in CLASSIFY_xlate()
|
D | libipt_MASQUERADE.c | 144 xt_xlate_add(xl, "masquerade"); in MASQUERADE_xlate() 147 xt_xlate_add(xl, " to :%hu", ntohs(r->min.tcp.port)); in MASQUERADE_xlate() 149 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in MASQUERADE_xlate() 152 xt_xlate_add(xl, " "); in MASQUERADE_xlate() 154 xt_xlate_add(xl, "random "); in MASQUERADE_xlate()
|
D | libxt_connlabel.c | 142 xt_xlate_add(xl, "ct label set %s ", name); in connlabel_mt_xlate() 144 xt_xlate_add(xl, "ct label "); in connlabel_mt_xlate() 146 xt_xlate_add(xl, "and %s != ", name); in connlabel_mt_xlate() 147 xt_xlate_add(xl, "%s", name); in connlabel_mt_xlate()
|
D | libipt_DNAT.c | 252 xt_xlate_add(xl, "%s", xtables_ipaddr_to_numeric(&a)); in print_range_xlate() 255 xt_xlate_add(xl, "-%s", xtables_ipaddr_to_numeric(&a)); in print_range_xlate() 259 xt_xlate_add(xl, ":%hu", ntohs(r->min.tcp.port)); in print_range_xlate() 261 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in print_range_xlate() 274 xt_xlate_add(xl, "dnat to "); in DNAT_xlate() 277 xt_xlate_add(xl, " random"); in DNAT_xlate() 283 xt_xlate_add(xl, "%spersistent", sep); in DNAT_xlate()
|