1 # This patch fixes the avahi service propagation.
2 # It changes the propagated port from 0 to 9, making, e.g.
3 # timecapsule advertisement with MacOS working again.
4 # Nevertheless, there is no communication done over that port.
7 --- samba-4.21.0/source3/smbd/avahi_register.c.old 2024-09-19 12:39:33.000000000 +0200
8 +++ samba-4.21.0/source3/smbd/avahi_register.c 2024-09-19 12:41:02.000000000 +0200
10 error = avahi_entry_group_add_service_strlst(
11 state->entry_group, AVAHI_IF_UNSPEC,
12 AVAHI_PROTO_UNSPEC, 0, hostname,
13 - "_adisk._tcp", NULL, NULL, 0, adisk);
14 + "_adisk._tcp", NULL, NULL, 9, adisk);
15 avahi_string_list_free(adisk);
17 if (error != AVAHI_OK) {
19 error = avahi_entry_group_add_service_strlst(
20 state->entry_group, AVAHI_IF_UNSPEC,
21 AVAHI_PROTO_UNSPEC, 0, hostname,
22 - "_device-info._tcp", NULL, NULL, 0,
23 + "_device-info._tcp", NULL, NULL, 9,
25 avahi_string_list_free(dinfo);
26 if (error != AVAHI_OK) {