netfilter: xt_IDLETIMER: Rename INTERFACE to LABEL in netlink notification.
authorAshish Sharma <ashishsharma@google.com>
Mon, 13 Aug 2012 20:19:57 +0000 (13:19 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:56 +0000 (13:40 -0700)
Change-Id: Iaeca5dd2d7878c0733923ae03309a2a7b86979ca
Signed-off-by: Ashish Sharma <ashishsharma@google.com>
net/netfilter/xt_IDLETIMER.c

index df91e26f55f236c3936eee5b579c5615cb1e9591..f4ba86348660d5d1412d3b4a2eaab3c5b4fc7a75 100644 (file)
@@ -68,15 +68,15 @@ static DEFINE_MUTEX(list_mutex);
 
 static struct kobject *idletimer_tg_kobj;
 
-static void notify_netlink_uevent(const char *iface, struct idletimer_tg *timer)
+static void notify_netlink_uevent(const char *label, struct idletimer_tg *timer)
 {
-       char iface_msg[NLMSG_MAX_SIZE];
+       char label_msg[NLMSG_MAX_SIZE];
        char state_msg[NLMSG_MAX_SIZE];
-       char *envp[] = { iface_msg, state_msg, NULL };
+       char *envp[] = { label_msg, state_msg, NULL };
        int res;
 
-       res = snprintf(iface_msg, NLMSG_MAX_SIZE, "INTERFACE=%s",
-                      iface);
+       res = snprintf(label_msg, NLMSG_MAX_SIZE, "LABEL=%s",
+                      label);
        if (NLMSG_MAX_SIZE <= res) {
                pr_err("message too long (%d)", res);
                return;
@@ -87,7 +87,7 @@ static void notify_netlink_uevent(const char *iface, struct idletimer_tg *timer)
                pr_err("message too long (%d)", res);
                return;
        }
-       pr_debug("putting nlmsg: <%s> <%s>\n", iface_msg, state_msg);
+       pr_debug("putting nlmsg: <%s> <%s>\n", label_msg, state_msg);
        kobject_uevent_env(idletimer_tg_kobj, KOBJ_CHANGE, envp);
        return;