From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 24 Dec 2021 10:13:25 +0000 (+0000) Subject: Stop generating an airplay_device_id dynamically. Base it on a fixed MAC address... X-Git-Tag: 4.1-rc1~24^2~325 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e588a2e2c820b26b70ced5a77047323566b7464;p=thirdparty%2Fshairport-sync.git Stop generating an airplay_device_id dynamically. Base it on a fixed MAC address (not necessarily the active one). --- diff --git a/shairport.c b/shairport.c index b6d03087..d866f46a 100644 --- a/shairport.c +++ b/shairport.c @@ -1547,8 +1547,6 @@ int main(int argc, char **argv) { // get a device id -- the first non-local MAC address get_device_id((uint8_t *)&config.hw_addr, 6); - // hack add the PID to get something unique - config.hw_addr[5] += pid & 0xff; // get the endianness union { @@ -1835,7 +1833,7 @@ int main(int argc, char **argv) { // use the start of the config.hw_addr and the PID to generate the airplay_device_id uint64_t apid = nctoh64(config.hw_addr); apid = apid >> 16; // we only use the first 6 bytes but have imported 8. - apid = apid + pid; + // apid = apid + pid; char apids[6*2+5+1]; // six pairs of digits, 5 colons and a NUL apids[6*2+5] = 0; // NUL termination int i;