mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 14:48:20 +00:00
vfs_lxip: always allow broadcast packets for UDP
This commit is contained in:
@ -1011,6 +1011,12 @@ class Vfs::Lxip_new_socket_file : public Vfs::File
|
|||||||
}
|
}
|
||||||
set_sock_wait(sock, 0);
|
set_sock_wait(sock, 0);
|
||||||
|
|
||||||
|
/* XXX always allow UDP broadcast */
|
||||||
|
if (type == SOCK_DGRAM) {
|
||||||
|
int enable = 1;
|
||||||
|
sock_setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (char *)&enable, sizeof(enable));
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
unsigned const id = _parent.adopt_socket(*sock, false);
|
unsigned const id = _parent.adopt_socket(*sock, false);
|
||||||
return Genode::snprintf(dst, len, "%s/%u\n", _parent.top_dir(), id);
|
return Genode::snprintf(dst, len, "%s/%u\n", _parent.top_dir(), id);
|
||||||
|
Reference in New Issue
Block a user