CHANGES IN V1.25.7
+ - cups-browsed: Do not try to resolve the network interface
+ name on Avahi messages which are not interface-related (like
+ "All for now"or "Cache exhausted", Issue #163).
- Build system: The helper script ln-srf to build on systems
with old ln was not included in the release tarballs (Issue
#161).
if (b == NULL)
return;
- /* Get the interface name */
- if (!if_indextoname(interface, ifname)) {
- debug_printf("Unable to find interface name for interface %d: %s\n",
- interface, strerror(errno));
- strncpy(ifname, "Unknown", sizeof(ifname));
- }
-
/* Called whenever a new services becomes available on the LAN or
is removed from the LAN */
if (c == NULL || name == NULL || type == NULL || domain == NULL)
return;
+ /* Get the interface name */
+ if (!if_indextoname(interface, ifname)) {
+ debug_printf("Unable to find interface name for interface %d: %s\n",
+ interface, strerror(errno));
+ strncpy(ifname, "Unknown", sizeof(ifname));
+ }
+
debug_printf("Avahi Browser: NEW: service '%s' of type '%s' in domain '%s' on interface '%s' (%s)\n",
name, type, domain, ifname,
protocol != AVAHI_PROTO_UNSPEC ?
if (name == NULL || type == NULL || domain == NULL)
return;
+ /* Get the interface name */
+ if (!if_indextoname(interface, ifname)) {
+ debug_printf("Unable to find interface name for interface %d: %s\n",
+ interface, strerror(errno));
+ strncpy(ifname, "Unknown", sizeof(ifname));
+ }
+
debug_printf("Avahi Browser: REMOVE: service '%s' of type '%s' in domain '%s' on interface '%s' (%s)\n",
name, type, domain, ifname,
protocol != AVAHI_PROTO_UNSPEC ?