summaryrefslogtreecommitdiff
path: root/src/platform/nm-netlink.h
diff options
context:
space:
mode:
authorSimon Fels <simon.fels@canonical.com>2018-05-25 17:43:54 +0200
committerThomas Haller <thaller@redhat.com>2018-06-15 09:46:26 +0200
commit1621c79e7b6c41593958716f0b4e78395f9b2c7d (patch)
treead78b6fd38ff30ff4e06263589688a9d5fb91007 /src/platform/nm-netlink.h
parent58cdc7b5502be7766b4957538b8eb6ac2cf5b92f (diff)
platform: add support for wake-on-wlan
Co-authored-by: Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com>
Diffstat (limited to 'src/platform/nm-netlink.h')
-rw-r--r--src/platform/nm-netlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform/nm-netlink.h b/src/platform/nm-netlink.h
index c0dc09c4b8..b938fa4a4d 100644
--- a/src/platform/nm-netlink.h
+++ b/src/platform/nm-netlink.h
@@ -244,6 +244,9 @@ nla_put_string (struct nl_msg *msg, int attrtype, const char *str)
#define NLA_PUT_STRING(msg, attrtype, value) \
NLA_PUT(msg, attrtype, (int) strlen(value) + 1, value)
+#define NLA_PUT_FLAG(msg, attrtype) \
+ NLA_PUT(msg, attrtype, 0, NULL)
+
struct nlattr *nla_find (const struct nlattr *head, int len, int attrtype);
static inline int