Esempio n. 1
0
static inline void *load_pointer(const struct sk_buff *skb, int k,
				 unsigned int size, void *buffer)
{
	if (k >= 0)
		return skb_header_pointer(skb, k, size, buffer);
	return __load_pointer(skb, k, size);
}
Esempio n. 2
0
static inline void *load_pointer(struct sk_buff *skb, int k,
                                 unsigned int size, void *buffer)
{
    if (k >= 0)
        return skb_header_pointer(skb, k, size, buffer);
    else {
        if (k >= SKF_AD_OFF)
            return NULL;
        return __load_pointer(skb, k);
    }
}