mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
wifi_drv: ignore socket flags on socket creation
The libc features support for SOCK_CLOEXEC now which gets set via the type argument in 'libnl'. Since we are only interested in the actual type, i.e. if it is SOCK_RAW, just ignore the flags. Issue #3289.
This commit is contained in:
parent
a71253fa58
commit
d223539165
@ -440,7 +440,7 @@ Wifi::Socket *Socket_call::socket(int domain, int type, int protocol)
|
||||
/* FIXME domain, type, protocol values */
|
||||
_call.opcode = Call::SOCKET;
|
||||
_call.socket.domain = domain;
|
||||
_call.socket.type = type;
|
||||
_call.socket.type = type & 0xff;
|
||||
_call.socket.protocol = protocol;
|
||||
|
||||
_socket->submit_and_block();
|
||||
|
Loading…
x
Reference in New Issue
Block a user