diff options
Diffstat (limited to 'examples/nf-queue.c')
-rw-r--r-- | examples/nf-queue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/nf-queue.c b/examples/nf-queue.c index bde9db1..1df004a 100644 --- a/examples/nf-queue.c +++ b/examples/nf-queue.c @@ -26,10 +26,10 @@ static int parse_attr_cb(const struct nlattr *attr, void *data) const struct nlattr **tb = (const struct nlattr **)data; int type = mnl_attr_get_type(attr); - if (mnl_attr_type_valid(attr, NFQA_MAX) < 0) { - perror("mnl_attr_type_valid"); - return MNL_CB_ERROR; - } + /* skip unsupported attribute in user-space */ + if (mnl_attr_type_valid(attr, NFQA_MAX) < 0) + return MNL_CB_OK; + switch(type) { case NFQA_MARK: case NFQA_IFINDEX_INDEV: |