M7350/external/compat-wireless/include/net/flow_keys.h

22 lines
415 B
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0))
#include_next <net/flow_keys.h>
#else
#ifndef _NET_FLOW_KEYS_H
#define _NET_FLOW_KEYS_H
struct flow_keys {
/* (src,dst) must be grouped, in the same way than in IP header */
__be32 src;
__be32 dst;
union {
__be32 ports;
__be16 port16[2];
};
u8 ip_proto;
};
extern bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow);
#endif
#endif