Home
last modified time | relevance | path

Searched refs:xt_xlate_add (Results 1 – 25 of 86) sorted by relevance

1234

/external/iptables/extensions/
Dlibxt_ecn.c128 xt_xlate_add(xl, "tcp flags "); in ecn_xlate()
130 xt_xlate_add(xl,"!= "); in ecn_xlate()
131 xt_xlate_add(xl, "ecn"); in ecn_xlate()
135 xt_xlate_add(xl, "tcp flags "); in ecn_xlate()
137 xt_xlate_add(xl,"!= "); in ecn_xlate()
138 xt_xlate_add(xl, "cwr"); in ecn_xlate()
142 xt_xlate_add(xl, "ip ecn "); in ecn_xlate()
144 xt_xlate_add(xl,"!= "); in ecn_xlate()
148 xt_xlate_add(xl, "not-ect"); in ecn_xlate()
151 xt_xlate_add(xl, "ect1"); in ecn_xlate()
[all …]
Dlibebt_ip.c563 xt_xlate_add(xl, "icmp type "); in brip_xlate_icmp()
565 xt_xlate_add(xl, "!= "); in brip_xlate_icmp()
567 xt_xlate_add(xl, "%d ", info->icmp_type[0]); in brip_xlate_icmp()
569 xt_xlate_add(xl, "%d-%d ", info->icmp_type[0], in brip_xlate_icmp()
575 xt_xlate_add(xl, "icmp code "); in brip_xlate_icmp()
577 xt_xlate_add(xl, "!= "); in brip_xlate_icmp()
579 xt_xlate_add(xl, "%d ", info->icmp_code[0]); in brip_xlate_icmp()
581 xt_xlate_add(xl, "%d-%d ", info->icmp_code[0], in brip_xlate_icmp()
591 xt_xlate_add(xl, "@th,0,8 "); in brip_xlate_igmp()
593 xt_xlate_add(xl, "!= "); in brip_xlate_igmp()
[all …]
Dlibebt_ip6.c466 xt_xlate_add(xl, "%s sport ", pname); in brip_xlate_th()
468 xt_xlate_add(xl, "@th,0,16 "); in brip_xlate_th()
474 xt_xlate_add(xl, "%s dport ", pname); in brip_xlate_th()
476 xt_xlate_add(xl, "@th,16,16 "); in brip_xlate_th()
485 xt_xlate_add(xl, "!= "); in brip_xlate_th()
488 xt_xlate_add(xl, "%d ", ports[0]); in brip_xlate_th()
490 xt_xlate_add(xl, "%d-%d ", ports[0], ports[1]); in brip_xlate_th()
503 xt_xlate_add(xl, "ip6 saddr "); in brip_xlate_nh()
508 xt_xlate_add(xl, "ip6 daddr "); in brip_xlate_nh()
517 xt_xlate_add(xl, "!= "); in brip_xlate_nh()
[all …]
Dlibip6t_LOG.c192 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 …]
Dlibipt_LOG.c192 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 …]
Dlibxt_cluster.c140 xt_xlate_add(xl, "%s %u seed 0x%08x eq %u %s", jhash_st, in cluster_xlate()
151 xt_xlate_add(xl, "%s %u seed 0x%08x eq %u %s", jhash_st, in cluster_xlate()
156 xt_xlate_add(xl, "%s %u seed 0x%08x ", jhash_st, in cluster_xlate()
161 xt_xlate_add(xl, "{ "); in cluster_xlate()
166 xt_xlate_add(xl, ", "); in cluster_xlate()
167 xt_xlate_add(xl, "%u", node); in cluster_xlate()
172 xt_xlate_add(xl, " }"); in cluster_xlate()
173 xt_xlate_add(xl, " %s", pkttype_st); in cluster_xlate()
Dlibxt_connbytes.c167 xt_xlate_add(xl, "ct "); in connbytes_xlate()
171 xt_xlate_add(xl, "original "); in connbytes_xlate()
174 xt_xlate_add(xl, "reply "); in connbytes_xlate()
184 xt_xlate_add(xl, "packets "); in connbytes_xlate()
187 xt_xlate_add(xl, "bytes "); in connbytes_xlate()
190 xt_xlate_add(xl, "avgpkt "); in connbytes_xlate()
206 xt_xlate_add(xl, "%llu", from); in connbytes_xlate()
208 xt_xlate_add(xl, "%s %llu", invert ? "lt" : "ge", from); in connbytes_xlate()
210 xt_xlate_add(xl, "%s%llu-%llu", invert ? "!= " : "", from, to); in connbytes_xlate()
Dlibxt_CONNMARK.c559 xt_xlate_add(xl, "ct mark set "); in connmark_tg_xlate()
561 xt_xlate_add(xl, "0x%x ", info->ctmark); in connmark_tg_xlate()
563 xt_xlate_add(xl, "ct mark and 0x%x", ~info->ctmask); in connmark_tg_xlate()
565 xt_xlate_add(xl, "ct mark or 0x%x", in connmark_tg_xlate()
568 xt_xlate_add(xl, "ct mark xor 0x%x", in connmark_tg_xlate()
571 xt_xlate_add(xl, "ct mark xor 0x%x and 0x%x", in connmark_tg_xlate()
577 xt_xlate_add(xl, "ct mark set mark"); in connmark_tg_xlate()
584 xt_xlate_add(xl, "meta mark set ct mark"); in connmark_tg_xlate()
602 xt_xlate_add(xl, "ct mark set "); in connmark_tg_xlate_v2()
604 xt_xlate_add(xl, "0x%x ", info->ctmark); in connmark_tg_xlate_v2()
[all …]
Dlibxt_addrtype.c279 xt_xlate_add(xl, "fib "); in addrtype_xlate()
282 xt_xlate_add(xl, "saddr "); in addrtype_xlate()
285 xt_xlate_add(xl, "daddr "); in addrtype_xlate()
290 xt_xlate_add(xl, ". iif "); in addrtype_xlate()
292 xt_xlate_add(xl, ". oif "); in addrtype_xlate()
294 xt_xlate_add(xl, "type "); in addrtype_xlate()
297 xt_xlate_add(xl, "!= "); in addrtype_xlate()
302 xt_xlate_add(xl, "{ "); in addrtype_xlate()
306 xt_xlate_add(xl, "%s%s", sep, rtn_lnames[i]); in addrtype_xlate()
312 xt_xlate_add(xl, " }"); in addrtype_xlate()
Dlibxt_multiport.c478 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 …]
Dlibip6t_MASQUERADE.c152 xt_xlate_add(xl, "masquerade"); in MASQUERADE_xlate()
155 xt_xlate_add(xl, " to :%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_xlate()
157 xt_xlate_add(xl, "-%hu", ntohs(r->max_proto.tcp.port)); in MASQUERADE_xlate()
160 xt_xlate_add(xl, " "); in MASQUERADE_xlate()
162 xt_xlate_add(xl, "random "); in MASQUERADE_xlate()
164 xt_xlate_add(xl, " "); in MASQUERADE_xlate()
166 xt_xlate_add(xl, "random-fully "); in MASQUERADE_xlate()
Dlibebt_nflog.c132 xt_xlate_add(xl, "log "); in brnflog_xlate()
135 xt_xlate_add(xl, "prefix \\\"%s\\\" ", info->prefix); in brnflog_xlate()
137 xt_xlate_add(xl, "prefix \"%s\" ", info->prefix); in brnflog_xlate()
140 xt_xlate_add(xl, "group %u ", info->group); in brnflog_xlate()
143 xt_xlate_add(xl, "snaplen %u ", info->len); in brnflog_xlate()
145 xt_xlate_add(xl, "queue-threshold %u ", info->threshold); in brnflog_xlate()
Dlibxt_SYNPROXY.c115 xt_xlate_add(xl, "synproxy "); in SYNPROXY_xlate()
118 xt_xlate_add(xl, "sack-perm "); in SYNPROXY_xlate()
120 xt_xlate_add(xl, "timestamp "); in SYNPROXY_xlate()
122 xt_xlate_add(xl, "wscale %u ", info->wscale); in SYNPROXY_xlate()
124 xt_xlate_add(xl, "mss %u ", info->mss); in SYNPROXY_xlate()
126 xt_xlate_add(xl, "ecn "); in SYNPROXY_xlate()
Dlibxt_conntrack.c1156 xt_xlate_add(xl, "%s%s", sep, "invalid"); in state_xlate_print()
1160 xt_xlate_add(xl, "%s%s", sep, "new"); in state_xlate_print()
1164 xt_xlate_add(xl, "%s%s", sep, "related"); in state_xlate_print()
1168 xt_xlate_add(xl, "%s%s", sep, "established"); in state_xlate_print()
1172 xt_xlate_add(xl, "%s%s", sep, "untracked"); in state_xlate_print()
1183 xt_xlate_add(xl, "ct state %s", sinfo->invert_flags & XT_CONNTRACK_STATE ? in state_xlate()
1186 xt_xlate_add(xl, " "); in state_xlate()
1195 xt_xlate_add(xl, "%s%s", sep, "expected"); in status_xlate_print()
1199 xt_xlate_add(xl, "%s%s", sep, "seen-reply"); in status_xlate_print()
1203 xt_xlate_add(xl, "%s%s", sep, "assured"); in status_xlate_print()
[all …]
Dlibxt_TEE.c101 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()
Dlibxt_rpfilter.c88 xt_xlate_add(xl, "fib saddr type != local "); in rpfilter_xlate()
93 xt_xlate_add(xl, "fib saddr "); in rpfilter_xlate()
96 xt_xlate_add(xl, ". mark "); in rpfilter_xlate()
98 xt_xlate_add(xl, ". iif "); in rpfilter_xlate()
100 xt_xlate_add(xl, "oif %s0", invert ? "" : "!= "); in rpfilter_xlate()
Dlibxt_NFLOG.c112 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()
Dlibipt_DNAT.c261 xt_xlate_add(xl, "%s", xtables_ipaddr_to_numeric(&a)); in print_range_xlate()
264 xt_xlate_add(xl, "-%s", xtables_ipaddr_to_numeric(&a)); in print_range_xlate()
268 xt_xlate_add(xl, ":%hu", ntohs(r->min.tcp.port)); in print_range_xlate()
270 xt_xlate_add(xl, "-%hu", ntohs(r->max.tcp.port)); in print_range_xlate()
283 xt_xlate_add(xl, "dnat to "); in DNAT_xlate()
286 xt_xlate_add(xl, " random"); in DNAT_xlate()
292 xt_xlate_add(xl, "%spersistent", sep); in DNAT_xlate()
482 xt_xlate_add(xl, "%s", xtables_ipaddr_to_numeric(&range->min_addr.in)); in print_range_xlate_v2()
485 xt_xlate_add(xl, "-%s", xtables_ipaddr_to_numeric(&range->max_addr.in)); in print_range_xlate_v2()
489 xt_xlate_add(xl, ":%hu", ntohs(range->min_proto.tcp.port)); in print_range_xlate_v2()
[all …]
Dlibip6t_frag.c184 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()
Dlibxt_devgroup.c114 xt_xlate_add(xl, "and 0x%x %s 0x%x", mask, in print_devgroup_xlate()
120 xt_xlate_add(xl, "%s", op == XT_OP_EQ ? "" : "!= "); in print_devgroup_xlate()
122 xt_xlate_add(xl, "%s", name); in print_devgroup_xlate()
124 xt_xlate_add(xl, "0x%x", id); in print_devgroup_xlate()
137 xt_xlate_add(xl, "iifgroup "); in devgroup_show_xlate()
146 xt_xlate_add(xl, "%soifgroup ", space); in devgroup_show_xlate()
Dlibxt_NFQUEUE.c279 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()
Dlibxt_MARK.c335 xt_xlate_add(xl, "meta mark set "); in mark_tg_xlate()
338 xt_xlate_add(xl, "0x%x ", info->mark); in mark_tg_xlate()
340 xt_xlate_add(xl, "mark and 0x%x ", ~info->mask); in mark_tg_xlate()
342 xt_xlate_add(xl, "mark or 0x%x ", info->mark); in mark_tg_xlate()
344 xt_xlate_add(xl, "mark xor 0x%x ", info->mark); in mark_tg_xlate()
346 xt_xlate_add(xl, "mark and 0x%x xor 0x%x ", ~info->mask, in mark_tg_xlate()
358 xt_xlate_add(xl, "meta mark set "); in MARK_xlate()
362 xt_xlate_add(xl, "0x%x ", (uint32_t)markinfo->mark); in MARK_xlate()
365 xt_xlate_add(xl, "mark and 0x%x ", (uint32_t)markinfo->mark); in MARK_xlate()
368 xt_xlate_add(xl, "mark or 0x%x ", (uint32_t)markinfo->mark); in MARK_xlate()
Dlibip6t_ah.c138 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()
Dlibxt_dccp.c316 xt_xlate_add(xl, "{"); in dccp_type_xlate()
326 xt_xlate_add(xl, ", "); in dccp_type_xlate()
330 xt_xlate_add(xl, "%s", dccp_pkt_types_xlate[i]); in dccp_type_xlate()
336 xt_xlate_add(xl, "}"); in dccp_type_xlate()
350 xt_xlate_add(xl, "dccp sport%s %u", in dccp_xlate()
355 xt_xlate_add(xl, "-%u", einfo->spts[1]); in dccp_xlate()
361 xt_xlate_add(xl, "%sdccp dport%s %u", space, in dccp_xlate()
366 xt_xlate_add(xl, "-%u", einfo->dpts[1]); in dccp_xlate()
372 xt_xlate_add(xl, "%sdccp type%s ", space, in dccp_xlate()
Dlibipt_ttl.c111 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()

1234