Skip to content
Snippets Groups Projects
Commit 90ca879d authored by Jakob Olsson's avatar Jakob Olsson
Browse files

add hostname to hosts event

parent f61261ad
Branches
No related tags found
1 merge request!18Hosts event fix
...@@ -1406,6 +1406,8 @@ int hostmngr_host_event(struct hostmngr_private *priv, const char *event, ...@@ -1406,6 +1406,8 @@ int hostmngr_host_event(struct hostmngr_private *priv, const char *event,
net = hostmngr_ifname_to_network(priv, e->ifname); net = hostmngr_ifname_to_network(priv, e->ifname);
blobmsg_add_string(&b, "network", net ? net : ""); blobmsg_add_string(&b, "network", net ? net : "");
blobmsg_add_string(&b, "hostname", e->hostname);
ubus_send_event(priv->bus, HOST_EVENT, b.head); ubus_send_event(priv->bus, HOST_EVENT, b.head);
blob_buf_free(&b); blob_buf_free(&b);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment