diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/netns/ipv4.h | 2 | ||||
| -rw-r--r-- | include/net/protocol.h | 7 | ||||
| -rw-r--r-- | include/net/udp.h | 1 |
3 files changed, 7 insertions, 3 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index a0e89190a3e9..cd686c4fb32d 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
| @@ -95,6 +95,8 @@ struct netns_ipv4 { | |||
| 95 | /* Shall we try to damage output packets if routing dev changes? */ | 95 | /* Shall we try to damage output packets if routing dev changes? */ |
| 96 | int sysctl_ip_dynaddr; | 96 | int sysctl_ip_dynaddr; |
| 97 | int sysctl_ip_early_demux; | 97 | int sysctl_ip_early_demux; |
| 98 | int sysctl_tcp_early_demux; | ||
| 99 | int sysctl_udp_early_demux; | ||
| 98 | 100 | ||
| 99 | int sysctl_fwmark_reflect; | 101 | int sysctl_fwmark_reflect; |
| 100 | int sysctl_tcp_fwmark_accept; | 102 | int sysctl_tcp_fwmark_accept; |
diff --git a/include/net/protocol.h b/include/net/protocol.h index bf36ca34af7a..65ba335b0e7e 100644 --- a/include/net/protocol.h +++ b/include/net/protocol.h | |||
| @@ -40,6 +40,7 @@ | |||
| 40 | /* This is used to register protocols. */ | 40 | /* This is used to register protocols. */ |
| 41 | struct net_protocol { | 41 | struct net_protocol { |
| 42 | void (*early_demux)(struct sk_buff *skb); | 42 | void (*early_demux)(struct sk_buff *skb); |
| 43 | void (*early_demux_handler)(struct sk_buff *skb); | ||
| 43 | int (*handler)(struct sk_buff *skb); | 44 | int (*handler)(struct sk_buff *skb); |
| 44 | void (*err_handler)(struct sk_buff *skb, u32 info); | 45 | void (*err_handler)(struct sk_buff *skb, u32 info); |
| 45 | unsigned int no_policy:1, | 46 | unsigned int no_policy:1, |
| @@ -54,7 +55,7 @@ struct net_protocol { | |||
| 54 | #if IS_ENABLED(CONFIG_IPV6) | 55 | #if IS_ENABLED(CONFIG_IPV6) |
| 55 | struct inet6_protocol { | 56 | struct inet6_protocol { |
| 56 | void (*early_demux)(struct sk_buff *skb); | 57 | void (*early_demux)(struct sk_buff *skb); |
| 57 | 58 | void (*early_demux_handler)(struct sk_buff *skb); | |
| 58 | int (*handler)(struct sk_buff *skb); | 59 | int (*handler)(struct sk_buff *skb); |
| 59 | 60 | ||
| 60 | void (*err_handler)(struct sk_buff *skb, | 61 | void (*err_handler)(struct sk_buff *skb, |
| @@ -92,12 +93,12 @@ struct inet_protosw { | |||
| 92 | #define INET_PROTOSW_PERMANENT 0x02 /* Permanent protocols are unremovable. */ | 93 | #define INET_PROTOSW_PERMANENT 0x02 /* Permanent protocols are unremovable. */ |
| 93 | #define INET_PROTOSW_ICSK 0x04 /* Is this an inet_connection_sock? */ | 94 | #define INET_PROTOSW_ICSK 0x04 /* Is this an inet_connection_sock? */ |
| 94 | 95 | ||
| 95 | extern const struct net_protocol __rcu *inet_protos[MAX_INET_PROTOS]; | 96 | extern struct net_protocol __rcu *inet_protos[MAX_INET_PROTOS]; |
| 96 | extern const struct net_offload __rcu *inet_offloads[MAX_INET_PROTOS]; | 97 | extern const struct net_offload __rcu *inet_offloads[MAX_INET_PROTOS]; |
| 97 | extern const struct net_offload __rcu *inet6_offloads[MAX_INET_PROTOS]; | 98 | extern const struct net_offload __rcu *inet6_offloads[MAX_INET_PROTOS]; |
| 98 | 99 | ||
| 99 | #if IS_ENABLED(CONFIG_IPV6) | 100 | #if IS_ENABLED(CONFIG_IPV6) |
| 100 | extern const struct inet6_protocol __rcu *inet6_protos[MAX_INET_PROTOS]; | 101 | extern struct inet6_protocol __rcu *inet6_protos[MAX_INET_PROTOS]; |
| 101 | #endif | 102 | #endif |
| 102 | 103 | ||
| 103 | int inet_add_protocol(const struct net_protocol *prot, unsigned char num); | 104 | int inet_add_protocol(const struct net_protocol *prot, unsigned char num); |
diff --git a/include/net/udp.h b/include/net/udp.h index c9d8b8e848e0..3391dbd73959 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
| @@ -372,4 +372,5 @@ void udp_encap_enable(void); | |||
| 372 | #if IS_ENABLED(CONFIG_IPV6) | 372 | #if IS_ENABLED(CONFIG_IPV6) |
| 373 | void udpv6_encap_enable(void); | 373 | void udpv6_encap_enable(void); |
| 374 | #endif | 374 | #endif |
| 375 | |||
| 375 | #endif /* _UDP_H */ | 376 | #endif /* _UDP_H */ |
