/net/netfilter/ |
D | xt_physdev.c | 37 !(info->invert & XT_PHYSDEV_OP_BRIDGED)) in physdev_mt() 40 !(info->invert & XT_PHYSDEV_OP_ISIN)) in physdev_mt() 43 !(info->invert & XT_PHYSDEV_OP_ISOUT)) in physdev_mt() 46 !(info->invert & XT_PHYSDEV_OP_IN)) in physdev_mt() 49 !(info->invert & XT_PHYSDEV_OP_OUT)) in physdev_mt() 59 (!!outdev ^ !(info->invert & XT_PHYSDEV_OP_BRIDGED))) in physdev_mt() 66 (!indev ^ !!(info->invert & XT_PHYSDEV_OP_ISIN))) || in physdev_mt() 68 (!outdev ^ !!(info->invert & XT_PHYSDEV_OP_ISOUT)))) in physdev_mt() 78 if (!ret ^ !(info->invert & XT_PHYSDEV_OP_IN)) in physdev_mt() 91 return (!!ret ^ !(info->invert & XT_PHYSDEV_OP_OUT)); in physdev_mt() [all …]
|
D | xt_connlabel.c | 26 bool invert = info->options & XT_CONNLABEL_OP_INVERT; in connlabel_mt() local 30 return invert; in connlabel_mt() 34 return invert; in connlabel_mt() 37 return !invert; in connlabel_mt() 43 return !invert; in connlabel_mt() 46 return invert; in connlabel_mt()
|
D | xt_ipvs.c | 62 !!(data->invert & XT_IPVS_IPVS_PROPERTY); in ipvs_mt() 76 !(data->invert & XT_IPVS_PROTO)) { in ipvs_mt() 103 !(data->invert & XT_IPVS_VPORT)) { in ipvs_mt() 111 !(data->invert & XT_IPVS_VPORTCTL)) { in ipvs_mt() 126 !!(data->invert & XT_IPVS_DIR)) { in ipvs_mt() 134 !(data->invert & XT_IPVS_METHOD)) { in ipvs_mt() 142 !(data->invert & XT_IPVS_VADDR)) { in ipvs_mt()
|
D | xt_multiport.c | 45 return true ^ minfo->invert; in ports_match_v1() 49 return true ^ minfo->invert; in ports_match_v1() 54 return true ^ minfo->invert; in ports_match_v1() 66 return true ^ minfo->invert; in ports_match_v1() 70 return true ^ minfo->invert; in ports_match_v1() 74 return true ^ minfo->invert; in ports_match_v1() 82 return minfo->invert; in ports_match_v1()
|
D | nft_connlimit.c | 19 bool invert; member 53 if ((count > priv->limit) ^ priv->invert) { in nft_connlimit_do_eval() 63 bool invert = false; in nft_connlimit_do_init() local 77 invert = true; in nft_connlimit_do_init() 86 priv->invert = invert; in nft_connlimit_do_init() 112 if (priv->invert && in nft_connlimit_do_dump() 223 priv_dst->invert = priv_src->invert; in nft_connlimit_clone()
|
D | xt_ecn.c | 41 if (einfo->invert & XT_ECN_OP_MATCH_ECE) { in match_tcp() 51 if (einfo->invert & XT_ECN_OP_MATCH_CWR) { in match_tcp() 67 !!(einfo->invert & XT_ECN_OP_MATCH_IP); in match_ip() 92 if (info->invert & XT_ECN_OP_MATCH_MASK) in ecn_mt_check4() 109 !!(einfo->invert & XT_ECN_OP_MATCH_IP); in match_ipv6() 134 if (info->invert & XT_ECN_OP_MATCH_MASK) in ecn_mt_check6()
|
D | xt_tcpudp.c | 26 port_match(u_int16_t min, u_int16_t max, u_int16_t port, bool invert) in port_match() argument 28 return (port >= min && port <= max) ^ invert; in port_match() 36 bool invert, in tcp_find_option() argument 47 return invert; in tcp_find_option() 58 if (op[i] == option) return !invert; in tcp_find_option() 63 return invert; in tcp_find_option()
|
D | nft_limit.c | 29 bool invert; member 48 return priv->invert; in nft_limit_eval() 52 return !priv->invert; in nft_limit_eval() 62 bool invert = false; in nft_limit_init() local 110 invert = true; in nft_limit_init() 119 priv->invert = invert; in nft_limit_init() 129 u32 flags = priv->invert ? NFT_LIMIT_F_INV : 0; in nft_limit_dump() 159 priv_dst->invert = priv_src->invert; in nft_limit_clone()
|
D | xt_owner.c | 71 return (info->match ^ info->invert) == 0; in owner_mt() 72 else if (info->match & info->invert & XT_OWNER_SOCKET) in owner_mt() 83 return ((info->match ^ info->invert) & in owner_mt() 92 !(info->invert & XT_OWNER_UID)) { in owner_mt() 120 if (match ^ !(info->invert & XT_OWNER_GID)) { in owner_mt()
|
D | xt_dscp.c | 30 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt() 39 return (dscp == info->dscp) ^ !!info->invert; in dscp_mt6() 58 info->tos_value) ^ !!info->invert; in tos_mt() 61 info->tos_value) ^ !!info->invert; in tos_mt()
|
D | nft_lookup.c | 22 bool invert; member 68 priv->invert; in nft_lookup_eval() 128 priv->invert = true; in nft_lookup_init() 133 if (priv->invert) in nft_lookup_init() 184 u32 flags = priv->invert ? NFT_LOOKUP_F_INV : 0; in nft_lookup_dump()
|
D | xt_string.c | 27 bool invert; in string_mt() local 29 invert = conf->u.v1.flags & XT_STRING_FLAG_INVERT; in string_mt() 33 != UINT_MAX) ^ invert; in string_mt()
|
D | xt_esp.c | 26 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 30 invert ? '!' : ' ', min, spi, max); in spi_match() 31 r = (spi >= min && spi <= max) ^ invert; in spi_match()
|
D | xt_ipcomp.c | 30 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 34 invert ? '!' : ' ', min, spi, max); in spi_match() 35 r = (spi >= min && spi <= max) ^ invert; in spi_match()
|
D | xt_cpu.c | 28 if (info->invert & ~1) in cpu_mt_check() 37 return (info->cpu == smp_processor_id()) ^ info->invert; in cpu_mt()
|
D | xt_length.c | 26 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt() 36 return (pktlen >= info->min && pktlen <= info->max) ^ info->invert; in length_mt6()
|
D | nft_dynset.c | 21 bool invert; member 103 if (priv->invert) in nft_dynset_eval() 108 if (!priv->invert) in nft_dynset_eval() 183 priv->invert = true; in nft_dynset_init() 371 u32 flags = priv->invert ? NFT_DYNSET_F_INV : 0; in nft_dynset_dump()
|
/net/bridge/netfilter/ |
D | ebt_mark_m.c | 22 return !!(skb->mark & info->mask) ^ info->invert; in ebt_mark_mt() 23 return ((skb->mark & info->mask) == info->mark) ^ info->invert; in ebt_mark_mt() 43 uint8_t invert, bitmask; member 53 kern->invert = user->invert; in mark_mt_compat_from_user() 64 put_user(kern->invert, &user->invert) || in mark_mt_compat_to_user()
|
D | ebt_pkttype.c | 21 return (skb->pkt_type == info->pkt_type) ^ info->invert; in ebt_pkttype_mt() 28 if (info->invert != 0 && info->invert != 1) in ebt_pkttype_mt_check()
|
/net/ipv4/netfilter/ |
D | ipt_rpfilter.c | 59 bool invert; in rpfilter_mt() local 62 invert = info->flags & XT_RPFILTER_INVERT; in rpfilter_mt() 65 return true ^ invert; in rpfilter_mt() 71 return true ^ invert; in rpfilter_mt() 83 return rpfilter_lookup_reverse(xt_net(par), &flow, xt_in(par), info->flags) ^ invert; in rpfilter_mt()
|
D | ipt_ah.c | 20 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 24 invert ? '!' : ' ', min, spi, max); in spi_match() 25 r = (spi >= min && spi <= max) ^ invert; in spi_match()
|
/net/ipv6/netfilter/ |
D | ip6t_rpfilter.c | 95 bool invert = info->flags & XT_RPFILTER_INVERT; in rpfilter_mt() local 98 return true ^ invert; in rpfilter_mt() 103 return true ^ invert; /* not routable: forward path will drop it */ in rpfilter_mt() 106 info->flags) ^ invert; in rpfilter_mt()
|
D | ip6t_ah.c | 25 spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert) in spi_match() argument 30 invert ? '!' : ' ', min, spi, max); in spi_match() 31 r = (spi >= min && spi <= max) ^ invert; in spi_match()
|
D | ip6t_frag.c | 24 id_match(u_int32_t min, u_int32_t max, u_int32_t id, bool invert) in id_match() argument 27 pr_debug("id_match:%c 0x%x <= 0x%x <= 0x%x\n", invert ? '!' : ' ', in id_match() 29 r = (id >= min && id <= max) ^ invert; in id_match()
|
D | ip6t_mh.c | 26 type_match(u_int8_t min, u_int8_t max, u_int8_t type, bool invert) in type_match() argument 28 return (type >= min && type <= max) ^ invert; in type_match()
|