]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Test for EPROTOTYPE not EPROTONOSUPPORT
authorngie <ngie@FreeBSD.org>
Sat, 16 Jan 2016 02:02:50 +0000 (02:02 +0000)
committerngie <ngie@FreeBSD.org>
Sat, 16 Jan 2016 02:02:50 +0000 (02:02 +0000)
commit5df472ad9d7d2cf0556947a98ab052f4a098b40d
treec1d895feb858349b907a878c5c2ae3823d5342ff
parent73b8e753d32c0e36b8aee19f6c8e2d4d6251ec20
Test for EPROTOTYPE not EPROTONOSUPPORT

- `SOCK_RAW` is the implied supported type parameter for socket(2) per route(4)
- localsw in `sys/kern/uipc_usrreq.c` doesn't have an entry for `SOCK_RAW`, so
  the prototype is invalid (this isn't explicitly documented anywhere I could
  find)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
tools/regression/sockets/rtsocket/rtsocket.c
tools/regression/sockets/unix_socket/unix_socket.c