]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/net/inet_connection_sock.h
tcp/dccp: constify syn_recv_sock() method sock argument
[mirror_ubuntu-bionic-kernel.git] / include / net / inet_connection_sock.h
index 187cef7e56d509fcd05c04e858fe610474f20fe7..ee54f21a8113a1805052eb9c5d952a23d1006962 100644 (file)
@@ -41,7 +41,7 @@ struct inet_connection_sock_af_ops {
        int         (*rebuild_header)(struct sock *sk);
        void        (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb);
        int         (*conn_request)(struct sock *sk, struct sk_buff *skb);
-       struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb,
+       struct sock *(*syn_recv_sock)(const struct sock *sk, struct sk_buff *skb,
                                      struct request_sock *req,
                                      struct dst_entry *dst);
        u16         net_header_len;