summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2021-08-28 20:38:21 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-08-30 02:14:33 +0200
commit931686d211731d0732770affc44c68c5b20643b8 (patch)
tree15e193f42f344a4e6be69e1692c42c2b289cfbe1 /src
parent7a008d50f21cea5f1f3523bb26837addd59a2fdf (diff)
doc: fix typo's in example.
Use the right group number in nflog_bind_group example. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/libnetfilter_log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libnetfilter_log.c b/src/libnetfilter_log.c
index 567049c..339f286 100644
--- a/src/libnetfilter_log.c
+++ b/src/libnetfilter_log.c
@@ -182,10 +182,10 @@ struct nfnl_handle *nflog_nfnlh(struct nflog_handle *h)
*
* Here's a little code snippet that binds to the group 100:
* \verbatim
- printf("binding this socket to group 0\n");
- qh = nflog_bind_group(h, 0);
+ printf("binding this socket to group 100\n");
+ qh = nflog_bind_group(h, 100);
if (!qh) {
- fprintf(stderr, "no handle for grup 0\n");
+ fprintf(stderr, "no handle for group 100\n");
exit(1);
}