diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2023-03-20 22:30:11 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2023-03-20 22:30:11 +0000 |
commit | 3fb10cd0d8217b42071ab575c2edaae2554b1780 (patch) | |
tree | 1f850ab4ac7ad309bd9c5f7a839838ce2d09fc9b /src/dbus.c | |
parent | 0427e371160882a24825df6f4f963961257df952 (diff) | |
parent | ff28a485cf8b592a6c21b39bbb8e42f5bc390685 (diff) | |
download | dnsmasq-3fb10cd0d8217b42071ab575c2edaae2554b1780.tar.gz |
Merge branch 'master' into all-rr-type
Diffstat (limited to 'src/dbus.c')
-rw-r--r-- | src/dbus.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -52,6 +52,12 @@ const char* introspection_xml_template = " <method name=\"SetFilterWin2KOption\">\n" " <arg name=\"filterwin2k\" direction=\"in\" type=\"b\"/>\n" " </method>\n" +" <method name=\"SetFilterA\">\n" +" <arg name=\"filter-a\" direction=\"in\" type=\"b\"/>\n" +" </method>\n" +" <method name=\"SetFilterAAAA\">\n" +" <arg name=\"filter-aaaa\" direction=\"in\" type=\"b\"/>\n" +" </method>\n" " <method name=\"SetLocaliseQueriesOption\">\n" " <arg name=\"localise-queries\" direction=\"in\" type=\"b\"/>\n" " </method>\n" @@ -817,6 +823,14 @@ DBusHandlerResult message_handler(DBusConnection *connection, { reply = dbus_set_bool(message, OPT_FILTER, "filterwin2k"); } + else if (strcmp(method, "SetFilterA") == 0) + { + reply = dbus_set_bool(message, OPT_FILTER_A, "filter-A"); + } + else if (strcmp(method, "SetFilterAAAA") == 0) + { + reply = dbus_set_bool(message, OPT_FILTER_AAAA, "filter-AAAA"); + } else if (strcmp(method, "SetLocaliseQueriesOption") == 0) { reply = dbus_set_bool(message, OPT_LOCALISE, "localise-queries"); |