netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Kashavkin <akashavkin@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: Re: Generated value for filtering from two arguments received from the command line
Date: Fri, 7 Mar 2025 17:56:29 +0500	[thread overview]
Message-ID: <2C2AE2EC-8862-4ABB-864C-78467E668575@gmail.com> (raw)
In-Reply-To: <AA705D8C-131B-4305-81A6-840C38AE6E54@gmail.com>

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.

  reply	other threads:[~2025-03-07 12:56 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 [this message]
2025-03-07 14:22   ` 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=2C2AE2EC-8862-4ABB-864C-78467E668575@gmail.com \
    --to=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 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).