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)
commit6364e6ee788ae60f1c2de5c59e39adb157327e6c
tree93c47db3c7df64e46d5db181390b476a4a156fb9
parent5abb0029c8df0312c6095e7a336d2b80ea358e77
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