af_iucv: Add automatic (source) iucv_name to bind
authorPhilipp Hachtmann <phacht@linux.vnet.ibm.com>
Wed, 28 May 2014 08:22:28 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 May 2014 00:35:23 +0000 (17:35 -0700)
commit53a4b4995edc1b9eddf6cee342479f86cbae4337
treef070b61d0413ae5ac205edd4399906510adac3a6
parent078252e0e877b50fcd42d3bd0d112f1f7c8518e8
af_iucv: Add automatic (source) iucv_name to bind

If a socket is bound to an address using before calling connect
it is usual to leave it to the network system to choose an appropriate
outgoing application name respective port address.
af_iucv on VM uses a counter and uses simple numbers as unique identifiers.
This behaviour was missing when af_iucv is used with HiperSockets.

This patch contains a simple approach to harmonize af_iucv's behaviour.

Signed-off-by: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c