]> asedeno.scripts.mit.edu Git - linux.git/commit
RDS: TCP: report addr/port info based on TCP socket in rds-info
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Fri, 4 Nov 2016 17:04:11 +0000 (10:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2016 17:47:49 +0000 (12:47 -0500)
commit1ac507d4ffbff578c388e85f9637dca19ff07b95
tree6eb6081d9893891caf8dd5928a8418368be2c982
parentf5f99309fa7481f59a500f0d08f3379cd6424c1f
RDS: TCP: report addr/port info based on TCP socket in rds-info

The socket argument passed to rds_tcp_tc_info() is a PF_RDS socket,
so it is incorrect to report the address port info based on
rds_getname() as part of TCP state report.

Invoke inet_getname() for the t_sock associated with the
rds_tcp_connection instead.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c