aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/flow.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-11 18:22:00 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:45 -0500
commit806566cc78390b1565ded91712cd28619cea5f57 (patch)
treeff82f281fd8f5a09820e88870e8fdd5199307764 /include/net/flow.h
parent1d28f42c1bd4bb2363d88df74d0128b4da135b4a (diff)
net: Create struct flowi_common
Pull out the AF independent members of struct flowi into a new struct flowi_common Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow.h')
-rw-r--r--include/net/flow.h30
1 files changed, 21 insertions, 9 deletions
diff --git a/include/net/flow.h b/include/net/flow.h
index 8c4dbd078490..775968716b47 100644
--- a/include/net/flow.h
+++ b/include/net/flow.h
@@ -10,18 +10,30 @@
10#include <linux/in6.h> 10#include <linux/in6.h>
11#include <asm/atomic.h> 11#include <asm/atomic.h>
12 12
13struct flowi { 13struct flowi_common {
14 int flowi_oif; 14 int flowic_oif;
15 int flowi_iif; 15 int flowic_iif;
16 __u32 flowi_mark; 16 __u32 flowic_mark;
17 __u8 flowi_tos; 17 __u8 flowic_tos;
18 __u8 flowi_scope; 18 __u8 flowic_scope;
19 __u8 flowi_proto; 19 __u8 flowic_proto;
20 __u8 flowi_flags; 20 __u8 flowic_flags;
21#define FLOWI_FLAG_ANYSRC 0x01 21#define FLOWI_FLAG_ANYSRC 0x01
22#define FLOWI_FLAG_PRECOW_METRICS 0x02 22#define FLOWI_FLAG_PRECOW_METRICS 0x02
23#define FLOWI_FLAG_CAN_SLEEP 0x04 23#define FLOWI_FLAG_CAN_SLEEP 0x04
24 __u32 flowi_secid; 24 __u32 flowic_secid;
25};
26
27struct flowi {
28 struct flowi_common __fl_common;
29#define flowi_oif __fl_common.flowic_oif
30#define flowi_iif __fl_common.flowic_iif
31#define flowi_mark __fl_common.flowic_mark
32#define flowi_tos __fl_common.flowic_tos
33#define flowi_scope __fl_common.flowic_scope
34#define flowi_proto __fl_common.flowic_proto
35#define flowi_flags __fl_common.flowic_flags
36#define flowi_secid __fl_common.flowic_secid
25 37
26 union { 38 union {
27 struct { 39 struct {