Re: [avahi] Is it possible to customize #define AVAHI_DEFAULT_TTL_HOST_NAME and #define AVAHI_DEFAULT_TTL, rather than embedding them statically in the code?

2012-07-10 Thread Patrick Oppenlander
On Tue, Jul 10, 2012 at 4:55 AM, Patrick Oppenlander pattyo.li...@gmail.com mailto:pattyo.li...@gmail.com wrote: On 05/07/12 20:19, Ajay Garg wrote: Hi all. I ran into a issue, as described at https://bugs.freedesktop.org/show_bug.cgi?id=51501 This behaviour is not

Re: [avahi] Is it possible to customize #define AVAHI_DEFAULT_TTL_HOST_NAME and #define AVAHI_DEFAULT_TTL, rather than embedding them statically in the code?

2012-07-10 Thread Ajay Garg
Thanks Patrick for the reply. On Tue, Jul 10, 2012 at 11:38 AM, Patrick Oppenlander pattyo.li...@gmail.com wrote: On Tue, Jul 10, 2012 at 4:55 AM, Patrick Oppenlander pattyo.li...@gmail.com wrote: On 05/07/12 20:19, Ajay Garg wrote: Hi all. I ran into a issue, as described at

Re: [avahi] Is it possible to customize #define AVAHI_DEFAULT_TTL_HOST_NAME and #define AVAHI_DEFAULT_TTL, rather than embedding them statically in the code?

2012-07-10 Thread Patrick Oppenlander
On 11/07/12 01:17, Ajay Garg wrote: So, perhaps a client notification *should* get notified, once the transient-resolved-records expire??!! This doesn't help as these records always expire after two minutes. They are not refreshed unless another resolve is requested. Patrick

Re: [avahi] Is it possible to customize #define AVAHI_DEFAULT_TTL_HOST_NAME and #define AVAHI_DEFAULT_TTL, rather than embedding them statically in the code?

2012-07-09 Thread Ajay Garg
Hi all. I have written a patch, that solves the issue https://bugs.freedesktop.org/show_bug.cgi?id=51501#c5 The patch is available at http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch Will be glad to have it

Re: [avahi] Is it possible to customize #define AVAHI_DEFAULT_TTL_HOST_NAME and #define AVAHI_DEFAULT_TTL, rather than embedding them statically in the code?

2012-07-09 Thread Patrick Oppenlander
On 05/07/12 20:19, Ajay Garg wrote: Hi all. I ran into a issue, as described at https://bugs.freedesktop.org/show_bug.cgi?id=51501 This behaviour is not a bug. It's a side-effect of how MDNS is (intentionally) designed. Your bug report states that the callback is not called. It will in

Re: [avahi] Is it possible to customize #define AVAHI_DEFAULT_TTL_HOST_NAME and #define AVAHI_DEFAULT_TTL, rather than embedding them statically in the code?

2012-07-09 Thread Ajay Garg
On Tue, Jul 10, 2012 at 4:55 AM, Patrick Oppenlander pattyo.li...@gmail.com wrote: On 05/07/12 20:19, Ajay Garg wrote: Hi all. I ran into a issue, as described at https://bugs.freedesktop.org/show_bug.cgi?id=51501 This behaviour is not a bug. It's a side-effect of how MDNS is

Re: [avahi] Is it possible to customize #define AVAHI_DEFAULT_TTL_HOST_NAME and #define AVAHI_DEFAULT_TTL, rather than embedding them statically in the code?

2012-07-05 Thread Ajay Garg
Hi all. Just found about /etc/avahi/avahi-daemon.conf. That would do it !!! (of course after patching avahi to read-in the two new values). Will be back soon with a patch :) Regards, Ajay On Thu, Jul 5, 2012 at 3:49 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I ran into a issue,