Lines Matching refs:TC_ACT_OK
50 if (is_ethernet && (skb->pkt_type != PACKET_HOST)) return TC_ACT_OK;
53 if (skb->protocol != htons(ETH_P_IPV6)) return TC_ACT_OK;
56 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK;
59 if (is_ethernet && (eth->h_proto != htons(ETH_P_IPV6))) return TC_ACT_OK;
62 if (ip6->version != 6) return TC_ACT_OK;
65 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK;
75 return TC_ACT_OK;
91 if (!v) return TC_ACT_OK;
135 if (bpf_skb_change_proto(skb, htons(ETH_P_IP), 0)) return TC_ACT_OK;
179 return TC_ACT_OK;
196 return TC_ACT_OK;
206 if (skb->protocol != htons(ETH_P_IP)) return TC_ACT_OK;
209 if (data + sizeof(*ip4) > data_end) return TC_ACT_OK;
212 if (ip4->version != 4) return TC_ACT_OK;
215 if (ip4->ihl != 5) return TC_ACT_OK;
226 if (sum4 != 0xFFFF) return TC_ACT_OK;
229 if (ntohs(ip4->tot_len) < sizeof(*ip4)) return TC_ACT_OK;
232 if (ip4->frag_off & ~htons(IP_DF)) return TC_ACT_OK;
241 if (data + sizeof(*ip4) + sizeof(struct udphdr) > data_end) return TC_ACT_OK;
247 if (!uh->check) return TC_ACT_OK;
251 return TC_ACT_OK;
261 if (!v) return TC_ACT_OK;
264 if (!v->oif) return TC_ACT_OK;
267 if (v->oifIsEthernet) return TC_ACT_OK;
293 if (bpf_skb_change_proto(skb, htons(ETH_P_IPV6), 0)) return TC_ACT_OK;