Skip to content

Commit

Permalink
darwin: WIP change subnet in multicast join
Browse files Browse the repository at this point in the history
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
  • Loading branch information
juanarbol committed Feb 13, 2024
1 parent 7b9e37c commit 494e000
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test-udp-multicast-join.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@
#define CHECK_HANDLE(handle) \
ASSERT_NE((uv_udp_t*)(handle) == &server || (uv_udp_t*)(handle) == &client, 0)

/* Use 224.0.0.x subnet for MAC OS 13.0 and above
* Refs https://github.com/libuv/libuv/issues/4263
*/
#if defined(__APPLE__) && defined(MAC_OS_VERSION_13_0)
#define MULTICAST_ADDR "224.0.0.9"
#else
#define MULTICAST_ADDR "239.255.0.1"
#endif

static uv_udp_t server;
static uv_udp_t client;
Expand Down

0 comments on commit 494e000

Please sign in to comment.