Home
last modified time | relevance | path

Searched refs:invflags (Results 1 – 25 of 85) sorted by relevance

1234

/external/iptables/extensions/
Dlibxt_tcp.c114 tcpinfo->invflags |= XT_TCP_INV_FLAGS; in parse_tcp_flags()
153 tcpinfo->invflags |= XT_TCP_INV_SRCPT; in tcp_parse()
163 tcpinfo->invflags |= XT_TCP_INV_DSTPT; in tcp_parse()
198 tcpinfo->invflags |= XT_TCP_INV_OPTION; in tcp_parse()
299 tcp->invflags & XT_TCP_INV_SRCPT, in tcp_print()
302 tcp->invflags & XT_TCP_INV_DSTPT, in tcp_print()
305 tcp->invflags & XT_TCP_INV_OPTION, in tcp_print()
308 tcp->invflags & XT_TCP_INV_FLAGS, in tcp_print()
310 if (tcp->invflags & ~XT_TCP_INV_MASK) in tcp_print()
312 tcp->invflags & ~XT_TCP_INV_MASK); in tcp_print()
[all …]
Dlibip6t_ah.c49 ahinfo->invflags |= IP6T_AH_INV_SPI; in ah_parse()
53 ahinfo->invflags |= IP6T_AH_INV_LEN; in ah_parse()
91 ah->invflags & IP6T_AH_INV_SPI); in ah_print()
93 ah->invflags & IP6T_AH_INV_LEN); in ah_print()
98 if (ah->invflags & ~IP6T_AH_INV_MASK) in ah_print()
100 ah->invflags & ~IP6T_AH_INV_MASK); in ah_print()
110 (ahinfo->invflags & IP6T_AH_INV_SPI) ? " !" : ""); in ah_save()
121 if (ahinfo->hdrlen != 0 || (ahinfo->invflags & IP6T_AH_INV_LEN) ) { in ah_save()
123 (ahinfo->invflags & IP6T_AH_INV_LEN) ? " !" : "", in ah_save()
139 (ahinfo->invflags & IP6T_AH_INV_SPI) ? " !=" : ""); in ah_xlate()
[all …]
Dlibxt_dccp.c112 einfo->invflags |= XT_DCCP_SRC_PORTS; in dccp_parse()
117 einfo->invflags |= XT_DCCP_DEST_PORTS; in dccp_parse()
123 einfo->invflags |= XT_DCCP_TYPE; in dccp_parse()
128 einfo->invflags |= XT_DCCP_OPTION; in dccp_parse()
220 einfo->invflags & XT_DCCP_SRC_PORTS, in dccp_print()
226 einfo->invflags & XT_DCCP_DEST_PORTS, in dccp_print()
232 einfo->invflags & XT_DCCP_TYPE, in dccp_print()
238 einfo->invflags & XT_DCCP_OPTION, numeric); in dccp_print()
248 if (einfo->invflags & XT_DCCP_SRC_PORTS) in dccp_save()
258 if (einfo->invflags & XT_DCCP_DEST_PORTS) in dccp_save()
[all …]
Dlibip6t_rt.c117 rtinfo->invflags |= IP6T_RT_INV_TYP; in rt_parse()
124 rtinfo->invflags |= IP6T_RT_INV_SGS; in rt_parse()
129 rtinfo->invflags |= IP6T_RT_INV_LEN; in rt_parse()
134 rtinfo->invflags & IP6T_RT_INV_TYP) in rt_parse()
141 rtinfo->invflags & IP6T_RT_INV_TYP) in rt_parse()
193 printf(" type:%s%d", rtinfo->invflags & IP6T_RT_INV_TYP ? "!" : "", in rt_print()
196 rtinfo->invflags & IP6T_RT_INV_SGS); in rt_print()
199 printf(":%s", rtinfo->invflags & IP6T_RT_INV_LEN ? "!" : ""); in rt_print()
206 if (rtinfo->invflags & ~IP6T_RT_INV_MASK) in rt_print()
208 rtinfo->invflags & ~IP6T_RT_INV_MASK); in rt_print()
[all …]
Dlibxt_udp.c54 udpinfo->invflags |= XT_UDP_INV_SRCPT; in udp_parse()
58 udpinfo->invflags |= XT_UDP_INV_DSTPT; in udp_parse()
112 udp->invflags & XT_UDP_INV_SRCPT, in udp_print()
115 udp->invflags & XT_UDP_INV_DSTPT, in udp_print()
117 if (udp->invflags & ~XT_UDP_INV_MASK) in udp_print()
119 udp->invflags & ~XT_UDP_INV_MASK); in udp_print()
128 if (udpinfo->invflags & XT_UDP_INV_SRCPT) in udp_save()
142 if (udpinfo->invflags & XT_UDP_INV_DSTPT) in udp_save()
164 udpinfo->invflags & XT_UDP_INV_SRCPT ? in udp_xlate()
169 udpinfo->invflags & XT_UDP_INV_SRCPT ? in udp_xlate()
[all …]
Dlibebt_ip.c62 info->invflags = 0; in brip_init()
173 info->invflags |= EBT_IP_SOURCE; in brip_parse()
179 info->invflags |= EBT_IP_DEST; in brip_parse()
185 info->invflags |= EBT_IP_SPORT; in brip_parse()
191 info->invflags |= EBT_IP_DPORT; in brip_parse()
197 info->invflags |= EBT_IP_TOS; in brip_parse()
206 info->invflags |= EBT_IP_PROTO; in brip_parse()
245 if (info->invflags & EBT_IP_SOURCE) in brip_print()
254 if (info->invflags & EBT_IP_DEST) in brip_print()
263 if (info->invflags & EBT_IP_TOS) in brip_print()
[all …]
Dlibip6t_frag.c61 fraginfo->invflags |= IP6T_FRAG_INV_IDS; in frag_parse()
74 fraginfo->invflags |= IP6T_FRAG_INV_LEN; in frag_parse()
114 frag->invflags & IP6T_FRAG_INV_IDS); in frag_print()
118 frag->invflags & IP6T_FRAG_INV_LEN ? "!" : "", in frag_print()
134 if (frag->invflags & ~IP6T_FRAG_INV_MASK) in frag_print()
136 frag->invflags & ~IP6T_FRAG_INV_MASK); in frag_print()
146 (fraginfo->invflags & IP6T_FRAG_INV_IDS) ? " !" : ""); in frag_save()
159 (fraginfo->invflags & IP6T_FRAG_INV_LEN) ? " !" : "", in frag_save()
185 (fraginfo->invflags & IP6T_FRAG_INV_IDS) ? in frag_xlate()
Dlibxt_sctp.c262 einfo->invflags |= XT_SCTP_SRC_PORTS; in sctp_parse()
273 einfo->invflags |= XT_SCTP_DEST_PORTS; in sctp_parse()
289 einfo->invflags |= XT_SCTP_CHUNK_TYPES; in sctp_parse()
434 einfo->invflags & XT_SCTP_SRC_PORTS, in sctp_print()
440 einfo->invflags & XT_SCTP_DEST_PORTS, in sctp_print()
447 if (einfo->invflags & XT_SCTP_CHUNK_TYPES) { in sctp_print()
460 if (einfo->invflags & XT_SCTP_SRC_PORTS) in sctp_save()
470 if (einfo->invflags & XT_SCTP_DEST_PORTS) in sctp_save()
480 if (einfo->invflags & XT_SCTP_CHUNK_TYPES) in sctp_save()
503 einfo->invflags & XT_SCTP_SRC_PORTS ? " !=" : "", in sctp_xlate()
[all …]
Dlibipt_ah.c39 ahinfo->invflags |= IPT_AH_INV_SPI; in ah_parse()
69 ah->invflags & IPT_AH_INV_SPI); in ah_print()
70 if (ah->invflags & ~IPT_AH_INV_MASK) in ah_print()
72 ah->invflags & ~IPT_AH_INV_MASK); in ah_print()
82 (ahinfo->invflags & IPT_AH_INV_SPI) ? " !" : ""); in ah_save()
102 (ahinfo->invflags & IPT_AH_INV_SPI) ? " !=" : ""); in ah_xlate()
Dlibxt_ipcomp.c37 compinfo->invflags |= XT_IPCOMP_INV_SPI; in comp_parse()
66 comp->invflags & XT_IPCOMP_INV_SPI); in comp_print()
71 if (comp->invflags & ~XT_IPCOMP_INV_MASK) in comp_print()
73 comp->invflags & ~XT_IPCOMP_INV_MASK); in comp_print()
83 (compinfo->invflags & XT_IPCOMP_INV_SPI) ? " !" : ""); in comp_save()
105 compinfo->invflags & XT_IPCOMP_INV_SPI ? "!= " : ""); in comp_xlate()
Dlibxt_esp.c39 espinfo->invflags |= XT_ESP_INV_SPI; in esp_parse()
63 esp->invflags & XT_ESP_INV_SPI); in esp_print()
64 if (esp->invflags & ~XT_ESP_INV_MASK) in esp_print()
66 esp->invflags & ~XT_ESP_INV_MASK); in esp_print()
76 (espinfo->invflags & XT_ESP_INV_SPI) ? " !" : ""); in esp_save()
96 (espinfo->invflags & XT_ESP_INV_SPI) ? " !=" : ""); in esp_xlate()
Dlibip6t_mh.c134 mhinfo->invflags |= IP6T_MH_INV_TYPE; in mh_parse()
182 mhinfo->invflags & IP6T_MH_INV_TYPE, in mh_print()
184 if (mhinfo->invflags & ~IP6T_MH_INV_MASK) in mh_print()
186 mhinfo->invflags & ~IP6T_MH_INV_MASK); in mh_print()
196 if (mhinfo->invflags & IP6T_MH_INV_TYPE) in mh_save()
215 mhinfo->invflags & IP6T_MH_INV_TYPE ? "!= " : "", in mh_xlate()
219 mhinfo->invflags & IP6T_MH_INV_TYPE ? "!= " : "", in mh_xlate()
Dlibxt_multiport.c143 check_proto(uint16_t pnum, uint8_t invflags) in check_proto() argument
147 if (invflags & XT_INV_PROTO) in check_proto()
163 uint8_t invflags) in __multiport_parse() argument
171 proto = check_proto(pnum, invflags); in __multiport_parse()
177 proto = check_proto(pnum, invflags); in __multiport_parse()
183 proto = check_proto(pnum, invflags); in __multiport_parse()
198 entry->ip.proto, entry->ip.invflags); in multiport_parse()
205 entry->ipv6.proto, entry->ipv6.invflags); in multiport_parse6()
209 uint8_t invflags) in __multiport_parse_v1() argument
217 proto = check_proto(pnum, invflags); in __multiport_parse_v1()
[all …]
Dlibebt_802_3.c43 info->invflags = 0; in br802_3_init()
58 info->invflags |= EBT_802_3_SAP; in br802_3_parse()
69 info->invflags |= EBT_802_3_TYPE; in br802_3_parse()
102 if (info->invflags & EBT_802_3_SAP) in br802_3_print()
108 if (info->invflags & EBT_802_3_TYPE) in br802_3_print()
Dlibip6t_hbh.c110 optinfo->invflags |= IP6T_OPTS_INV_LEN; in hbh_parse()
142 printf(":%s", optinfo->invflags & IP6T_OPTS_INV_LEN ? "!" : ""); in hbh_print()
147 if (optinfo->invflags & ~IP6T_OPTS_INV_MASK) in hbh_print()
149 optinfo->invflags & ~IP6T_OPTS_INV_MASK); in hbh_print()
158 (optinfo->invflags & IP6T_OPTS_INV_LEN) ? " !" : "", in hbh_save()
178 (optinfo->invflags & IP6T_OPTS_INV_LEN) ? "!= " : "", in hbh_xlate()
Dlibipt_icmp.c185 icmpinfo->invflags |= IPT_ICMP_INV; in icmp_parse()
227 icmp->invflags & IPT_ICMP_INV, in icmp_print()
230 if (icmp->invflags & ~IPT_ICMP_INV) in icmp_print()
232 icmp->invflags & ~IPT_ICMP_INV); in icmp_print()
239 if (icmp->invflags & IPT_ICMP_INV) in icmp_save()
278 (info->invflags & IPT_ICMP_INV) ? " !=" : ""); in icmp_xlate()
Dlibip6t_dst.c116 optinfo->invflags |= IP6T_OPTS_INV_LEN; in dst_parse()
150 optinfo->invflags & IP6T_OPTS_INV_LEN ? "!" : "", in dst_print()
158 if (optinfo->invflags & ~IP6T_OPTS_INV_MASK) in dst_print()
160 optinfo->invflags & ~IP6T_OPTS_INV_MASK); in dst_print()
169 (optinfo->invflags & IP6T_OPTS_INV_LEN) ? " !" : "", in dst_save()
Dlibip6t_icmp6.c164 icmpv6info->invflags |= IP6T_ICMP_INV; in icmp6_parse()
206 icmpv6->invflags & IP6T_ICMP_INV, in icmp6_print()
209 if (icmpv6->invflags & ~IP6T_ICMP_INV) in icmp6_print()
211 icmpv6->invflags & ~IP6T_ICMP_INV); in icmp6_print()
218 if (icmpv6->invflags & IP6T_ICMP_INV) in icmp6_save()
280 (info->invflags & IP6T_ICMP_INV) ? " !=" : ""); in icmp6_xlate()
/external/iptables/iptables/
Dnft-ipv4.c37 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_VIA_IN); in nft_ipv4_add()
42 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_VIA_OUT); in nft_ipv4_add()
47 op = nft_invflags2cmp(cs->fw.ip.invflags, XT_INV_PROTO); in nft_ipv4_add()
53 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_SRCIP); in nft_ipv4_add()
59 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_DSTIP); in nft_ipv4_add()
71 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_FRAG); in nft_ipv4_add()
75 add_compat(r, cs->fw.ip.proto, cs->fw.ip.invflags); in nft_ipv4_add()
111 || a->fw.ip.invflags != b->fw.ip.invflags) { in nft_ipv4_is_same()
173 &cs->fw.ip.invflags); in nft_ipv4_parse_meta()
201 cs->fw.ip.invflags |= IPT_INV_SRCIP; in nft_ipv4_parse_payload()
[all …]
Dnft-ipv6.c36 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_VIA_IN); in nft_ipv6_add()
41 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_VIA_OUT); in nft_ipv6_add()
46 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, XT_INV_PROTO); in nft_ipv6_add()
52 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_SRCIP); in nft_ipv6_add()
58 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_DSTIP); in nft_ipv6_add()
63 add_compat(r, cs->fw6.ipv6.proto, cs->fw6.ipv6.invflags); in nft_ipv6_add()
99 || a->fw6.ipv6.invflags != b->fw6.ipv6.invflags) { in nft_ipv6_is_same()
119 cs->fw6.ipv6.outiface_mask, &cs->fw6.ipv6.invflags); in nft_ipv6_parse_meta()
147 cs->fw6.ipv6.invflags |= IP6T_INV_SRCIP; in nft_ipv6_parse_payload()
160 cs->fw6.ipv6.invflags |= IP6T_INV_DSTIP; in nft_ipv6_parse_payload()
[all …]
Dnft-arp.c148 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_VIA_IN); in nft_arp_add()
153 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_VIA_OUT); in nft_arp_add()
158 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_ARPHRD); in nft_arp_add()
165 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_ARPPRO); in nft_arp_add()
172 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_ARPHLN); in nft_arp_add()
180 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_ARPOP); in nft_arp_add()
187 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_SRCDEVADDR); in nft_arp_add()
194 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_SRCIP); in nft_arp_add()
201 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_TGTDEVADDR); in nft_arp_add()
208 op = nft_invflags2cmp(fw->arp.invflags, ARPT_INV_TGTIP); in nft_arp_add()
[all …]
Dnft-bridge.c83 static uint16_t ipt_to_ebt_flags(uint8_t invflags) in ipt_to_ebt_flags() argument
87 if (invflags & IPT_INV_VIA_IN) in ipt_to_ebt_flags()
90 if (invflags & IPT_INV_VIA_OUT) in ipt_to_ebt_flags()
93 if (invflags & IPT_INV_PROTO) in ipt_to_ebt_flags()
163 op = nft_invflags2cmp(fw->invflags, EBT_IIN); in nft_bridge_add()
168 op = nft_invflags2cmp(fw->invflags, EBT_IOUT); in nft_bridge_add()
173 op = nft_invflags2cmp(fw->invflags, EBT_ILOGICALIN); in nft_bridge_add()
178 op = nft_invflags2cmp(fw->invflags, EBT_ILOGICALOUT); in nft_bridge_add()
184 op = nft_invflags2cmp(fw->invflags, EBT_ISOURCE); in nft_bridge_add()
192 op = nft_invflags2cmp(fw->invflags, EBT_IDEST); in nft_bridge_add()
[all …]
Dnft-shared.c212 unsigned char *outiface_mask, uint8_t *invflags) in parse_meta() argument
222 *invflags |= IPT_INV_VIA_IN; in parse_meta()
231 *invflags |= IPT_INV_VIA_OUT; in parse_meta()
240 *invflags |= IPT_INV_VIA_IN; in parse_meta()
255 *invflags |= IPT_INV_VIA_OUT; in parse_meta()
608 uint8_t invflags, uint8_t proto, in print_firewall_details() argument
622 fputc(invflags & XT_INV_PROTO ? '!' : ' ', stdout); in print_firewall_details()
633 void print_ifaces(const char *iniface, const char *outiface, uint8_t invflags, in print_ifaces() argument
641 if (invflags & IPT_INV_VIA_IN) { in print_ifaces()
656 if (invflags & IPT_INV_VIA_OUT) { in print_ifaces()
[all …]
Diptables.c556 fputc(fw->ip.invflags & XT_INV_PROTO ? '!' : ' ', stdout); in print_firewall()
568 fputc(fw->ip.invflags & IPT_INV_FRAG ? '!' : '-', stdout); in print_firewall()
576 if (fw->ip.invflags & IPT_INV_VIA_IN) { in print_firewall()
589 if (fw->ip.invflags & IPT_INV_VIA_OUT) { in print_firewall()
603 fputc(fw->ip.invflags & IPT_INV_SRCIP ? '!' : ' ', stdout); in print_firewall()
615 fputc(fw->ip.invflags & IPT_INV_DSTIP ? '!' : ' ', stdout); in print_firewall()
1099 e->ip.invflags & IPT_INV_SRCIP); in print_rule4()
1102 e->ip.invflags & IPT_INV_DSTIP); in print_rule4()
1105 e->ip.invflags & IPT_INV_VIA_IN); in print_rule4()
1108 e->ip.invflags & IPT_INV_VIA_OUT); in print_rule4()
[all …]
Dip6tables.c570 fputc(fw->ipv6.invflags & XT_INV_PROTO ? '!' : ' ', stdout); in print_firewall()
590 if (fw->ipv6.invflags & IP6T_INV_VIA_IN) { in print_firewall()
603 if (fw->ipv6.invflags & IP6T_INV_VIA_OUT) { in print_firewall()
617 fputc(fw->ipv6.invflags & IP6T_INV_SRCIP ? '!' : ' ', stdout); in print_firewall()
630 fputc(fw->ipv6.invflags & IP6T_INV_DSTIP ? '!' : ' ', stdout); in print_firewall()
1100 e->ipv6.invflags & IP6T_INV_SRCIP); in print_rule6()
1103 e->ipv6.invflags & IP6T_INV_DSTIP); in print_rule6()
1106 e->ipv6.invflags & IP6T_INV_VIA_IN); in print_rule6()
1109 e->ipv6.invflags & IP6T_INV_VIA_OUT); in print_rule6()
1111 print_proto(e->ipv6.proto, e->ipv6.invflags & XT_INV_PROTO); in print_rule6()
[all …]

1234