]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
inet: split inet_csk_get_port into two functions
authorJosef Bacik <jbacik@fb.com>
Tue, 17 Jan 2017 15:51:05 +0000 (07:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 18:04:29 +0000 (13:04 -0500)
commit289141b7688b71dc69b8d7a54bf67a4d7bc79f96
treedf22cd8d2bbcae0ed5c372d634aa61b38cf77cd6
parent6cd66616834c89b8a6c8a182c4c99e5478cf6d6b
inet: split inet_csk_get_port into two functions

inet_csk_get_port does two different things, it either scans for an open port,
or it tries to see if the specified port is available for use.  Since these two
operations have different rules and are basically independent lets split them
into two different functions to make them both more readable.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c