diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/udp.h | 10 | ||||
| -rw-r--r-- | include/net/ipv6.h | 5 | ||||
| -rw-r--r-- | include/net/netns/ipv6.h | 3 | ||||
| -rw-r--r-- | include/net/tipc/tipc_bearer.h | 9 | ||||
| -rw-r--r-- | include/net/tipc/tipc_port.h | 7 | ||||
| -rw-r--r-- | include/net/transp_v6.h | 5 | ||||
| -rw-r--r-- | include/net/udplite.h | 9 |
7 files changed, 14 insertions, 34 deletions
diff --git a/include/linux/udp.h b/include/linux/udp.h index 4144664d69d9..1e7b7cb5703b 100644 --- a/include/linux/udp.h +++ b/include/linux/udp.h | |||
| @@ -70,10 +70,8 @@ struct udp_sock { | |||
| 70 | #define UDPLITE_BIT 0x1 /* set by udplite proto init function */ | 70 | #define UDPLITE_BIT 0x1 /* set by udplite proto init function */ |
| 71 | #define UDPLITE_SEND_CC 0x2 /* set via udplite setsockopt */ | 71 | #define UDPLITE_SEND_CC 0x2 /* set via udplite setsockopt */ |
| 72 | #define UDPLITE_RECV_CC 0x4 /* set via udplite setsocktopt */ | 72 | #define UDPLITE_RECV_CC 0x4 /* set via udplite setsocktopt */ |
| 73 | #ifdef CONFIG_IP_UDPLITE | ||
| 74 | __u8 pcflag; /* marks socket as UDP-Lite if > 0 */ | 73 | __u8 pcflag; /* marks socket as UDP-Lite if > 0 */ |
| 75 | __u8 unused[3]; | 74 | __u8 unused[3]; |
| 76 | #endif | ||
| 77 | /* | 75 | /* |
| 78 | * For encapsulation sockets. | 76 | * For encapsulation sockets. |
| 79 | */ | 77 | */ |
| @@ -85,15 +83,7 @@ static inline struct udp_sock *udp_sk(const struct sock *sk) | |||
| 85 | return (struct udp_sock *)sk; | 83 | return (struct udp_sock *)sk; |
| 86 | } | 84 | } |
| 87 | 85 | ||
| 88 | #ifdef CONFIG_IP_UDPLITE | ||
| 89 | #define IS_UDPLITE(__sk) (udp_sk(__sk)->pcflag) | 86 | #define IS_UDPLITE(__sk) (udp_sk(__sk)->pcflag) |
| 90 | #define IS_PROTO_UDPLITE(__proto) ((__proto) == IPPROTO_UDPLITE) | ||
| 91 | #define IS_SOL_UDPFAMILY(level) ((level) == SOL_UDP || (level) == SOL_UDPLITE) | ||
| 92 | #else | ||
| 93 | #define IS_UDPLITE(__sk) 0 | ||
| 94 | #define IS_PROTO_UDPLITE(__proto) 0 | ||
| 95 | #define IS_SOL_UDPFAMILY(level) ((level) == SOL_UDP) | ||
| 96 | #endif | ||
| 97 | 87 | ||
| 98 | #endif | 88 | #endif |
| 99 | 89 | ||
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 5f6df50a33a9..8db06af1efbb 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
| @@ -599,13 +599,8 @@ extern int tcp6_proc_init(void); | |||
| 599 | extern void tcp6_proc_exit(void); | 599 | extern void tcp6_proc_exit(void); |
| 600 | extern int udp6_proc_init(void); | 600 | extern int udp6_proc_init(void); |
| 601 | extern void udp6_proc_exit(void); | 601 | extern void udp6_proc_exit(void); |
| 602 | #ifdef CONFIG_IP_UDPLITE | ||
| 603 | extern int udplite6_proc_init(void); | 602 | extern int udplite6_proc_init(void); |
| 604 | extern void udplite6_proc_exit(void); | 603 | extern void udplite6_proc_exit(void); |
| 605 | #else | ||
| 606 | static inline int udplite6_proc_init(void) { return 0; } | ||
| 607 | static inline void udplite6_proc_exit(void) { } | ||
| 608 | #endif | ||
| 609 | extern int ipv6_misc_proc_init(void); | 604 | extern int ipv6_misc_proc_init(void); |
| 610 | extern void ipv6_misc_proc_exit(void); | 605 | extern void ipv6_misc_proc_exit(void); |
| 611 | extern int snmp6_register_dev(struct inet6_dev *idev); | 606 | extern int snmp6_register_dev(struct inet6_dev *idev); |
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 90e6e24df858..ac053be6c256 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h | |||
| @@ -51,5 +51,8 @@ struct netns_ipv6 { | |||
| 51 | struct fib_rules_ops *fib6_rules_ops; | 51 | struct fib_rules_ops *fib6_rules_ops; |
| 52 | #endif | 52 | #endif |
| 53 | struct sock **icmp_sk; | 53 | struct sock **icmp_sk; |
| 54 | struct sock *ndisc_sk; | ||
| 55 | struct sock *tcp_sk; | ||
| 56 | struct sock *igmp_sk; | ||
| 54 | }; | 57 | }; |
| 55 | #endif | 58 | #endif |
diff --git a/include/net/tipc/tipc_bearer.h b/include/net/tipc/tipc_bearer.h index 2151a80cdf30..ee2f304e4919 100644 --- a/include/net/tipc/tipc_bearer.h +++ b/include/net/tipc/tipc_bearer.h | |||
| @@ -99,6 +99,9 @@ struct tipc_bearer { | |||
| 99 | char name[TIPC_MAX_BEARER_NAME]; | 99 | char name[TIPC_MAX_BEARER_NAME]; |
| 100 | }; | 100 | }; |
| 101 | 101 | ||
| 102 | /* | ||
| 103 | * TIPC routines available to supported media types | ||
| 104 | */ | ||
| 102 | 105 | ||
| 103 | int tipc_register_media(u32 media_type, | 106 | int tipc_register_media(u32 media_type, |
| 104 | char *media_name, | 107 | char *media_name, |
| @@ -123,6 +126,12 @@ void tipc_continue(struct tipc_bearer *tb_ptr); | |||
| 123 | int tipc_enable_bearer(const char *bearer_name, u32 bcast_scope, u32 priority); | 126 | int tipc_enable_bearer(const char *bearer_name, u32 bcast_scope, u32 priority); |
| 124 | int tipc_disable_bearer(const char *name); | 127 | int tipc_disable_bearer(const char *name); |
| 125 | 128 | ||
| 129 | /* | ||
| 130 | * Routines made available to TIPC by supported media types | ||
| 131 | */ | ||
| 132 | |||
| 133 | int tipc_eth_media_start(void); | ||
| 134 | void tipc_eth_media_stop(void); | ||
| 126 | 135 | ||
| 127 | #endif | 136 | #endif |
| 128 | 137 | ||
diff --git a/include/net/tipc/tipc_port.h b/include/net/tipc/tipc_port.h index cfc4ba46de8f..c9b36b77a0b9 100644 --- a/include/net/tipc/tipc_port.h +++ b/include/net/tipc/tipc_port.h | |||
| @@ -86,13 +86,6 @@ u32 tipc_createport_raw(void *usr_handle, | |||
| 86 | void (*wakeup)(struct tipc_port *), | 86 | void (*wakeup)(struct tipc_port *), |
| 87 | const u32 importance); | 87 | const u32 importance); |
| 88 | 88 | ||
| 89 | /* | ||
| 90 | * tipc_set_msg_option(): port must be locked. | ||
| 91 | */ | ||
| 92 | int tipc_set_msg_option(struct tipc_port *tp_ptr, | ||
| 93 | const char *opt, | ||
| 94 | const u32 len); | ||
| 95 | |||
| 96 | int tipc_reject_msg(struct sk_buff *buf, u32 err); | 89 | int tipc_reject_msg(struct sk_buff *buf, u32 err); |
| 97 | 90 | ||
| 98 | int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode); | 91 | int tipc_send_buf_fast(struct sk_buff *buf, u32 destnode); |
diff --git a/include/net/transp_v6.h b/include/net/transp_v6.h index 902e6c6bc793..27394e0447d8 100644 --- a/include/net/transp_v6.h +++ b/include/net/transp_v6.h | |||
| @@ -27,13 +27,8 @@ extern int rawv6_init(void); | |||
| 27 | extern void rawv6_exit(void); | 27 | extern void rawv6_exit(void); |
| 28 | extern int udpv6_init(void); | 28 | extern int udpv6_init(void); |
| 29 | extern void udpv6_exit(void); | 29 | extern void udpv6_exit(void); |
| 30 | #ifdef CONFIG_IP_UDPLITE | ||
| 31 | extern int udplitev6_init(void); | 30 | extern int udplitev6_init(void); |
| 32 | extern void udplitev6_exit(void); | 31 | extern void udplitev6_exit(void); |
| 33 | #else | ||
| 34 | static inline int udplitev6_init(void) { return 0; } | ||
| 35 | static inline void udplitev6_exit(void) { } | ||
| 36 | #endif | ||
| 37 | extern int tcpv6_init(void); | 32 | extern int tcpv6_init(void); |
| 38 | extern void tcpv6_exit(void); | 33 | extern void tcpv6_exit(void); |
| 39 | 34 | ||
diff --git a/include/net/udplite.h b/include/net/udplite.h index 01ddb2c20264..b76b2e377af4 100644 --- a/include/net/udplite.h +++ b/include/net/udplite.h | |||
| @@ -25,9 +25,7 @@ static __inline__ int udplite_getfrag(void *from, char *to, int offset, | |||
| 25 | /* Designate sk as UDP-Lite socket */ | 25 | /* Designate sk as UDP-Lite socket */ |
| 26 | static inline int udplite_sk_init(struct sock *sk) | 26 | static inline int udplite_sk_init(struct sock *sk) |
| 27 | { | 27 | { |
| 28 | #ifdef CONFIG_IP_UDPLITE | ||
| 29 | udp_sk(sk)->pcflag = UDPLITE_BIT; | 28 | udp_sk(sk)->pcflag = UDPLITE_BIT; |
| 30 | #endif | ||
| 31 | return 0; | 29 | return 0; |
| 32 | } | 30 | } |
| 33 | 31 | ||
| @@ -71,7 +69,7 @@ static inline int udplite_checksum_init(struct sk_buff *skb, struct udphdr *uh) | |||
| 71 | static inline int udplite_sender_cscov(struct udp_sock *up, struct udphdr *uh) | 69 | static inline int udplite_sender_cscov(struct udp_sock *up, struct udphdr *uh) |
| 72 | { | 70 | { |
| 73 | int cscov = up->len; | 71 | int cscov = up->len; |
| 74 | #ifdef CONFIG_IP_UDPLITE | 72 | |
| 75 | /* | 73 | /* |
| 76 | * Sender has set `partial coverage' option on UDP-Lite socket | 74 | * Sender has set `partial coverage' option on UDP-Lite socket |
| 77 | */ | 75 | */ |
| @@ -95,15 +93,13 @@ static inline int udplite_sender_cscov(struct udp_sock *up, struct udphdr *uh) | |||
| 95 | * illegal, we fall back to the defaults here. | 93 | * illegal, we fall back to the defaults here. |
| 96 | */ | 94 | */ |
| 97 | } | 95 | } |
| 98 | #endif | ||
| 99 | return cscov; | 96 | return cscov; |
| 100 | } | 97 | } |
| 101 | 98 | ||
| 102 | static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb) | 99 | static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb) |
| 103 | { | 100 | { |
| 104 | __wsum csum = 0; | ||
| 105 | #ifdef CONFIG_IP_UDPLITE | ||
| 106 | int cscov = udplite_sender_cscov(udp_sk(sk), udp_hdr(skb)); | 101 | int cscov = udplite_sender_cscov(udp_sk(sk), udp_hdr(skb)); |
| 102 | __wsum csum = 0; | ||
| 107 | 103 | ||
| 108 | skb->ip_summed = CHECKSUM_NONE; /* no HW support for checksumming */ | 104 | skb->ip_summed = CHECKSUM_NONE; /* no HW support for checksumming */ |
| 109 | 105 | ||
| @@ -116,7 +112,6 @@ static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb) | |||
| 116 | if ((cscov -= len) <= 0) | 112 | if ((cscov -= len) <= 0) |
| 117 | break; | 113 | break; |
| 118 | } | 114 | } |
| 119 | #endif | ||
| 120 | return csum; | 115 | return csum; |
| 121 | } | 116 | } |
| 122 | 117 | ||
