diff options
author | stephen hemminger <shemming@brocade.com> | 2014-03-19 21:54:20 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-20 14:11:38 -0400 |
commit | 88050049e7111f074e8887ba5a4cefc9f8fa8d41 (patch) | |
tree | 3ed95ef807daa9b9b7a79d150ba2abaabab06433 /Documentation | |
parent | ae996154f72fdd116291f69ec6c856be9c77042a (diff) | |
download | kernel-common-88050049e7111f074e8887ba5a4cefc9f8fa8d41.tar.gz kernel-common-88050049e7111f074e8887ba5a4cefc9f8fa8d41.tar.bz2 kernel-common-88050049e7111f074e8887ba5a4cefc9f8fa8d41.zip |
netlink: fix setsockopt in mmap examples in documentation
The documentation for how to use netlink mmap interface is incorrect.
The calls to setsockopt() require an additional argument.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/networking/netlink_mmap.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/networking/netlink_mmap.txt b/Documentation/networking/netlink_mmap.txt index b26122973525..c6af4bac5aa8 100644 --- a/Documentation/networking/netlink_mmap.txt +++ b/Documentation/networking/netlink_mmap.txt @@ -226,9 +226,9 @@ Ring setup: void *rx_ring, *tx_ring; /* Configure ring parameters */ - if (setsockopt(fd, NETLINK_RX_RING, &req, sizeof(req)) < 0) + if (setsockopt(fd, SOL_NETLINK, NETLINK_RX_RING, &req, sizeof(req)) < 0) exit(1); - if (setsockopt(fd, NETLINK_TX_RING, &req, sizeof(req)) < 0) + if (setsockopt(fd, SOL_NETLINK, NETLINK_TX_RING, &req, sizeof(req)) < 0) exit(1) /* Calculate size of each individual ring */ |