From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Alexey Kashavkin <akashavkin@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Generated value for filtering from two arguments received from the command line
Date: Fri, 7 Mar 2025 15:22:54 +0100 [thread overview]
Message-ID: <Z8sBPsNtwMvjWQ0w@calendula> (raw)
In-Reply-To: <2C2AE2EC-8862-4ABB-864C-78467E668575@gmail.com>
On Fri, Mar 07, 2025 at 05:56:29PM +0500, Alexey Kashavkin wrote:
> I have performed the required translation in lex (scanner.l). After receiving arguments from the command line, the required value is generated.
>
> args_for_gen_value ({digit}{1,3}{space}{digit}{1,3})
>
> {args_for_gen_value} {
> unsigned char paf_field[14] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
> yylval->string = xstrdup(build_paf_val(yytext, paf_field));
> return STRING;
> }
>
> Hopefully this will be of some use to someone.
For this kind of arbitrary matching, best is to add support for raw
expressions.
prev parent reply other threads:[~2025-03-07 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 11:10 Generated value for filtering from two arguments received from the command line Alexey Kashavkin
2025-03-07 12:56 ` Alexey Kashavkin
2025-03-07 14:22 ` Pablo Neira Ayuso [this message]
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=Z8sBPsNtwMvjWQ0w@calendula \
--to=pablo@netfilter.org \
--cc=akashavkin@gmail.com \
--cc=netfilter-devel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.