]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/net/tcp.h
tcp: constify tcp_openreq_init_rwin()
[mirror_ubuntu-zesty-kernel.git] / include / net / tcp.h
index 5cf9672c13e216472970688086600aeaa61c6064..d37ad0c3ea9c0b204fe7fc7a18831b2cd8ca15da 100644 (file)
@@ -1207,7 +1207,8 @@ static inline int tcp_full_space(const struct sock *sk)
 }
 
 extern void tcp_openreq_init_rwin(struct request_sock *req,
-                                 struct sock *sk, struct dst_entry *dst);
+                                 const struct sock *sk_listener,
+                                 const struct dst_entry *dst);
 
 void tcp_enter_memory_pressure(struct sock *sk);
 
@@ -1705,7 +1706,8 @@ struct tcp_request_sock_ops {
                                          const struct sock *sk,
                                          const struct sk_buff *skb);
 #endif
-       void (*init_req)(struct request_sock *req, struct sock *sk,
+       void (*init_req)(struct request_sock *req,
+                        const struct sock *sk_listener,
                         struct sk_buff *skb);
 #ifdef CONFIG_SYN_COOKIES
        __u32 (*cookie_init_seq)(struct sock *sk, const struct sk_buff *skb,