[Dnsmasq-discuss] erroneously filtering A records after calling "SetFilterA false" over dbus

2024-02-20 Thread Clayton Craft via Dnsmasq-discuss
Using dnsmasq 2.90 + the patch to fix the infinite loop, it seems like filtering is applied when calling e.g., "SetFilterA false" over dbus. In the script below, the first lookup succeeds but subsequent lookups after the initial application of the filter fail to return anything.

Re: [Dnsmasq-discuss] rr_on_list stuck in infinite loop, dnsmasq unresponsive

2024-02-19 Thread Clayton Craft
> https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=89aad014685161318318737dc0e350ee4dae982d > > should fix this. Nice, ya seems to fix it for me. Thanks a lot for the quick fix! -Clayton signature.asc Description: PGP signature ___

Re: [Dnsmasq-discuss] rr_on_list stuck in infinite loop, dnsmasq unresponsive

2024-02-19 Thread Clayton Craft
On Mon, 19 Feb 2024 13:29:44 -0800 Clayton Craft wrote: > The conditions to trigger this aren't well understood by me... it seems to > happen when we use dnsmasq's dbus interface to toggle filtering ("set_filter A > bool"). But I've had trouble reproducing it manually. W

[Dnsmasq-discuss] rr_on_list stuck in infinite loop, dnsmasq unresponsive

2024-02-19 Thread Clayton Craft
It seems like sometimes the rrlist given to rr_on_list can be a circular linked list: 0xbbf57044 in rr_on_list (list=0xbbfe1990 , rr=5) at util.c:120 120 while (list) (gdb) p list $1 = (struct rrlist *) 0xbbfe1990 (gdb) p list.next $3 = (struct

Re: [Dnsmasq-discuss] [PATCH v2] dbus: allow setting filter-A and filter-AAAA options

2023-03-07 Thread Clayton Craft
On Thu, 23 Feb 2023 21:40:10 -0800 Clayton Craft wrote: > On Fri, 10 Feb 2023 13:53:05 -0800 Clayton Craft > wrote: > > Any chance this could get merged? Being able to set filters at runtime is very > useful for multi-homed phones and other devices in cases where we need to

Re: [Dnsmasq-discuss] [PATCH v2] dbus: allow setting filter-A and filter-AAAA options

2023-02-23 Thread Clayton Craft
On Fri, 10 Feb 2023 13:53:05 -0800 Clayton Craft wrote: > --- > Fixes a typo in the SetFilter DBus-interface description > > dbus/DBus-interface | 8 > src/dbus.c | 14 ++ > 2 files changed, 22 insertions(+) > > diff --git a/dbus/DB

[Dnsmasq-discuss] [PATCH v2] dbus: allow setting filter-A and filter-AAAA options

2023-02-10 Thread Clayton Craft
--- Fixes a typo in the SetFilter DBus-interface description dbus/DBus-interface | 8 src/dbus.c | 14 ++ 2 files changed, 22 insertions(+) diff --git a/dbus/DBus-interface b/dbus/DBus-interface index 59b41b1..00b4465 100644 --- a/dbus/DBus-interface +++

Re: [Dnsmasq-discuss] [PATCH 0/1] Allow configuring filter-A/AAAA via dbus

2023-02-06 Thread Clayton Craft
On Mon, 23 Jan 2023 23:21:45 -0800 Clayton Craft wrote: > On Mon, 23 Jan 2023 14:06:56 -0800 Clayton Craft > wrote: > > There doesn't appear to be a way to change the filter-A or filter- > > parameters at runtime, after the config is loaded / cmdline params are >

Re: [Dnsmasq-discuss] [PATCH 0/1] Allow configuring filter-A/AAAA via dbus

2023-01-23 Thread Clayton Craft
On Mon, 23 Jan 2023 14:06:56 -0800 Clayton Craft wrote: > There doesn't appear to be a way to change the filter-A or filter- > parameters at runtime, after the config is loaded / cmdline params are parsed. > In some cases[1], I want to conditionally enable/disabling these options at

[Dnsmasq-discuss] [PATCH 0/1] Allow configuring filter-A/AAAA via dbus

2023-01-23 Thread Clayton Craft
nd ends up "supporting" different IP versions, and restarting dnsmasq each time (e.g. to rerun with --filter-A or whatever) is not desirable. Clayton Craft (1): dbus: allow setting filter-A and filter- options dbus/DBus-interface | 8 src/dbus.c | 14 ++

[Dnsmasq-discuss] [PATCH 1/1] dbus: allow setting filter-A and filter-AAAA options

2023-01-23 Thread Clayton Craft
--- dbus/DBus-interface | 8 src/dbus.c | 14 ++ 2 files changed, 22 insertions(+) diff --git a/dbus/DBus-interface b/dbus/DBus-interface index 59b41b1..0701971 100644 --- a/dbus/DBus-interface +++ b/dbus/DBus-interface @@ -44,6 +44,14 @@ SetFilterWin2KOption