From: Alexander Kappner <agk@godking.net>
To: wireguard@lists.zx2c4.com
Subject: [PATCH] address kernel commit 0a833c29d89656025443cb9f0ebff7052dd95ce0
Date: Sat, 25 Nov 2017 12:59:48 -0800 [thread overview]
Message-ID: <1511643588-12378-1-git-send-email-agk@godking.net> (raw)
The above-referenced commit in Linus'
tree changed the prototype of genl_dump_check_consistent in netlink.h. This
patch updates netlink.c in WG accordingly so WG builds against the latest
tree.
---
src/netlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/netlink.c b/src/netlink.c
index 7fa243e..43e5ce0 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -177,7 +177,7 @@ static int get_device_dump(struct sk_buff *skb, struct netlink_callback *cb)
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, &genl_family, NLM_F_MULTI, WG_CMD_GET_DEVICE);
if (!hdr)
goto out;
- genl_dump_check_consistent(cb, hdr, &genl_family);
+ genl_dump_check_consistent(cb, hdr);
if (!last_peer_cursor) {
if (nla_put_u16(skb, WGDEVICE_A_LISTEN_PORT, wg->incoming_port) || nla_put_u32(skb, WGDEVICE_A_FWMARK, wg->fwmark) || nla_put_u32(skb, WGDEVICE_A_IFINDEX, wg->dev->ifindex) || nla_put_string(skb, WGDEVICE_A_IFNAME, wg->dev->name))
--
2.1.4
next reply other threads:[~2017-11-25 20:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-25 20:59 Alexander Kappner [this message]
2017-11-26 1:22 ` Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1511643588-12378-1-git-send-email-agk@godking.net \
--to=agk@godking.net \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).