ubus: drop dnsmasq check for dns_result method
authorFelix Fietkau <nbd@nbd.name>
Mon, 15 Nov 2021 20:10:12 +0000 (21:10 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Nov 2021 20:10:17 +0000 (21:10 +0100)
Preparation for switching dnsmasq to reporting cache entries

Signed-off-by: Felix Fietkau <nbd@nbd.name>
ubus.c

diff --git a/ubus.c b/ubus.c
index fb5a6b7244c2dc0e76e0befaec23ed0b158dfbfa..39a775ce54ebce57e6247f108423e0517350891d 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -344,22 +344,11 @@ static struct ubus_object qosify_object = {
        .n_methods = ARRAY_SIZE(qosify_methods),
 };
 
-static int
-qosify_dnsmasq_cb(struct ubus_context *ctx, struct ubus_object *obj,
-                 struct ubus_request_data *req, const char *method,
-                 struct blob_attr *msg)
-{
-       if (!strcmp(method, "dns_result"))
-               __qosify_ubus_add_dns_host(msg);
-
-       return 0;
-}
-
 static void
 qosify_subscribe_dnsmasq(struct ubus_context *ctx)
 {
        static struct ubus_subscriber sub = {
-               .cb = qosify_dnsmasq_cb,
+               .cb = qosify_ubus_add_dns_host,
        };
        uint32_t id;