diff options
author | Eric Leblond <eric@inl.fr> | 2008-12-29 22:21:57 +0100 |
---|---|---|
committer | Eric Leblond <eric@inl.fr> | 2008-12-30 13:37:14 +0100 |
commit | 4353e2eeda1f9be2e17cd392180cce6ed0745142 (patch) | |
tree | 9548bd32a7206a37256b720afe77a5a88cc6b183 /src | |
parent | a2a235922e04a890d6514d4abff03587a3720eff (diff) |
Suppress NFULNL_MSG_CONFIG callback registration.
It seems there is no NFULNL_MSG_CONFIG message send from kernel space to
userspace. Thus the registration of an nfnetlink callback for this type
of messages is not necessary.
Signed-off-by: Eric Leblond <eric@inl.fr>
Diffstat (limited to 'src')
-rw-r--r-- | src/libnetfilter_log.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libnetfilter_log.c b/src/libnetfilter_log.c index ed92561..7cec2ea 100644 --- a/src/libnetfilter_log.c +++ b/src/libnetfilter_log.c @@ -92,15 +92,6 @@ static struct nflog_g_handle *find_gh(struct nflog_handle *h, u_int16_t group) return NULL; } -static int __nflog_rcv_cmd(struct nlmsghdr *nlh, struct nfattr *nfa[], - void *data) -{ - /* struct nflog_handle *h = data; */ - - /* FIXME: implement this */ - return 0; -} - /* build a NFULNL_MSG_CONFIG message */ static int __build_send_cfg_msg(struct nflog_handle *h, u_int8_t command, @@ -141,11 +132,6 @@ static int __nflog_rcv_pkt(struct nlmsghdr *nlh, struct nfattr *nfa[], return gh->cb(gh, nfmsg, &nfldata, gh->data); } -static struct nfnl_callback cmd_cb = { - .call = &__nflog_rcv_cmd, - .attr_count = NFULA_CFG_MAX, -}; - static struct nfnl_callback pkt_cb = { .call = &__nflog_rcv_pkt, .attr_count = NFULA_MAX, @@ -182,12 +168,6 @@ struct nflog_handle *nflog_open_nfnl(struct nfnl_handle *nfnlh) goto out_free; } - cmd_cb.data = h; - err = nfnl_callback_register(h->nfnlssh, NFULNL_MSG_CONFIG, &cmd_cb); - if (err < 0) { - nflog_errno = err; - goto out_close; - } pkt_cb.data = h; err = nfnl_callback_register(h->nfnlssh, NFULNL_MSG_PACKET, &pkt_cb); if (err < 0) { |