diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-10-09 15:20:05 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-10-09 15:20:05 -0400 |
commit | db8c246937713e60b7628661ccc187eeb81f2bae (patch) | |
tree | 6351e8bca23eef40fce85396d1c6f6cfffbd4b66 /include/net/protocol.h | |
parent | c5f66e99b7cb091e3d51ae8e8156892e8feb7fa3 (diff) | |
parent | 28f2b02bc581ffc835bc1691b18d03f62fcf0395 (diff) |
Merge branch 'fortglx/3.7/time' of git://git.linaro.org/people/jstultz/linux into timers/core
Diffstat (limited to 'include/net/protocol.h')
-rw-r--r-- | include/net/protocol.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h index 875f4895b033..929528c73fe8 100644 --- a/include/net/protocol.h +++ b/include/net/protocol.h | |||
@@ -29,11 +29,15 @@ | |||
29 | #include <linux/ipv6.h> | 29 | #include <linux/ipv6.h> |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #define MAX_INET_PROTOS 256 /* Must be a power of 2 */ | 32 | /* This is one larger than the largest protocol value that can be |
33 | 33 | * found in an ipv4 or ipv6 header. Since in both cases the protocol | |
34 | * value is presented in a __u8, this is defined to be 256. | ||
35 | */ | ||
36 | #define MAX_INET_PROTOS 256 | ||
34 | 37 | ||
35 | /* This is used to register protocols. */ | 38 | /* This is used to register protocols. */ |
36 | struct net_protocol { | 39 | struct net_protocol { |
40 | void (*early_demux)(struct sk_buff *skb); | ||
37 | int (*handler)(struct sk_buff *skb); | 41 | int (*handler)(struct sk_buff *skb); |
38 | void (*err_handler)(struct sk_buff *skb, u32 info); | 42 | void (*err_handler)(struct sk_buff *skb, u32 info); |
39 | int (*gso_send_check)(struct sk_buff *skb); | 43 | int (*gso_send_check)(struct sk_buff *skb); |
@@ -48,6 +52,8 @@ struct net_protocol { | |||
48 | 52 | ||
49 | #if IS_ENABLED(CONFIG_IPV6) | 53 | #if IS_ENABLED(CONFIG_IPV6) |
50 | struct inet6_protocol { | 54 | struct inet6_protocol { |
55 | void (*early_demux)(struct sk_buff *skb); | ||
56 | |||
51 | int (*handler)(struct sk_buff *skb); | 57 | int (*handler)(struct sk_buff *skb); |
52 | 58 | ||
53 | void (*err_handler)(struct sk_buff *skb, | 59 | void (*err_handler)(struct sk_buff *skb, |