2009-12-02 18:56:36 -08:00
|
|
|
#ifndef __NET_DST_WRAPPER_H
|
|
|
|
|
#define __NET_DST_WRAPPER_H 1
|
|
|
|
|
|
2012-03-23 10:50:08 -07:00
|
|
|
#include <linux/version.h>
|
2009-12-02 18:56:36 -08:00
|
|
|
#include_next <net/dst.h>
|
|
|
|
|
|
2012-03-23 10:50:08 -07:00
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) && \
|
|
|
|
|
LINUX_VERSION_CODE > KERNEL_VERSION(3,0,20)
|
|
|
|
|
|
|
|
|
|
#define dst_get_neighbour_noref dst_get_neighbour
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-05-17 13:57:29 -07:00
|
|
|
#ifndef HAVE_SKB_DST_ACCESSOR_FUNCS
|
2009-12-02 18:56:36 -08:00
|
|
|
|
|
|
|
|
static inline void skb_dst_drop(struct sk_buff *skb)
|
|
|
|
|
{
|
|
|
|
|
if (skb->dst)
|
|
|
|
|
dst_release(skb_dst(skb));
|
2011-01-12 09:49:44 -08:00
|
|
|
skb->dst = NULL;
|
2009-12-02 18:56:36 -08:00
|
|
|
}
|
|
|
|
|
|
2010-05-17 13:57:29 -07:00
|
|
|
#endif
|
2009-12-02 18:56:36 -08:00
|
|
|
|
|
|
|
|
#endif
|