X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fnet%2Fdst.h;h=5c98443c1c9ef7eb035616d5815c347be211567b;hb=e1e5314de08ba6003b358125eafc9ad9e75a950c;hp=c7329dcd90cc0637e16fe65eb78246a5d8d21521;hpb=ad1ac94767aa9d74c6533e33e768a14d2715162f;p=deliverable%2Flinux.git diff --git a/include/net/dst.h b/include/net/dst.h index c7329dcd90cc..5c98443c1c9e 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -398,6 +398,18 @@ static inline void skb_tunnel_rx(struct sk_buff *skb, struct net_device *dev, __skb_tunnel_rx(skb, dev, net); } +static inline u32 dst_tclassid(const struct sk_buff *skb) +{ +#ifdef CONFIG_IP_ROUTE_CLASSID + const struct dst_entry *dst; + + dst = skb_dst(skb); + if (dst) + return dst->tclassid; +#endif + return 0; +} + int dst_discard_out(struct net *net, struct sock *sk, struct sk_buff *skb); static inline int dst_discard(struct sk_buff *skb) {