/external/iptables/extensions/ |
D | libxt_tcp.c | 114 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 …]
|
D | libip6t_ah.c | 49 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 …]
|
D | libxt_dccp.c | 112 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 …]
|
D | libip6t_rt.c | 117 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 …]
|
D | libxt_udp.c | 54 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 …]
|
D | libebt_ip.c | 62 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 …]
|
D | libip6t_frag.c | 61 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()
|
D | libxt_sctp.c | 262 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 …]
|
D | libipt_ah.c | 39 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()
|
D | libxt_ipcomp.c | 37 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()
|
D | libxt_esp.c | 39 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()
|
D | libip6t_mh.c | 134 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()
|
D | libxt_multiport.c | 143 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 …]
|
D | libebt_802_3.c | 43 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()
|
D | libip6t_hbh.c | 110 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()
|
D | libipt_icmp.c | 185 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()
|
D | libip6t_dst.c | 116 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()
|
D | libip6t_icmp6.c | 164 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/ |
D | nft-ipv4.c | 37 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 …]
|
D | nft-ipv6.c | 36 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 …]
|
D | nft-arp.c | 148 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 …]
|
D | nft-bridge.c | 83 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 …]
|
D | nft-shared.c | 212 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 …]
|
D | iptables.c | 556 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 …]
|
D | ip6tables.c | 570 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 …]
|