Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae authored by Linus Torvalds on 22 November 2013, 19:30:55 UTC
Linux 3.13-rc1
Tip revision: 6ce4eac
flow_keys.h
#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];
	};
	u16 thoff;
	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);
#endif
back to top