]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/net/inet_connection_sock.h
inet: Fix get port to handle zero port number with soreuseport set
[mirror_ubuntu-bionic-kernel.git] / include / net / inet_connection_sock.h
index 146054ceea8e0566f79739b1ed115dea53423258..85ee3879499ebc4ebd63a59b2c425918858154c6 100644 (file)
@@ -63,7 +63,8 @@ struct inet_connection_sock_af_ops {
 #endif
        void        (*addr2sockaddr)(struct sock *sk, struct sockaddr *);
        int         (*bind_conflict)(const struct sock *sk,
-                                    const struct inet_bind_bucket *tb, bool relax);
+                                    const struct inet_bind_bucket *tb,
+                                    bool relax, bool soreuseport_ok);
        void        (*mtu_reduced)(struct sock *sk);
 };
 
@@ -261,7 +262,8 @@ inet_csk_rto_backoff(const struct inet_connection_sock *icsk,
 struct sock *inet_csk_accept(struct sock *sk, int flags, int *err);
 
 int inet_csk_bind_conflict(const struct sock *sk,
-                          const struct inet_bind_bucket *tb, bool relax);
+                          const struct inet_bind_bucket *tb, bool relax,
+                          bool soreuseport_ok);
 int inet_csk_get_port(struct sock *sk, unsigned short snum);
 
 struct dst_entry *inet_csk_route_req(const struct sock *sk, struct flowi4 *fl4,