diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2021-09-06 14:12:12 +1000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-09-06 12:08:19 +0200 |
commit | 6ffbfc53f517b8e5c3dcbd3665b310d566de3898 (patch) | |
tree | 73f00e3b48f2cc176c6ae53b1ca03e93328f245b /src | |
parent | d7234f02df061889a615a91233ea686d0b10d841 (diff) |
src: consistently use `gh` in code, code snippets and examples
i.e. rather than `qh` sometimes, since this refers to the group handler.
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/libnetfilter_log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libnetfilter_log.c b/src/libnetfilter_log.c index a7554b5..546d667 100644 --- a/src/libnetfilter_log.c +++ b/src/libnetfilter_log.c @@ -183,14 +183,14 @@ 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 100\n"); - qh = nflog_bind_group(h, 100); - if (!qh) { + gh = nflog_bind_group(h, 100); + if (!gh) { fprintf(stderr, "no handle for group 100\n"); exit(1); } printf("setting copy_packet mode\n"); - if (nflog_set_mode(qh, NFULNL_COPY_PACKET, 0xffff) < 0) { + if (nflog_set_mode(gh, NFULNL_COPY_PACKET, 0xffff) < 0) { fprintf(stderr, "can't set packet copy mode\n"); exit(1); } |