Home
last modified time | relevance | path

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

123

/linux-6.12.1/net/netfilter/
Dxt_tcpudp.c101 !!(tcpinfo->invflags & XT_TCP_INV_SRCPT))) in tcp_mt()
105 !!(tcpinfo->invflags & XT_TCP_INV_DSTPT))) in tcp_mt()
117 tcpinfo->invflags & XT_TCP_INV_OPTION, in tcp_mt()
129 return (tcpinfo->invflags & ~XT_TCP_INV_MASK) ? -EINVAL : 0; in tcp_mt_check()
153 !!(udpinfo->invflags & XT_UDP_INV_SRCPT)) in udp_mt()
156 !!(udpinfo->invflags & XT_UDP_INV_DSTPT)); in udp_mt()
164 return (udpinfo->invflags & ~XT_UDP_INV_MASK) ? -EINVAL : 0; in udp_mt_check()
212 !!(icmpinfo->invflags & IPT_ICMP_INV)); in icmp_match()
239 !!(icmpinfo->invflags & IP6T_ICMP_INV)); in icmp6_match()
246 return (icmpinfo->invflags & ~IPT_ICMP_INV) ? -EINVAL : 0; in icmp_checkentry()
[all …]
Dxt_dccp.c113 XT_DCCP_SRC_PORTS, info->flags, info->invflags) in dccp_mt()
116 XT_DCCP_DEST_PORTS, info->flags, info->invflags) in dccp_mt()
118 XT_DCCP_TYPE, info->flags, info->invflags) in dccp_mt()
121 XT_DCCP_OPTION, info->flags, info->invflags); in dccp_mt()
130 if (info->invflags & ~XT_DCCP_VALID_FLAGS) in dccp_mt_check()
132 if (info->invflags & ~info->flags) in dccp_mt_check()
Dxt_sctp.c139 XT_SCTP_SRC_PORTS, info->flags, info->invflags) && in sctp_mt()
142 XT_SCTP_DEST_PORTS, info->flags, info->invflags) && in sctp_mt()
145 XT_SCTP_CHUNK_TYPES, info->flags, info->invflags); in sctp_mt()
156 if (info->invflags & ~XT_SCTP_VALID_FLAGS) in sctp_mt_check()
158 if (info->invflags & ~info->flags) in sctp_mt_check()
Dxt_esp.c57 !!(espinfo->invflags & XT_ESP_INV_SPI)); in esp_mt()
64 if (espinfo->invflags & ~XT_ESP_INV_MASK) { in esp_mt_check()
65 pr_debug("unknown flags %X\n", espinfo->invflags); in esp_mt_check()
Dxt_ipcomp.c62 !!(compinfo->invflags & XT_IPCOMP_INV_SPI)); in comp_mt()
70 if (compinfo->invflags & ~XT_IPCOMP_INV_MASK) { in comp_mt_check()
71 pr_info_ratelimited("unknown flags %X\n", compinfo->invflags); in comp_mt_check()
Dxt_CHECKSUM.c51 (i4->invflags & XT_INV_PROTO) == 0) in checksum_tg_check()
57 (i6->invflags & XT_INV_PROTO) == 0) in checksum_tg_check()
Dxt_ecn.c96 (ip->proto != IPPROTO_TCP || ip->invflags & IPT_INV_PROTO)) { in ecn_mt_check4()
138 (ip->proto != IPPROTO_TCP || ip->invflags & IP6T_INV_PROTO)) { in ecn_mt_check6()
Dxt_multiport.c130 return check(ip->proto, ip->invflags, multiinfo->flags, in multiport_mt_check()
139 return check(ip->proto, ip->invflags, multiinfo->flags, in multiport_mt6_check()
/linux-6.12.1/net/ipv6/netfilter/
Dip6t_ah.c67 !!(ahinfo->invflags & IP6T_AH_INV_SPI))); in ah_mt6()
72 !!(ahinfo->invflags & IP6T_AH_INV_LEN))); in ah_mt6()
79 !!(ahinfo->invflags & IP6T_AH_INV_SPI)) && in ah_mt6()
82 !!(ahinfo->invflags & IP6T_AH_INV_LEN)) && in ah_mt6()
90 if (ahinfo->invflags & ~IP6T_AH_INV_MASK) { in ah_mt6_check()
91 pr_debug("unknown flags %X\n", ahinfo->invflags); in ah_mt6_check()
Dip6t_rt.c65 !!(rtinfo->invflags & IP6T_RT_INV_SGS))) && in rt_mt6()
68 !!(rtinfo->invflags & IP6T_RT_INV_LEN))) && in rt_mt6()
71 !!(rtinfo->invflags & IP6T_RT_INV_TYP))); in rt_mt6()
156 if (rtinfo->invflags & ~IP6T_RT_INV_MASK) { in rt_mt6_check()
157 pr_debug("unknown flags %X\n", rtinfo->invflags); in rt_mt6_check()
163 (rtinfo->invflags & IP6T_RT_INV_TYP))) { in rt_mt6_check()
Dip6t_ipv6header.c110 return !((temp ^ info->matchflags ^ info->invflags) in ipv6header_mt6()
113 if (info->invflags) in ipv6header_mt6()
125 if ((!info->modeflag) && info->invflags != 0x00 && in ipv6header_mt6_check()
126 info->invflags != 0xFF) in ipv6header_mt6_check()
Dip6t_frag.c66 !!(fraginfo->invflags & IP6T_FRAG_INV_IDS))); in frag_mt6()
90 !!(fraginfo->invflags & IP6T_FRAG_INV_IDS)) && in frag_mt6()
105 if (fraginfo->invflags & ~IP6T_FRAG_INV_MASK) { in frag_mt6_check()
106 pr_debug("unknown flags %X\n", fraginfo->invflags); in frag_mt6_check()
Dip6t_hbh.c87 !!(optinfo->invflags & IP6T_OPTS_INV_LEN)))); in hbh_mt6()
91 !!(optinfo->invflags & IP6T_OPTS_INV_LEN))); in hbh_mt6()
167 if (optsinfo->invflags & ~IP6T_OPTS_INV_MASK) { in hbh_mt6_check()
168 pr_debug("unknown flags %X\n", optsinfo->invflags); in hbh_mt6_check()
Dip6t_mh.c58 !!(mhinfo->invflags & IP6T_MH_INV_TYPE)); in mh_mt6()
66 return (mhinfo->invflags & ~IP6T_MH_INV_MASK) ? -EINVAL : 0; in mh_mt6_check()
/linux-6.12.1/net/bridge/netfilter/
Debt_ip.c110 e->invflags & EBT_IPROTO) in ebt_ip_mt_check()
112 if (info->bitmask & ~EBT_IP_MASK || info->invflags & ~EBT_IP_MASK) in ebt_ip_mt_check()
115 if (info->invflags & EBT_IP_PROTO) in ebt_ip_mt_check()
129 if ((info->invflags & EBT_IP_PROTO) || in ebt_ip_mt_check()
137 if ((info->invflags & EBT_IP_PROTO) || in ebt_ip_mt_check()
Debt_ip6.c111 if (e->ethproto != htons(ETH_P_IPV6) || e->invflags & EBT_IPROTO) in ebt_ip6_mt_check()
113 if (info->bitmask & ~EBT_IP6_MASK || info->invflags & ~EBT_IP6_MASK) in ebt_ip6_mt_check()
116 if (info->invflags & EBT_IP6_PROTO) in ebt_ip6_mt_check()
130 if ((info->invflags & EBT_IP6_PROTO) || in ebt_ip6_mt_check()
Debt_vlan.c23 #define EXIT_ON_MISMATCH(_MATCH_,_MASK_) {if (!((info->_MATCH_ == _MATCH_)^!!(info->invflags & _MAS…
99 if (info->invflags & ~EBT_VLAN_MASK) { in ebt_vlan_mt_check()
101 info->invflags, EBT_VLAN_MASK); in ebt_vlan_mt_check()
Debt_arp.c108 e->invflags & EBT_IPROTO) in ebt_arp_mt_check()
110 if (info->bitmask & ~EBT_ARP_MASK || info->invflags & ~EBT_ARP_MASK) in ebt_arp_mt_check()
/linux-6.12.1/net/ipv4/netfilter/
Dipt_ah.c52 !!(ahinfo->invflags & IPT_AH_INV_SPI)); in ah_mt()
60 if (ahinfo->invflags & ~IPT_AH_INV_MASK) { in ah_mt_check()
61 pr_debug("unknown flags %X\n", ahinfo->invflags); in ah_mt_check()
/linux-6.12.1/include/uapi/linux/netfilter/
Dxt_tcpudp.h14 __u8 invflags; /* Inverse flags */ member
28 __u8 invflags; /* Inverse flags */ member
Dxt_esp.h9 __u8 invflags; /* Inverse flags */ member
/linux-6.12.1/include/uapi/linux/netfilter_ipv4/
Dip_tables.h85 __u8 invflags; member
150 __u8 invflags; /* Inverse flags */ member
Dipt_ah.h9 __u8 invflags; /* Inverse flags */ member
/linux-6.12.1/include/uapi/linux/netfilter_ipv6/
Dip6_tables.h87 __u8 invflags; member
190 __u8 invflags; /* Inverse flags */ member
Dip6t_mh.h10 __u8 invflags; /* Inverse flags */ member

123