]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/tipc/socket.h
tipc: compensate for double accounting in socket rcv buffer
[mirror_ubuntu-bionic-kernel.git] / net / tipc / socket.h
index 74e5c7f195a660d6a1e88d1b506cf4e7371566f1..86c27cc51e331d39f8ad16e6b6ddf8febcb82171 100644 (file)
  * @port: port - interacts with 'sk' and with the rest of the TIPC stack
  * @peer_name: the peer of the connection, if any
  * @conn_timeout: the time we can wait for an unresponded setup request
+ * @dupl_rcvcnt: number of bytes counted twice, in both backlog and rcv queue
  */
 
 struct tipc_sock {
        struct sock sk;
        struct tipc_port port;
        unsigned int conn_timeout;
+       atomic_t dupl_rcvcnt;
 };
 
 static inline struct tipc_sock *tipc_sk(const struct sock *sk)