aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-07-09 15:47:24 +0200
committerMartin Willi <martin@revosec.ch>2014-09-24 11:19:58 +0200
commit0404a29bfe7a24ca0c6d4f94405a01f6ff942f43 (patch)
tree1635f6083a58d22aa91b5f58d3a6a754e0736f91 /src/conftest
parent6fe02dda752cbb2c2389a3367a3b6e04add43425 (diff)
downloadstrongswan-0404a29bfe7a24ca0c6d4f94405a01f6ff942f43.tar.bz2
strongswan-0404a29bfe7a24ca0c6d4f94405a01f6ff942f43.tar.xz
kernel-netlink: Define netlink buffer as an union having a netlink header
This allows us to streamline the netlink buffers, and avoid extensive casting.
Diffstat (limited to 'src/conftest')
-rw-r--r--src/conftest/hooks/reset_seq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conftest/hooks/reset_seq.c b/src/conftest/hooks/reset_seq.c
index a77b10eee..717bcdbb9 100644
--- a/src/conftest/hooks/reset_seq.c
+++ b/src/conftest/hooks/reset_seq.c
@@ -108,7 +108,7 @@ static job_requeue_t reset_cb(struct reset_cb_data_t *data)
memset(&request, 0, sizeof(request));
- hdr = (struct nlmsghdr*)request;
+ hdr = &request.hdr;
hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_REPLACE;
hdr->nlmsg_seq = 201;
hdr->nlmsg_pid = getpid();