Toke Høiland-Jørgensen <t...@toke.dk> writes: > +static inline struct tcphdr *cake_get_tcphdr(struct sk_buff *skb) > +{ > + struct ipv6hdr *ipv6h; > + struct iphdr *iph; > + struct tcphdr *th; > + > + > + switch (skb->protocol) { > + case cpu_to_be16(ETH_P_IP):
As someone was kind enough to point out off-list, skb->protocol doesn't actually contain the protocol number of the inner protocol, so this doesn't work for 6in4 encapsulation. Will try again... -Toke