Lines Matching defs:filt
38 const struct iwl_sap_eth_filter *filt;
45 for (filt = &filters->eth_filters[0];
46 filt < &filters->eth_filters[0] + ARRAY_SIZE(filters->eth_filters);
47 filt++) {
49 if (!(filt->flags & SAP_ETH_FILTER_ENABLED))
52 if (compare_ether_header(filt->mac_address, ethhdr->h_dest))
56 if (filt->flags & SAP_ETH_FILTER_COPY)
62 if (filt->flags & SAP_ETH_FILTER_STOP) {
84 const struct iwl_sap_ipv4_filter *filt = &filters->ipv4_filter;
87 u32 flags = le32_to_cpu(filt->flags);
113 (filt->flags & cpu_to_le32(SAP_IPV4_FILTER_ARP_REQ_PASS)) &&
114 (filt->ipv4_addr == 0 || filt->ipv4_addr == *target_ip)) {
142 const struct iwl_sap_flex_filter *filt;
144 for (filt = &filters->flex_filters[0];
145 filt < &filters->flex_filters[0] + ARRAY_SIZE(filters->flex_filters);
146 filt++) {
147 if (!(filt->flags & SAP_FLEX_FILTER_ENABLED))
154 if ((filt->flags &
159 if ((filt->flags & SAP_FLEX_FILTER_UDP) &&
163 if ((filt->flags & SAP_FLEX_FILTER_TCP) &&
173 if ((filt->src_port && filt->src_port != udp_hdr(skb)->source) ||
174 (filt->dst_port && filt->dst_port != udp_hdr(skb)->dest))
177 if (filt->flags & SAP_FLEX_FILTER_COPY)
192 const struct iwl_sap_ipv4_filter *filt = &filters->ipv4_filter;
235 if ((filt->flags & cpu_to_le32(SAP_IPV4_FILTER_ICMP_PASS)) &&
237 if (filt->flags & cpu_to_le32(SAP_IPV4_FILTER_ICMP_COPY))