mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-04 23:05:15 +00:00
aplay/mixer: sockadr cmp: check also IPv6 scope ID
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
#include "audio/audio_playback.h"
|
||||
#include "audio/codec.h"
|
||||
#include "audio/types.h"
|
||||
#include "compat/net.h" // for sockaddr_in, sockaddr_in6, in6_addr
|
||||
#include "compat/net.h" // for sockaddr_in, sockaddr_in6, in6_addr...
|
||||
#include "debug.h"
|
||||
#include "host.h" // for get_commandline_param, uv_argv
|
||||
#include "lib_common.h"
|
||||
@@ -115,6 +115,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (IN6_IS_ADDR_LINKLOCAL(&sin_x.sin6_addr) &&
|
||||
sin_x.sin6_scope_id != sin_y.sin6_scope_id) {
|
||||
return sin_x.sin6_scope_id < sin_y.sin6_scope_id;
|
||||
}
|
||||
|
||||
return sin_x.sin6_port < sin_y.sin6_port;
|
||||
}
|
||||
abort();
|
||||
|
||||
Reference in New Issue
Block a user