projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netlink: fix setsockopt in mmap examples in documentation
[cascardo/linux.git]
/
Documentation
/
networking
/
netlink_mmap.txt
diff --git
a/Documentation/networking/netlink_mmap.txt
b/Documentation/networking/netlink_mmap.txt
index
b261229
..
c6af4ba
100644
(file)
--- 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 */
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);
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 */
exit(1)
/* Calculate size of each individual ring */