aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/inet_connection_sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/inet_connection_sock.h')
-rw-r--r--include/net/inet_connection_sock.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h
index 0bcf9f237e1f..bf16d98d372c 100644
--- a/include/net/inet_connection_sock.h
+++ b/include/net/inet_connection_sock.h
@@ -18,6 +18,7 @@
18#include <linux/compiler.h> 18#include <linux/compiler.h>
19#include <linux/string.h> 19#include <linux/string.h>
20#include <linux/timer.h> 20#include <linux/timer.h>
21#include <linux/poll.h>
21 22
22#include <net/inet_sock.h> 23#include <net/inet_sock.h>
23#include <net/request_sock.h> 24#include <net/request_sock.h>
@@ -36,7 +37,8 @@ struct tcp_congestion_ops;
36 * (i.e. things that depend on the address family) 37 * (i.e. things that depend on the address family)
37 */ 38 */
38struct inet_connection_sock_af_ops { 39struct inet_connection_sock_af_ops {
39 int (*queue_xmit)(struct sk_buff *skb, int ipfragok); 40 int (*queue_xmit)(struct sk_buff *skb, struct sock *sk,
41 int ipfragok);
40 void (*send_check)(struct sock *sk, int len, 42 void (*send_check)(struct sock *sk, int len,
41 struct sk_buff *skb); 43 struct sk_buff *skb);
42 int (*rebuild_header)(struct sock *sk); 44 int (*rebuild_header)(struct sock *sk);
@@ -45,7 +47,8 @@ struct inet_connection_sock_af_ops {
45 struct request_sock *req, 47 struct request_sock *req,
46 struct dst_entry *dst); 48 struct dst_entry *dst);
47 int (*remember_stamp)(struct sock *sk); 49 int (*remember_stamp)(struct sock *sk);
48 __u16 net_header_len; 50 u16 net_header_len;
51 u16 sockaddr_len;
49 int (*setsockopt)(struct sock *sk, int level, int optname, 52 int (*setsockopt)(struct sock *sk, int level, int optname,
50 char __user *optval, int optlen); 53 char __user *optval, int optlen);
51 int (*getsockopt)(struct sock *sk, int level, int optname, 54 int (*getsockopt)(struct sock *sk, int level, int optname,
@@ -57,7 +60,6 @@ struct inet_connection_sock_af_ops {
57 int level, int optname, 60 int level, int optname,
58 char __user *optval, int __user *optlen); 61 char __user *optval, int __user *optlen);
59 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *); 62 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *);
60 int sockaddr_len;
61}; 63};
62 64
63/** inet_connection_sock - INET connection oriented sock 65/** inet_connection_sock - INET connection oriented sock