Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSchinazi committed Jan 12, 2025
1 parent 6c8bf09 commit ec6875b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jazzlights/network/unix_udp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ bool UnixUdpNetwork::setupSockets() {
jll_error("Skipping interface without data \"%s\"", ifa->ifa_name);
continue;
}
// This code relies on the assumption that the list from getifaddrs() always contains an interface-level entry
// before the address-level entry for that interface, and that the entries are grouped by interface.
#if defined(__APPLE__)
if (ifa->ifa_addr->sa_family == AF_LINK) {
ifIndex = reinterpret_cast<struct sockaddr_dl*>(ifa->ifa_addr)->sdl_index;
Expand Down

0 comments on commit ec6875b

Please sign in to comment.