Home
last modified time | relevance | path

Searched refs:invert (Results 1 – 25 of 40) sorted by relevance

12

/net/netfilter/
Dxt_physdev.c37 !(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 …]
Dxt_connlabel.c26 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()
Dxt_ipvs.c62 !!(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()
Dxt_multiport.c45 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()
Dnft_connlimit.c19 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()
Dxt_ecn.c41 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()
Dxt_tcpudp.c26 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()
Dnft_limit.c29 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()
Dxt_owner.c71 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()
Dxt_dscp.c30 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()
Dnft_lookup.c22 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()
Dxt_string.c27 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()
Dxt_esp.c26 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()
Dxt_ipcomp.c30 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()
Dxt_cpu.c28 if (info->invert & ~1) in cpu_mt_check()
37 return (info->cpu == smp_processor_id()) ^ info->invert; in cpu_mt()
Dxt_length.c26 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()
Dnft_dynset.c21 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/
Debt_mark_m.c22 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()
Debt_pkttype.c21 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/
Dipt_rpfilter.c59 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()
Dipt_ah.c20 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/
Dip6t_rpfilter.c95 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()
Dip6t_ah.c25 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()
Dip6t_frag.c24 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()
Dip6t_mh.c26 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()

12