diff options
Diffstat (limited to 'net/tipc/socket.h')
| -rw-r--r-- | net/tipc/socket.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/socket.h b/net/tipc/socket.h index 74e5c7f195a6..3afcd2a70b31 100644 --- a/net/tipc/socket.h +++ b/net/tipc/socket.h | |||
| @@ -44,12 +44,14 @@ | |||
| 44 | * @port: port - interacts with 'sk' and with the rest of the TIPC stack | 44 | * @port: port - interacts with 'sk' and with the rest of the TIPC stack |
| 45 | * @peer_name: the peer of the connection, if any | 45 | * @peer_name: the peer of the connection, if any |
| 46 | * @conn_timeout: the time we can wait for an unresponded setup request | 46 | * @conn_timeout: the time we can wait for an unresponded setup request |
| 47 | * @dupl_rcvcnt: number of bytes counted twice, in both backlog and rcv queue | ||
| 47 | */ | 48 | */ |
| 48 | 49 | ||
| 49 | struct tipc_sock { | 50 | struct tipc_sock { |
| 50 | struct sock sk; | 51 | struct sock sk; |
| 51 | struct tipc_port port; | 52 | struct tipc_port port; |
| 52 | unsigned int conn_timeout; | 53 | unsigned int conn_timeout; |
| 54 | atomic_t dupl_rcvcnt; | ||
| 53 | }; | 55 | }; |
| 54 | 56 | ||
| 55 | static inline struct tipc_sock *tipc_sk(const struct sock *sk) | 57 | static inline struct tipc_sock *tipc_sk(const struct sock *sk) |
| @@ -67,6 +69,6 @@ static inline void tipc_sock_wakeup(struct tipc_sock *tsk) | |||
| 67 | tsk->sk.sk_write_space(&tsk->sk); | 69 | tsk->sk.sk_write_space(&tsk->sk); |
| 68 | } | 70 | } |
| 69 | 71 | ||
| 70 | u32 tipc_sk_rcv(struct sock *sk, struct sk_buff *buf); | 72 | int tipc_sk_rcv(struct sk_buff *buf); |
| 71 | 73 | ||
| 72 | #endif | 74 | #endif |
