Files
linux-apfs/include/net/flow_keys.h
T

19 lines
402 B
C
Raw Normal View History

2011-11-28 05:22:18 +00:00
#ifndef _NET_FLOW_KEYS_H
#define _NET_FLOW_KEYS_H
struct flow_keys {
2011-11-28 20:30:35 +00:00
/* (src,dst) must be grouped, in the same way than in IP header */
2011-11-28 05:22:18 +00:00
__be32 src;
__be32 dst;
union {
__be32 ports;
__be16 port16[2];
};
u16 thoff;
2011-11-28 05:22:18 +00:00
u8 ip_proto;
};
bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow);
__be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto);
2011-11-28 05:22:18 +00:00
#endif