diff options
| author | Phoebe Buckheister <[email protected]> | 2014-05-14 15:43:10 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-05-15 19:51:43 +0000 |
| commit | 1cc76e365405eae54a15e86b5d75ee885cd7d891 (patch) | |
| tree | 0870bee3e462afd904eceb63e832aae521978931 /net/unix/af_unix.c | |
| parent | 6lowpan: fix fragmentation (diff) | |
| download | kernel-1cc76e365405eae54a15e86b5d75ee885cd7d891.tar.gz kernel-1cc76e365405eae54a15e86b5d75ee885cd7d891.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
