netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anton VG <anton.vazir@gmail.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>,
	netfilter-devel <netfilter-devel@vger.kernel.org>
Subject: Re: (nfnl_talk: recvmsg over-run) and (nf_queue: full at 1024 entries, dropping packets(s). Dropped: 582) - bug or just some defaults increase required?
Date: Wed, 11 Feb 2009 17:26:45 +0500	[thread overview]
Message-ID: <c4b050a10902110426s5e997220r21d615ebf0683bb8@mail.gmail.com> (raw)
In-Reply-To: <49928B62.1090600@netfilter.org>

Pablo,

On 64bit system, after applying the patch, nfq_create_queue() started
to oftenly return NULL, and calling
strerror(errno) - I've got a error "Invalid or incomplete multibyte or
wide character".

On 32bit it works. This have been tested with only 2x simultaneous queues
Any thoughts?

2009/2/11 Pablo Neira Ayuso <pablo@netfilter.org>:
> Updates on this?
>
> Pablo Neira Ayuso wrote:
>> Anton wrote:
>>> Pablo,
>>>
>>> Just a little more thought, this happened when my
>>> application attempted to create a NEW queue, while in
>>> kernel packet queue overrun situation. And after calling
>>> the nfq_create_queue there was no return from it, and only
>>> error message generation in the loop inside the
>>> libnetfilter_queue library. Looks like not a very proper
>>> behaviour. Am I missing something?
>>
>> Oh I see, I did not get the point initially. Does this patch fix the
>> problem?
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> diff --git a/src/libnetfilter_queue.c b/src/libnetfilter_queue.c
>> index 9e4903b..ec17595 100644
>> --- a/src/libnetfilter_queue.c
>> +++ b/src/libnetfilter_queue.c
>> @@ -141,7 +141,7 @@ __build_send_cfg_msg(struct nfq_handle *h, u_int8_t command,
>>       cmd.pf = htons(pf);
>>       nfnl_addattr_l(&u.nmh, sizeof(u), NFQA_CFG_CMD, &cmd, sizeof(cmd));
>>
>> -     return nfnl_talk(h->nfnlh, &u.nmh, 0, 0, NULL, NULL, NULL);
>> +     return nfnl_query(h->nfnlh, &u.nmh);
>>  }
>>
>>  static int __nfq_rcv_pkt(struct nlmsghdr *nlh, struct nfattr *nfa[],
>> @@ -553,7 +553,7 @@ int nfq_set_mode(struct nfq_q_handle *qh,
>>       nfnl_addattr_l(&u.nmh, sizeof(u), NFQA_CFG_PARAMS, &params,
>>                       sizeof(params));
>>
>> -     return nfnl_talk(qh->h->nfnlh, &u.nmh, 0, 0, NULL, NULL, NULL);
>> +     return nfnl_query(qh->h->nfnlh, &u.nmh);
>>  }
>>
>>  /**
>> @@ -581,7 +581,7 @@ int nfq_set_queue_maxlen(struct nfq_q_handle *qh,
>>       nfnl_addattr_l(&u.nmh, sizeof(u), NFQA_CFG_QUEUE_MAXLEN, &queue_maxlen,
>>                       sizeof(queue_maxlen));
>>
>> -     return nfnl_talk(qh->h->nfnlh, &u.nmh, 0, 0, NULL, NULL, NULL);
>> +     return nfnl_query(qh->h->nfnlh, &u.nmh);
>>  }
>>
>>  /**
>
>
> --
> "Los honestos son inadaptados sociales" -- Les Luthiers
>

  parent reply	other threads:[~2009-02-11 12:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 18:14 (nfnl_talk: recvmsg over-run) and (nf_queue: full at 1024 entries, dropping packets(s). Dropped: 582) - bug or just some defaults increase required? Anton VG
2009-02-08  1:34 ` Pablo Neira Ayuso
2009-02-09 10:56   ` Anton
2009-02-09 11:20     ` Pablo Neira Ayuso
2009-02-11  8:48       ` Anton
     [not found]       ` <49928B62.1090600@netfilter.org>
2009-02-11 12:26         ` Anton VG [this message]
2009-02-11 16:41           ` Pablo Neira Ayuso
2009-02-12 10:45             ` Anton
2009-02-12 12:43               ` Pablo Neira Ayuso
2009-02-14  9:03                 ` Anton
2009-02-14 17:13               ` Pablo Neira Ayuso
2009-02-16 13:19                 ` Anton
2009-02-16 13:42                   ` Pablo Neira Ayuso
2009-02-16 14:38                     ` Anton VG
2009-02-16 15:23                       ` Pablo Neira Ayuso
2009-02-16 15:33                         ` Anton VG
2009-02-16 15:41                           ` Anton VG
2009-02-17 16:58                             ` Anton VG
2009-02-17 17:15                               ` Pablo Neira Ayuso
2009-02-17 17:31                                 ` Anton VG
2009-02-18  2:48                                   ` Amos Jeffries
2009-02-17 17:34                                 ` Anton VG
2009-02-17 19:51                                   ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c4b050a10902110426s5e997220r21d615ebf0683bb8@mail.gmail.com \
    --to=anton.vazir@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).