/third_party/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() 51 if (cs->fw.ip.src.s_addr || cs->fw.ip.smsk.s_addr || cs->fw.ip.invflags & IPT_INV_SRCIP) { in nft_ipv4_add() 52 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_SRCIP); in nft_ipv4_add() 58 if (cs->fw.ip.dst.s_addr || cs->fw.ip.dmsk.s_addr || cs->fw.ip.invflags & IPT_INV_DSTIP) { in nft_ipv4_add() 59 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_DSTIP); in nft_ipv4_add() 73 if (cs->fw.ip.invflags & IPT_INV_FRAG) in nft_ipv4_add() 79 add_compat(r, cs->fw.ip.proto, cs->fw.ip.invflags & XT_INV_PROTO); in nft_ipv4_add() 108 || a->fw.ip.invflags != b->fw.ip.invflags) { in nft_ipv4_is_same() [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 (cs->fw6.ipv6.invflags & IPT_INV_SRCIP)) { in nft_ipv6_add() 53 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_SRCIP); in nft_ipv6_add() 61 (cs->fw6.ipv6.invflags & IPT_INV_DSTIP)) { in nft_ipv6_add() 62 op = nft_invflags2cmp(cs->fw6.ipv6.invflags, IPT_INV_DSTIP); in nft_ipv6_add() 68 add_compat(r, cs->fw6.ipv6.proto, cs->fw6.ipv6.invflags & XT_INV_PROTO); in nft_ipv6_add() 97 || a->fw6.ipv6.invflags != b->fw6.ipv6.invflags) { in nft_ipv6_is_same() 119 cs->fw6.ipv6.invflags |= XT_INV_PROTO; in nft_ipv6_parse_meta() [all …]
|
D | nft-arp.c | 137 op = nft_invflags2cmp(fw->arp.invflags, IPT_INV_VIA_IN); in nft_arp_add() 142 op = nft_invflags2cmp(fw->arp.invflags, IPT_INV_VIA_OUT); in nft_arp_add() 147 fw->arp.invflags & IPT_INV_ARPHRD) { in nft_arp_add() 148 op = nft_invflags2cmp(fw->arp.invflags, IPT_INV_ARPHRD); in nft_arp_add() 155 fw->arp.invflags & IPT_INV_PROTO) { in nft_arp_add() 156 op = nft_invflags2cmp(fw->arp.invflags, IPT_INV_PROTO); in nft_arp_add() 163 fw->arp.invflags & IPT_INV_ARPHLN) { in nft_arp_add() 164 op = nft_invflags2cmp(fw->arp.invflags, IPT_INV_ARPHLN); in nft_arp_add() 172 fw->arp.invflags & IPT_INV_ARPOP) { in nft_arp_add() 173 op = nft_invflags2cmp(fw->arp.invflags, IPT_INV_ARPOP); in nft_arp_add() [all …]
|
D | nft-bridge.c | 108 op = nft_invflags2cmp(fw->invflags, EBT_IIN); in nft_bridge_add() 113 op = nft_invflags2cmp(fw->invflags, EBT_IOUT); in nft_bridge_add() 118 op = nft_invflags2cmp(fw->invflags, EBT_ILOGICALIN); in nft_bridge_add() 123 op = nft_invflags2cmp(fw->invflags, EBT_ILOGICALOUT); in nft_bridge_add() 128 op = nft_invflags2cmp(fw->invflags, EBT_ISOURCE); in nft_bridge_add() 135 op = nft_invflags2cmp(fw->invflags, EBT_IDEST); in nft_bridge_add() 142 op = nft_invflags2cmp(fw->invflags, EBT_IPROTO); in nft_bridge_add() 148 add_compat(r, fw->ethproto, fw->invflags & EBT_IPROTO); in nft_bridge_add() 171 uint8_t invflags = 0; in nft_bridge_parse_meta() local 174 parse_meta(e, ctx->meta.key, iifname, NULL, oifname, NULL, &invflags); in nft_bridge_parse_meta() [all …]
|
D | xtables-arp.c | 615 set_option(&options, OPT_SOURCE, &cs.arp.arp.invflags, in do_commandarp() 622 set_option(&options, OPT_DESTINATION, &cs.arp.arp.invflags, in do_commandarp() 629 set_option(&options, OPT_S_MAC, &cs.arp.arp.invflags, in do_commandarp() 639 set_option(&options, OPT_D_MAC, &cs.arp.arp.invflags, in do_commandarp() 650 set_option(&options, OPT_H_LENGTH, &cs.arp.arp.invflags, in do_commandarp() 667 set_option(&options, OPT_OPCODE, &cs.arp.arp.invflags, in do_commandarp() 684 set_option(&options, OPT_H_TYPE, &cs.arp.arp.invflags, in do_commandarp() 696 set_option(&options, OPT_P_TYPE, &cs.arp.arp.invflags, in do_commandarp() 707 set_option(&options, OPT_JUMP, &cs.arp.arp.invflags, in do_commandarp() 714 set_option(&options, OPT_VIANAMEIN, &cs.arp.arp.invflags, in do_commandarp() [all …]
|
/third_party/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_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_arp.c | 180 arpinfo->invflags |= EBT_ARP_OPCODE; in brarp_parse() 197 arpinfo->invflags |= EBT_ARP_HTYPE; in brarp_parse() 213 arpinfo->invflags |= EBT_ARP_PTYPE; in brarp_parse() 247 arpinfo->invflags |= EBT_ARP_SRC_IP; in brarp_parse() 249 arpinfo->invflags |= EBT_ARP_DST_IP; in brarp_parse() 268 arpinfo->invflags |= EBT_ARP_SRC_MAC; in brarp_parse() 270 arpinfo->invflags |= EBT_ARP_DST_MAC; in brarp_parse() 279 arpinfo->invflags |= EBT_ARP_GRAT; in brarp_parse() 294 if (arpinfo->invflags & EBT_ARP_OPCODE) in brarp_print() 303 if (arpinfo->invflags & EBT_ARP_HTYPE) in brarp_print() [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 | libebt_ip.c | 45 __u8 invflags; member 168 info->invflags = 0; in brip_init() 391 info->invflags |= EBT_IP_SOURCE; in brip_parse() 397 info->invflags |= EBT_IP_DEST; in brip_parse() 403 info->invflags |= EBT_IP_SPORT; in brip_parse() 409 info->invflags |= EBT_IP_DPORT; in brip_parse() 415 info->invflags |= EBT_IP_ICMP; in brip_parse() 422 info->invflags |= EBT_IP_IGMP; in brip_parse() 431 info->invflags |= EBT_IP_TOS; in brip_parse() 441 info->invflags |= EBT_IP_PROTO; in brip_parse() [all …]
|
D | libxt_dccp.c | 118 einfo->invflags |= XT_DCCP_SRC_PORTS; in dccp_parse() 123 einfo->invflags |= XT_DCCP_DEST_PORTS; in dccp_parse() 129 einfo->invflags |= XT_DCCP_TYPE; in dccp_parse() 134 einfo->invflags |= XT_DCCP_OPTION; in dccp_parse() 230 einfo->invflags & XT_DCCP_SRC_PORTS, in dccp_print() 236 einfo->invflags & XT_DCCP_DEST_PORTS, in dccp_print() 242 einfo->invflags & XT_DCCP_TYPE, in dccp_print() 248 einfo->invflags & XT_DCCP_OPTION, numeric); in dccp_print() 258 if (einfo->invflags & XT_DCCP_SRC_PORTS) in dccp_save() 268 if (einfo->invflags & XT_DCCP_DEST_PORTS) in dccp_save() [all …]
|
D | libebt_vlan.c | 66 vlaninfo->invflags |= EBT_VLAN_ID; in brvlan_parse() 76 vlaninfo->invflags |= EBT_VLAN_PRIO; in brvlan_parse() 86 vlaninfo->invflags |= EBT_VLAN_ENCAP; in brvlan_parse() 112 printf("--vlan-id %s%d ", (vlaninfo->invflags & EBT_VLAN_ID) ? "! " : "", vlaninfo->id); in brvlan_print() 115 printf("--vlan-prio %s%d ", (vlaninfo->invflags & EBT_VLAN_PRIO) ? "! " : "", vlaninfo->prio); in brvlan_print() 118 printf("--vlan-encap %s", (vlaninfo->invflags & EBT_VLAN_ENCAP) ? "! " : ""); in brvlan_print() 129 xt_xlate_add(xl, "vlan id %s%d ", (vlaninfo->invflags & EBT_VLAN_ID) ? "!= " : "", vlaninfo->id); in brvlan_xlate() 132 …xt_xlate_add(xl, "vlan pcp %s%d ", (vlaninfo->invflags & EBT_VLAN_PRIO) ? "!= " : "", vlaninfo->pr… in brvlan_xlate() 135 …xt_xlate_add(xl, "vlan type %s0x%4.4x ", (vlaninfo->invflags & EBT_VLAN_ENCAP) ? "!= " : "", ntohs… in brvlan_xlate()
|
D | libebt_ip6.c | 242 ipinfo->invflags = 0; in brip6_init() 338 info->invflags |= EBT_IP6_SOURCE; in brip6_parse() 344 info->invflags |= EBT_IP6_DEST; in brip6_parse() 350 info->invflags |= EBT_IP6_SPORT; in brip6_parse() 356 info->invflags |= EBT_IP6_DPORT; in brip6_parse() 362 info->invflags |= EBT_IP6_ICMP6; in brip6_parse() 369 info->invflags |= EBT_IP6_TCLASS; in brip6_parse() 377 info->invflags |= EBT_IP6_PROTO; in brip6_parse() 403 if (ipinfo->invflags & EBT_IP6_SOURCE) in brip6_print() 410 if (ipinfo->invflags & EBT_IP6_DEST) in brip6_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_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 | 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_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 | 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_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 | libip6t_hbh.c | 108 optinfo->invflags |= IP6T_OPTS_INV_LEN; in hbh_parse() 140 printf(":%s", optinfo->invflags & IP6T_OPTS_INV_LEN ? "!" : ""); in hbh_print() 145 if (optinfo->invflags & ~IP6T_OPTS_INV_MASK) in hbh_print() 147 optinfo->invflags & ~IP6T_OPTS_INV_MASK); in hbh_print() 156 (optinfo->invflags & IP6T_OPTS_INV_LEN) ? " !" : "", in hbh_save() 176 (optinfo->invflags & IP6T_OPTS_INV_LEN) ? "!= " : "", in hbh_xlate()
|
D | libipt_icmp.c | 161 icmpinfo->invflags |= IPT_ICMP_INV; in icmp_parse() 203 icmp->invflags & IPT_ICMP_INV, in icmp_print() 206 if (icmp->invflags & ~IPT_ICMP_INV) in icmp_print() 208 icmp->invflags & ~IPT_ICMP_INV); in icmp_print() 215 if (icmp->invflags & IPT_ICMP_INV) in icmp_save() 254 (info->invflags & IPT_ICMP_INV) ? " !=" : ""); in icmp_xlate()
|
D | libip6t_icmp6.c | 140 icmpv6info->invflags |= IP6T_ICMP_INV; in icmp6_parse() 182 icmpv6->invflags & IP6T_ICMP_INV, in icmp6_print() 185 if (icmpv6->invflags & ~IP6T_ICMP_INV) in icmp6_print() 187 icmpv6->invflags & ~IP6T_ICMP_INV); in icmp6_print() 194 if (icmpv6->invflags & IP6T_ICMP_INV) in icmp6_save() 256 (info->invflags & IP6T_ICMP_INV) ? " !=" : ""); in icmp6_xlate()
|