]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Don't assume transport address family and size when using it
authorDavid Howells <dhowells@redhat.com>
Thu, 7 Apr 2016 16:23:44 +0000 (17:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2016 19:34:41 +0000 (15:34 -0400)
commit3cb2785e04d94a3c49ecc7abcbc628d24476aa64
tree75ef4a06ea9ef40f1d75dfbc4252f46218fc5364
parentd543038a8f77f2b4242743b90748dfa0738105a0
rxrpc: Don't assume transport address family and size when using it

Don't assume transport address family and size when using the peer address
to send a packet.  Instead, use the start of the transport address rather
than any particular element of the union and use the transport address
length noted inside the sockaddr_rxrpc struct.

This will be necessary when IPv6 support is introduced.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-ack.c
net/rxrpc/ar-connevent.c