diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-20 21:39:45 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-06-20 21:39:45 +0000 |
| commit | 29059a6548ec1683f4c91ec4d91d79cf735b6505 (patch) | |
| tree | d221fbcedfa0af3d699d60fbb914b96a95663591 /man7 | |
| parent | bb38b71d155299126b7c03de9003e029801b1e0d (diff) | |
| download | man-pages-29059a6548ec1683f4c91ec4d91d79cf735b6505.tar.gz | |
s/-/\\-/
Diffstat (limited to 'man7')
| -rw-r--r-- | man7/netlink.7 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man7/netlink.7 b/man7/netlink.7 index 62fb052d60..cdfc4f5747 100644 --- a/man7/netlink.7 +++ b/man7/netlink.7 @@ -403,16 +403,16 @@ in order to reliably track acknowledgements. .nf struct nlmsghdr *nh; /* The nlmsghdr with payload to send. */ struct sockaddr_nl sa; -struct iovec iov = { (void *) nh, nh->nlmsg_len }; +struct iovec iov = { (void *) nh, nh\->nlmsg_len }; struct msghdr msg; msg = { (void *)&sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; memset(&sa, 0, sizeof(sa)); sa.nl_family = AF_NETLINK; -nh->nlmsg_pid = 0; -nh->nlmsg_seq = ++sequence_number; +nh\->nlmsg_pid = 0; +nh\->nlmsg_seq = ++sequence_number; /* Request an ack from kernel by setting NLM_F_ACK. */ -nh->nlmsg_flags |= NLM_F_ACK; +nh\->nlmsg_flags |= NLM_F_ACK; sendmsg(fd, &msg, 0); .fi |
