]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154/dgram: Pass source address in dgram_recvmsg
authorStephen Röttger <stephen.roettger@zero-entropy.de>
Tue, 26 Mar 2013 12:41:29 +0000 (12:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Mar 2013 04:52:06 +0000 (00:52 -0400)
commiteb43ebfd372b70e52d5468e71e3115dc16980659
tree93c47db3c7df64e46d5db181390b476a4a156fb9
parent3d0cff490d9bf92770e36a14f1a9609ba056a625
ieee802154/dgram: Pass source address in dgram_recvmsg

This patch lets dgram_recvmsg fill in the sockaddr struct in
msg->msg_name with the source address of the packet.
This is used by the userland functions recvmsg and recvfrom to get the
senders address.

[Stefan: Changed from old zigbee legacy tree to mainline]

Signed-off-by: Stephen Röttger <stephen.roettger@zero-entropy.de>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/dgram.c