X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=Documentation%2Fnetworking%2Fnetlink_mmap.txt;h=c6af4bac5aa8f914a83305831e10f285c1699fb2;hb=88050049e7111f074e8887ba5a4cefc9f8fa8d41;hp=b26122973525f81e691f2ef05e7069647d6b7e19;hpb=ae996154f72fdd116291f69ec6c856be9c77042a;p=~andy%2Flinux diff --git a/Documentation/networking/netlink_mmap.txt b/Documentation/networking/netlink_mmap.txt index b2612297352..c6af4bac5aa 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 */