From: Phoebe Buckheister Date: Wed, 14 May 2014 15:43:10 +0000 (+0200) Subject: ieee802154: fix dgram socket sendmsg() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~220^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cc76e365405eae54a15e86b5d75ee885cd7d891;p=pandora-kernel.git ieee802154: fix dgram socket sendmsg() 802.15.4 datagram sockets do not currently have a compliant sendmsg(). The destination address supplied is always ignored, and in unconnected mode, packets are broadcast instead of dropped with -EDESTADDRREQ. This patch fixes 802.15.4 dgram sockets to be compliant, i.e. !conn && !msg_name => -EDESTADDRREQ !conn && msg_name => send to msg_name conn && !msg_name => send to connected conn && msg_name => -EISCONN Signed-off-by: Phoebe Buckheister Signed-off-by: David S. Miller --- Reading git-diff-tree failed