diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-12-01 02:16:22 -0500 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-12-01 02:16:22 -0500 |
| commit | 838632438145ac6863377eb12d8b8eef9c55d288 (patch) | |
| tree | fbb0757df837f3c75a99c518a3596c38daef162d /include/net | |
| parent | 9996508b3353063f2d6c48c1a28a84543d72d70b (diff) | |
| parent | 29e553631b2a0d4eebd23db630572e1027a9967a (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/9p/9p.h | 3 | ||||
| -rw-r--r-- | include/net/9p/client.h | 7 | ||||
| -rw-r--r-- | include/net/compat.h | 4 | ||||
| -rw-r--r-- | include/net/inet_connection_sock.h | 6 | ||||
| -rw-r--r-- | include/net/inet_timewait_sock.h | 8 | ||||
| -rw-r--r-- | include/net/ip.h | 6 | ||||
| -rw-r--r-- | include/net/ip_fib.h | 3 | ||||
| -rw-r--r-- | include/net/ipip.h | 8 | ||||
| -rw-r--r-- | include/net/ipv6.h | 4 | ||||
| -rw-r--r-- | include/net/mac80211.h | 8 | ||||
| -rw-r--r-- | include/net/ndisc.h | 2 | ||||
| -rw-r--r-- | include/net/netfilter/nf_conntrack.h | 8 | ||||
| -rw-r--r-- | include/net/netfilter/nf_nat_helper.h | 4 | ||||
| -rw-r--r-- | include/net/sctp/structs.h | 7 | ||||
| -rw-r--r-- | include/net/sock.h | 22 | ||||
| -rw-r--r-- | include/net/tcp.h | 4 | ||||
| -rw-r--r-- | include/net/udp.h | 2 | ||||
| -rw-r--r-- | include/net/wext.h | 1 |
18 files changed, 55 insertions, 52 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index b77c1478c99f..a7fb54808a23 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h | |||
| @@ -38,6 +38,8 @@ | |||
| 38 | * @P9_DEBUG_SLABS: memory management tracing | 38 | * @P9_DEBUG_SLABS: memory management tracing |
| 39 | * @P9_DEBUG_FCALL: verbose dump of protocol messages | 39 | * @P9_DEBUG_FCALL: verbose dump of protocol messages |
| 40 | * @P9_DEBUG_FID: fid allocation/deallocation tracking | 40 | * @P9_DEBUG_FID: fid allocation/deallocation tracking |
| 41 | * @P9_DEBUG_PKT: packet marshalling/unmarshalling | ||
| 42 | * @P9_DEBUG_FSC: FS-cache tracing | ||
| 41 | * | 43 | * |
| 42 | * These flags are passed at mount time to turn on various levels of | 44 | * These flags are passed at mount time to turn on various levels of |
| 43 | * verbosity and tracing which will be output to the system logs. | 45 | * verbosity and tracing which will be output to the system logs. |
| @@ -54,6 +56,7 @@ enum p9_debug_flags { | |||
| 54 | P9_DEBUG_FCALL = (1<<8), | 56 | P9_DEBUG_FCALL = (1<<8), |
| 55 | P9_DEBUG_FID = (1<<9), | 57 | P9_DEBUG_FID = (1<<9), |
| 56 | P9_DEBUG_PKT = (1<<10), | 58 | P9_DEBUG_PKT = (1<<10), |
| 59 | P9_DEBUG_FSC = (1<<11), | ||
| 57 | }; | 60 | }; |
| 58 | 61 | ||
| 59 | #ifdef CONFIG_NET_9P_DEBUG | 62 | #ifdef CONFIG_NET_9P_DEBUG |
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index e26812274b75..fb00b329f0d3 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h | |||
| @@ -159,8 +159,7 @@ struct p9_client { | |||
| 159 | * @qid: the &p9_qid server identifier this handle points to | 159 | * @qid: the &p9_qid server identifier this handle points to |
| 160 | * @iounit: the server reported maximum transaction size for this file | 160 | * @iounit: the server reported maximum transaction size for this file |
| 161 | * @uid: the numeric uid of the local user who owns this handle | 161 | * @uid: the numeric uid of the local user who owns this handle |
| 162 | * @aux: transport specific information (unused?) | 162 | * @rdir: readdir accounting structure (allocated on demand) |
| 163 | * @rdir_fpos: tracks offset of file position when reading directory contents | ||
| 164 | * @flist: per-client-instance fid tracking | 163 | * @flist: per-client-instance fid tracking |
| 165 | * @dlist: per-dentry fid tracking | 164 | * @dlist: per-dentry fid tracking |
| 166 | * | 165 | * |
| @@ -174,9 +173,9 @@ struct p9_fid { | |||
| 174 | struct p9_qid qid; | 173 | struct p9_qid qid; |
| 175 | u32 iounit; | 174 | u32 iounit; |
| 176 | uid_t uid; | 175 | uid_t uid; |
| 177 | void *aux; | ||
| 178 | 176 | ||
| 179 | int rdir_fpos; | 177 | void *rdir; |
| 178 | |||
| 180 | struct list_head flist; | 179 | struct list_head flist; |
| 181 | struct list_head dlist; /* list of all fids attached to a dentry */ | 180 | struct list_head dlist; /* list of all fids attached to a dentry */ |
| 182 | }; | 181 | }; |
diff --git a/include/net/compat.h b/include/net/compat.h index 5bbf8bf9efea..7c3002832d05 100644 --- a/include/net/compat.h +++ b/include/net/compat.h | |||
| @@ -40,8 +40,8 @@ extern int put_cmsg_compat(struct msghdr*, int, int, int, void *); | |||
| 40 | 40 | ||
| 41 | extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *, int); | 41 | extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *, int); |
| 42 | 42 | ||
| 43 | extern int compat_mc_setsockopt(struct sock *, int, int, char __user *, int, | 43 | extern int compat_mc_setsockopt(struct sock *, int, int, char __user *, unsigned int, |
| 44 | int (*)(struct sock *, int, int, char __user *, int)); | 44 | int (*)(struct sock *, int, int, char __user *, unsigned int)); |
| 45 | extern int compat_mc_getsockopt(struct sock *, int, int, char __user *, | 45 | extern int compat_mc_getsockopt(struct sock *, int, int, char __user *, |
| 46 | int __user *, int (*)(struct sock *, int, int, char __user *, | 46 | int __user *, int (*)(struct sock *, int, int, char __user *, |
| 47 | int __user *)); | 47 | int __user *)); |
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index 03cffd9f64e3..696d6e4ce68a 100644 --- a/include/net/inet_connection_sock.h +++ b/include/net/inet_connection_sock.h | |||
| @@ -48,13 +48,13 @@ struct inet_connection_sock_af_ops { | |||
| 48 | u16 net_header_len; | 48 | u16 net_header_len; |
| 49 | u16 sockaddr_len; | 49 | u16 sockaddr_len; |
| 50 | int (*setsockopt)(struct sock *sk, int level, int optname, | 50 | int (*setsockopt)(struct sock *sk, int level, int optname, |
| 51 | char __user *optval, int optlen); | 51 | char __user *optval, unsigned int optlen); |
| 52 | int (*getsockopt)(struct sock *sk, int level, int optname, | 52 | int (*getsockopt)(struct sock *sk, int level, int optname, |
| 53 | char __user *optval, int __user *optlen); | 53 | char __user *optval, int __user *optlen); |
| 54 | #ifdef CONFIG_COMPAT | 54 | #ifdef CONFIG_COMPAT |
| 55 | int (*compat_setsockopt)(struct sock *sk, | 55 | int (*compat_setsockopt)(struct sock *sk, |
| 56 | int level, int optname, | 56 | int level, int optname, |
| 57 | char __user *optval, int optlen); | 57 | char __user *optval, unsigned int optlen); |
| 58 | int (*compat_getsockopt)(struct sock *sk, | 58 | int (*compat_getsockopt)(struct sock *sk, |
| 59 | int level, int optname, | 59 | int level, int optname, |
| 60 | char __user *optval, int __user *optlen); | 60 | char __user *optval, int __user *optlen); |
| @@ -332,5 +332,5 @@ extern void inet_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr); | |||
| 332 | extern int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname, | 332 | extern int inet_csk_compat_getsockopt(struct sock *sk, int level, int optname, |
| 333 | char __user *optval, int __user *optlen); | 333 | char __user *optval, int __user *optlen); |
| 334 | extern int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, | 334 | extern int inet_csk_compat_setsockopt(struct sock *sk, int level, int optname, |
| 335 | char __user *optval, int optlen); | 335 | char __user *optval, unsigned int optlen); |
| 336 | #endif /* _INET_CONNECTION_SOCK_H */ | 336 | #endif /* _INET_CONNECTION_SOCK_H */ |
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index b63b80fac567..f93ad90a601b 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h | |||
| @@ -130,11 +130,11 @@ struct inet_timewait_sock { | |||
| 130 | __u16 tw_num; | 130 | __u16 tw_num; |
| 131 | kmemcheck_bitfield_begin(flags); | 131 | kmemcheck_bitfield_begin(flags); |
| 132 | /* And these are ours. */ | 132 | /* And these are ours. */ |
| 133 | __u8 tw_ipv6only:1, | 133 | unsigned int tw_ipv6only : 1, |
| 134 | tw_transparent:1; | 134 | tw_transparent : 1, |
| 135 | /* 14 bits hole, try to pack */ | 135 | tw_pad : 14, /* 14 bits hole */ |
| 136 | tw_ipv6_offset : 16; | ||
| 136 | kmemcheck_bitfield_end(flags); | 137 | kmemcheck_bitfield_end(flags); |
| 137 | __u16 tw_ipv6_offset; | ||
| 138 | unsigned long tw_ttd; | 138 | unsigned long tw_ttd; |
| 139 | struct inet_bind_bucket *tw_tb; | 139 | struct inet_bind_bucket *tw_tb; |
| 140 | struct hlist_node tw_death_node; | 140 | struct hlist_node tw_death_node; |
diff --git a/include/net/ip.h b/include/net/ip.h index 72c36926c26d..2f47e5482b55 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -381,10 +381,10 @@ extern int ip_options_rcv_srr(struct sk_buff *skb); | |||
| 381 | extern void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb); | 381 | extern void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb); |
| 382 | extern int ip_cmsg_send(struct net *net, | 382 | extern int ip_cmsg_send(struct net *net, |
| 383 | struct msghdr *msg, struct ipcm_cookie *ipc); | 383 | struct msghdr *msg, struct ipcm_cookie *ipc); |
| 384 | extern int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval, int optlen); | 384 | extern int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval, unsigned int optlen); |
| 385 | extern int ip_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen); | 385 | extern int ip_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen); |
| 386 | extern int compat_ip_setsockopt(struct sock *sk, int level, | 386 | extern int compat_ip_setsockopt(struct sock *sk, int level, |
| 387 | int optname, char __user *optval, int optlen); | 387 | int optname, char __user *optval, unsigned int optlen); |
| 388 | extern int compat_ip_getsockopt(struct sock *sk, int level, | 388 | extern int compat_ip_getsockopt(struct sock *sk, int level, |
| 389 | int optname, char __user *optval, int __user *optlen); | 389 | int optname, char __user *optval, int __user *optlen); |
| 390 | extern int ip_ra_control(struct sock *sk, unsigned char on, void (*destructor)(struct sock *)); | 390 | extern int ip_ra_control(struct sock *sk, unsigned char on, void (*destructor)(struct sock *)); |
| @@ -399,7 +399,7 @@ extern void ip_local_error(struct sock *sk, int err, __be32 daddr, __be16 dport, | |||
| 399 | * fed into the routing cache should use these handlers. | 399 | * fed into the routing cache should use these handlers. |
| 400 | */ | 400 | */ |
| 401 | int ipv4_doint_and_flush(ctl_table *ctl, int write, | 401 | int ipv4_doint_and_flush(ctl_table *ctl, int write, |
| 402 | struct file* filp, void __user *buffer, | 402 | void __user *buffer, |
| 403 | size_t *lenp, loff_t *ppos); | 403 | size_t *lenp, loff_t *ppos); |
| 404 | int ipv4_doint_and_flush_strategy(ctl_table *table, | 404 | int ipv4_doint_and_flush_strategy(ctl_table *table, |
| 405 | void __user *oldval, size_t __user *oldlenp, | 405 | void __user *oldval, size_t __user *oldlenp, |
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index ef91fe924ba4..4d22fabc7719 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
| @@ -210,7 +210,8 @@ extern struct fib_table *fib_get_table(struct net *net, u32 id); | |||
| 210 | extern const struct nla_policy rtm_ipv4_policy[]; | 210 | extern const struct nla_policy rtm_ipv4_policy[]; |
| 211 | extern void ip_fib_init(void); | 211 | extern void ip_fib_init(void); |
| 212 | extern int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, | 212 | extern int fib_validate_source(__be32 src, __be32 dst, u8 tos, int oif, |
| 213 | struct net_device *dev, __be32 *spec_dst, u32 *itag); | 213 | struct net_device *dev, __be32 *spec_dst, |
| 214 | u32 *itag, u32 mark); | ||
| 214 | extern void fib_select_default(struct net *net, const struct flowi *flp, | 215 | extern void fib_select_default(struct net *net, const struct flowi *flp, |
| 215 | struct fib_result *res); | 216 | struct fib_result *res); |
| 216 | 217 | ||
diff --git a/include/net/ipip.h b/include/net/ipip.h index 5d3036fa1511..87acf8f3a155 100644 --- a/include/net/ipip.h +++ b/include/net/ipip.h | |||
| @@ -12,7 +12,6 @@ struct ip_tunnel | |||
| 12 | struct ip_tunnel *next; | 12 | struct ip_tunnel *next; |
| 13 | struct net_device *dev; | 13 | struct net_device *dev; |
| 14 | 14 | ||
| 15 | int recursion; /* Depth of hard_start_xmit recursion */ | ||
| 16 | int err_count; /* Number of arrived ICMP errors */ | 15 | int err_count; /* Number of arrived ICMP errors */ |
| 17 | unsigned long err_time; /* Time when the last ICMP error arrived */ | 16 | unsigned long err_time; /* Time when the last ICMP error arrived */ |
| 18 | 17 | ||
| @@ -28,18 +27,11 @@ struct ip_tunnel | |||
| 28 | unsigned int prl_count; /* # of entries in PRL */ | 27 | unsigned int prl_count; /* # of entries in PRL */ |
| 29 | }; | 28 | }; |
| 30 | 29 | ||
| 31 | /* ISATAP: default interval between RS in secondy */ | ||
| 32 | #define IPTUNNEL_RS_DEFAULT_DELAY (900) | ||
| 33 | |||
| 34 | struct ip_tunnel_prl_entry | 30 | struct ip_tunnel_prl_entry |
| 35 | { | 31 | { |
| 36 | struct ip_tunnel_prl_entry *next; | 32 | struct ip_tunnel_prl_entry *next; |
| 37 | __be32 addr; | 33 | __be32 addr; |
| 38 | u16 flags; | 34 | u16 flags; |
| 39 | unsigned long rs_delay; | ||
| 40 | struct timer_list rs_timer; | ||
| 41 | struct ip_tunnel *tunnel; | ||
| 42 | spinlock_t lock; | ||
| 43 | }; | 35 | }; |
| 44 | 36 | ||
| 45 | #define IPTUNNEL_XMIT() do { \ | 37 | #define IPTUNNEL_XMIT() do { \ |
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index ad9a51130254..8c31d8a0c1fe 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
| @@ -550,7 +550,7 @@ extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type); | |||
| 550 | extern int ipv6_setsockopt(struct sock *sk, int level, | 550 | extern int ipv6_setsockopt(struct sock *sk, int level, |
| 551 | int optname, | 551 | int optname, |
| 552 | char __user *optval, | 552 | char __user *optval, |
| 553 | int optlen); | 553 | unsigned int optlen); |
| 554 | extern int ipv6_getsockopt(struct sock *sk, int level, | 554 | extern int ipv6_getsockopt(struct sock *sk, int level, |
| 555 | int optname, | 555 | int optname, |
| 556 | char __user *optval, | 556 | char __user *optval, |
| @@ -559,7 +559,7 @@ extern int compat_ipv6_setsockopt(struct sock *sk, | |||
| 559 | int level, | 559 | int level, |
| 560 | int optname, | 560 | int optname, |
| 561 | char __user *optval, | 561 | char __user *optval, |
| 562 | int optlen); | 562 | unsigned int optlen); |
| 563 | extern int compat_ipv6_getsockopt(struct sock *sk, | 563 | extern int compat_ipv6_getsockopt(struct sock *sk, |
| 564 | int level, | 564 | int level, |
| 565 | int optname, | 565 | int optname, |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 466859b285e1..998c30fc8981 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -1283,6 +1283,12 @@ enum ieee80211_filter_flags { | |||
| 1283 | * | 1283 | * |
| 1284 | * These flags are used with the ampdu_action() callback in | 1284 | * These flags are used with the ampdu_action() callback in |
| 1285 | * &struct ieee80211_ops to indicate which action is needed. | 1285 | * &struct ieee80211_ops to indicate which action is needed. |
| 1286 | * | ||
| 1287 | * Note that drivers MUST be able to deal with a TX aggregation | ||
| 1288 | * session being stopped even before they OK'ed starting it by | ||
| 1289 | * calling ieee80211_start_tx_ba_cb(_irqsafe), because the peer | ||
| 1290 | * might receive the addBA frame and send a delBA right away! | ||
| 1291 | * | ||
| 1286 | * @IEEE80211_AMPDU_RX_START: start Rx aggregation | 1292 | * @IEEE80211_AMPDU_RX_START: start Rx aggregation |
| 1287 | * @IEEE80211_AMPDU_RX_STOP: stop Rx aggregation | 1293 | * @IEEE80211_AMPDU_RX_STOP: stop Rx aggregation |
| 1288 | * @IEEE80211_AMPDU_TX_START: start Tx aggregation | 1294 | * @IEEE80211_AMPDU_TX_START: start Tx aggregation |
| @@ -1669,6 +1675,8 @@ void ieee80211_restart_hw(struct ieee80211_hw *hw); | |||
| 1669 | * to this function and ieee80211_rx_irqsafe() may not be mixed for a | 1675 | * to this function and ieee80211_rx_irqsafe() may not be mixed for a |
| 1670 | * single hardware. | 1676 | * single hardware. |
| 1671 | * | 1677 | * |
| 1678 | * Note that right now, this function must be called with softirqs disabled. | ||
| 1679 | * | ||
| 1672 | * @hw: the hardware this frame came in on | 1680 | * @hw: the hardware this frame came in on |
| 1673 | * @skb: the buffer to receive, owned by mac80211 after this call | 1681 | * @skb: the buffer to receive, owned by mac80211 after this call |
| 1674 | */ | 1682 | */ |
diff --git a/include/net/ndisc.h b/include/net/ndisc.h index 1459ed3e2697..f76f22d05721 100644 --- a/include/net/ndisc.h +++ b/include/net/ndisc.h | |||
| @@ -55,7 +55,6 @@ enum { | |||
| 55 | #include <net/neighbour.h> | 55 | #include <net/neighbour.h> |
| 56 | 56 | ||
| 57 | struct ctl_table; | 57 | struct ctl_table; |
| 58 | struct file; | ||
| 59 | struct inet6_dev; | 58 | struct inet6_dev; |
| 60 | struct net_device; | 59 | struct net_device; |
| 61 | struct net_proto_family; | 60 | struct net_proto_family; |
| @@ -139,7 +138,6 @@ extern int igmp6_event_report(struct sk_buff *skb); | |||
| 139 | #ifdef CONFIG_SYSCTL | 138 | #ifdef CONFIG_SYSCTL |
| 140 | extern int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, | 139 | extern int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, |
| 141 | int write, | 140 | int write, |
| 142 | struct file * filp, | ||
| 143 | void __user *buffer, | 141 | void __user *buffer, |
| 144 | size_t *lenp, | 142 | size_t *lenp, |
| 145 | loff_t *ppos); | 143 | loff_t *ppos); |
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index cbdd6284996d..5cf7270e3ffc 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h | |||
| @@ -255,11 +255,9 @@ static inline bool nf_ct_kill(struct nf_conn *ct) | |||
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | /* These are for NAT. Icky. */ | 257 | /* These are for NAT. Icky. */ |
| 258 | /* Update TCP window tracking data when NAT mangles the packet */ | 258 | extern s16 (*nf_ct_nat_offset)(const struct nf_conn *ct, |
| 259 | extern void nf_conntrack_tcp_update(const struct sk_buff *skb, | 259 | enum ip_conntrack_dir dir, |
| 260 | unsigned int dataoff, | 260 | u32 seq); |
| 261 | struct nf_conn *ct, int dir, | ||
| 262 | s16 offset); | ||
| 263 | 261 | ||
| 264 | /* Fake conntrack entry for untracked connections */ | 262 | /* Fake conntrack entry for untracked connections */ |
| 265 | extern struct nf_conn nf_conntrack_untracked; | 263 | extern struct nf_conn nf_conntrack_untracked; |
diff --git a/include/net/netfilter/nf_nat_helper.h b/include/net/netfilter/nf_nat_helper.h index 237a961f40e1..4222220920a5 100644 --- a/include/net/netfilter/nf_nat_helper.h +++ b/include/net/netfilter/nf_nat_helper.h | |||
| @@ -32,4 +32,8 @@ extern int (*nf_nat_seq_adjust_hook)(struct sk_buff *skb, | |||
| 32 | * to port ct->master->saved_proto. */ | 32 | * to port ct->master->saved_proto. */ |
| 33 | extern void nf_nat_follow_master(struct nf_conn *ct, | 33 | extern void nf_nat_follow_master(struct nf_conn *ct, |
| 34 | struct nf_conntrack_expect *this); | 34 | struct nf_conntrack_expect *this); |
| 35 | |||
| 36 | extern s16 nf_nat_get_offset(const struct nf_conn *ct, | ||
| 37 | enum ip_conntrack_dir dir, | ||
| 38 | u32 seq); | ||
| 35 | #endif | 39 | #endif |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 42d00ced5eb8..0a474568b003 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
| @@ -544,7 +544,7 @@ struct sctp_af { | |||
| 544 | int level, | 544 | int level, |
| 545 | int optname, | 545 | int optname, |
| 546 | char __user *optval, | 546 | char __user *optval, |
| 547 | int optlen); | 547 | unsigned int optlen); |
| 548 | int (*getsockopt) (struct sock *sk, | 548 | int (*getsockopt) (struct sock *sk, |
| 549 | int level, | 549 | int level, |
| 550 | int optname, | 550 | int optname, |
| @@ -554,7 +554,7 @@ struct sctp_af { | |||
| 554 | int level, | 554 | int level, |
| 555 | int optname, | 555 | int optname, |
| 556 | char __user *optval, | 556 | char __user *optval, |
| 557 | int optlen); | 557 | unsigned int optlen); |
| 558 | int (*compat_getsockopt) (struct sock *sk, | 558 | int (*compat_getsockopt) (struct sock *sk, |
| 559 | int level, | 559 | int level, |
| 560 | int optname, | 560 | int optname, |
| @@ -893,7 +893,6 @@ struct sctp_transport { | |||
| 893 | */ | 893 | */ |
| 894 | /* RTO : The current retransmission timeout value. */ | 894 | /* RTO : The current retransmission timeout value. */ |
| 895 | unsigned long rto; | 895 | unsigned long rto; |
| 896 | unsigned long last_rto; | ||
| 897 | 896 | ||
| 898 | __u32 rtt; /* This is the most recent RTT. */ | 897 | __u32 rtt; /* This is the most recent RTT. */ |
| 899 | 898 | ||
| @@ -1980,7 +1979,7 @@ void sctp_assoc_set_primary(struct sctp_association *, | |||
| 1980 | void sctp_assoc_del_nonprimary_peers(struct sctp_association *, | 1979 | void sctp_assoc_del_nonprimary_peers(struct sctp_association *, |
| 1981 | struct sctp_transport *); | 1980 | struct sctp_transport *); |
| 1982 | int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *, | 1981 | int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *, |
| 1983 | gfp_t); | 1982 | sctp_scope_t, gfp_t); |
| 1984 | int sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *, | 1983 | int sctp_assoc_set_bind_addr_from_cookie(struct sctp_association *, |
| 1985 | struct sctp_cookie*, | 1984 | struct sctp_cookie*, |
| 1986 | gfp_t gfp); | 1985 | gfp_t gfp); |
diff --git a/include/net/sock.h b/include/net/sock.h index 950409dcec3d..9f96394f694e 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
| @@ -226,12 +226,12 @@ struct sock { | |||
| 226 | #define sk_prot __sk_common.skc_prot | 226 | #define sk_prot __sk_common.skc_prot |
| 227 | #define sk_net __sk_common.skc_net | 227 | #define sk_net __sk_common.skc_net |
| 228 | kmemcheck_bitfield_begin(flags); | 228 | kmemcheck_bitfield_begin(flags); |
| 229 | unsigned char sk_shutdown : 2, | 229 | unsigned int sk_shutdown : 2, |
| 230 | sk_no_check : 2, | 230 | sk_no_check : 2, |
| 231 | sk_userlocks : 4; | 231 | sk_userlocks : 4, |
| 232 | sk_protocol : 8, | ||
| 233 | sk_type : 16; | ||
| 232 | kmemcheck_bitfield_end(flags); | 234 | kmemcheck_bitfield_end(flags); |
| 233 | unsigned char sk_protocol; | ||
| 234 | unsigned short sk_type; | ||
| 235 | int sk_rcvbuf; | 235 | int sk_rcvbuf; |
| 236 | socket_lock_t sk_lock; | 236 | socket_lock_t sk_lock; |
| 237 | /* | 237 | /* |
| @@ -624,7 +624,7 @@ struct proto { | |||
| 624 | void (*shutdown)(struct sock *sk, int how); | 624 | void (*shutdown)(struct sock *sk, int how); |
| 625 | int (*setsockopt)(struct sock *sk, int level, | 625 | int (*setsockopt)(struct sock *sk, int level, |
| 626 | int optname, char __user *optval, | 626 | int optname, char __user *optval, |
| 627 | int optlen); | 627 | unsigned int optlen); |
| 628 | int (*getsockopt)(struct sock *sk, int level, | 628 | int (*getsockopt)(struct sock *sk, int level, |
| 629 | int optname, char __user *optval, | 629 | int optname, char __user *optval, |
| 630 | int __user *option); | 630 | int __user *option); |
| @@ -632,7 +632,7 @@ struct proto { | |||
| 632 | int (*compat_setsockopt)(struct sock *sk, | 632 | int (*compat_setsockopt)(struct sock *sk, |
| 633 | int level, | 633 | int level, |
| 634 | int optname, char __user *optval, | 634 | int optname, char __user *optval, |
| 635 | int optlen); | 635 | unsigned int optlen); |
| 636 | int (*compat_getsockopt)(struct sock *sk, | 636 | int (*compat_getsockopt)(struct sock *sk, |
| 637 | int level, | 637 | int level, |
| 638 | int optname, char __user *optval, | 638 | int optname, char __user *optval, |
| @@ -951,7 +951,7 @@ extern void sock_rfree(struct sk_buff *skb); | |||
| 951 | 951 | ||
| 952 | extern int sock_setsockopt(struct socket *sock, int level, | 952 | extern int sock_setsockopt(struct socket *sock, int level, |
| 953 | int op, char __user *optval, | 953 | int op, char __user *optval, |
| 954 | int optlen); | 954 | unsigned int optlen); |
| 955 | 955 | ||
| 956 | extern int sock_getsockopt(struct socket *sock, int level, | 956 | extern int sock_getsockopt(struct socket *sock, int level, |
| 957 | int op, char __user *optval, | 957 | int op, char __user *optval, |
| @@ -993,7 +993,7 @@ extern int sock_no_shutdown(struct socket *, int); | |||
| 993 | extern int sock_no_getsockopt(struct socket *, int , int, | 993 | extern int sock_no_getsockopt(struct socket *, int , int, |
| 994 | char __user *, int __user *); | 994 | char __user *, int __user *); |
| 995 | extern int sock_no_setsockopt(struct socket *, int, int, | 995 | extern int sock_no_setsockopt(struct socket *, int, int, |
| 996 | char __user *, int); | 996 | char __user *, unsigned int); |
| 997 | extern int sock_no_sendmsg(struct kiocb *, struct socket *, | 997 | extern int sock_no_sendmsg(struct kiocb *, struct socket *, |
| 998 | struct msghdr *, size_t); | 998 | struct msghdr *, size_t); |
| 999 | extern int sock_no_recvmsg(struct kiocb *, struct socket *, | 999 | extern int sock_no_recvmsg(struct kiocb *, struct socket *, |
| @@ -1015,11 +1015,11 @@ extern int sock_common_getsockopt(struct socket *sock, int level, int optname, | |||
| 1015 | extern int sock_common_recvmsg(struct kiocb *iocb, struct socket *sock, | 1015 | extern int sock_common_recvmsg(struct kiocb *iocb, struct socket *sock, |
| 1016 | struct msghdr *msg, size_t size, int flags); | 1016 | struct msghdr *msg, size_t size, int flags); |
| 1017 | extern int sock_common_setsockopt(struct socket *sock, int level, int optname, | 1017 | extern int sock_common_setsockopt(struct socket *sock, int level, int optname, |
| 1018 | char __user *optval, int optlen); | 1018 | char __user *optval, unsigned int optlen); |
| 1019 | extern int compat_sock_common_getsockopt(struct socket *sock, int level, | 1019 | extern int compat_sock_common_getsockopt(struct socket *sock, int level, |
| 1020 | int optname, char __user *optval, int __user *optlen); | 1020 | int optname, char __user *optval, int __user *optlen); |
| 1021 | extern int compat_sock_common_setsockopt(struct socket *sock, int level, | 1021 | extern int compat_sock_common_setsockopt(struct socket *sock, int level, |
| 1022 | int optname, char __user *optval, int optlen); | 1022 | int optname, char __user *optval, unsigned int optlen); |
| 1023 | 1023 | ||
| 1024 | extern void sk_common_release(struct sock *sk); | 1024 | extern void sk_common_release(struct sock *sk); |
| 1025 | 1025 | ||
diff --git a/include/net/tcp.h b/include/net/tcp.h index 56b76027b85e..03a49c703377 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
| @@ -394,13 +394,13 @@ extern int tcp_getsockopt(struct sock *sk, int level, | |||
| 394 | int __user *optlen); | 394 | int __user *optlen); |
| 395 | extern int tcp_setsockopt(struct sock *sk, int level, | 395 | extern int tcp_setsockopt(struct sock *sk, int level, |
| 396 | int optname, char __user *optval, | 396 | int optname, char __user *optval, |
| 397 | int optlen); | 397 | unsigned int optlen); |
| 398 | extern int compat_tcp_getsockopt(struct sock *sk, | 398 | extern int compat_tcp_getsockopt(struct sock *sk, |
| 399 | int level, int optname, | 399 | int level, int optname, |
| 400 | char __user *optval, int __user *optlen); | 400 | char __user *optval, int __user *optlen); |
| 401 | extern int compat_tcp_setsockopt(struct sock *sk, | 401 | extern int compat_tcp_setsockopt(struct sock *sk, |
| 402 | int level, int optname, | 402 | int level, int optname, |
| 403 | char __user *optval, int optlen); | 403 | char __user *optval, unsigned int optlen); |
| 404 | extern void tcp_set_keepalive(struct sock *sk, int val); | 404 | extern void tcp_set_keepalive(struct sock *sk, int val); |
| 405 | extern int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, | 405 | extern int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, |
| 406 | struct msghdr *msg, | 406 | struct msghdr *msg, |
diff --git a/include/net/udp.h b/include/net/udp.h index 5fb029f817a3..f98abd2ce709 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
| @@ -144,7 +144,7 @@ extern unsigned int udp_poll(struct file *file, struct socket *sock, | |||
| 144 | extern int udp_lib_getsockopt(struct sock *sk, int level, int optname, | 144 | extern int udp_lib_getsockopt(struct sock *sk, int level, int optname, |
| 145 | char __user *optval, int __user *optlen); | 145 | char __user *optval, int __user *optlen); |
| 146 | extern int udp_lib_setsockopt(struct sock *sk, int level, int optname, | 146 | extern int udp_lib_setsockopt(struct sock *sk, int level, int optname, |
| 147 | char __user *optval, int optlen, | 147 | char __user *optval, unsigned int optlen, |
| 148 | int (*push_pending_frames)(struct sock *)); | 148 | int (*push_pending_frames)(struct sock *)); |
| 149 | 149 | ||
| 150 | extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, | 150 | extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, |
diff --git a/include/net/wext.h b/include/net/wext.h index 6d76a39a9c5b..3f2b94de2cfa 100644 --- a/include/net/wext.h +++ b/include/net/wext.h | |||
| @@ -14,6 +14,7 @@ extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cm | |||
| 14 | void __user *arg); | 14 | void __user *arg); |
| 15 | extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, | 15 | extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, |
| 16 | unsigned long arg); | 16 | unsigned long arg); |
| 17 | extern struct iw_statistics *get_wireless_stats(struct net_device *dev); | ||
| 17 | #else | 18 | #else |
| 18 | static inline int wext_proc_init(struct net *net) | 19 | static inline int wext_proc_init(struct net *net) |
| 19 | { | 20 | { |
