netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nftables] TODO: Replace yy_switch_to_buffer by yypop_buffer_state and yypush_buffer_state
@ 2020-09-08 13:05 Gopal Yadav
  2020-09-09 12:23 ` Florian Westphal
  0 siblings, 1 reply; 4+ messages in thread
From: Gopal Yadav @ 2020-09-08 13:05 UTC (permalink / raw)
  To: netfilter-devel

Hi Netfilter Team,

I am looking to resolve a todo task in function yy_switch_to_buffer in
nftables/src/scanner.c file.
I am not familiar with lex but searching around I found that scanner.c
is produced by lex according to the scanner.l file.
Therefore my guess is, changing the scanner.c file directly is not the
solution, right?
Changes would have to be done in scanner.l, right?
How should I proceed to complete this todo?

I browsed bugzilla to find some other issues to solve, but I feel
lost. Are there any beginner friendly issues to solve or any other
starting point?

Thanks
Gopal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [nftables] TODO: Replace yy_switch_to_buffer by yypop_buffer_state and yypush_buffer_state
  2020-09-08 13:05 [nftables] TODO: Replace yy_switch_to_buffer by yypop_buffer_state and yypush_buffer_state Gopal Yadav
@ 2020-09-09 12:23 ` Florian Westphal
  2020-09-09 16:10   ` Gopal Yadav
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Westphal @ 2020-09-09 12:23 UTC (permalink / raw)
  To: Gopal Yadav; +Cc: netfilter-devel

Gopal Yadav <gopunop@gmail.com> wrote:
> Hi Netfilter Team,
> 
> I am looking to resolve a todo task in function yy_switch_to_buffer in
> nftables/src/scanner.c file.
> I am not familiar with lex but searching around I found that scanner.c
> is produced by lex according to the scanner.l file.
> Therefore my guess is, changing the scanner.c file directly is not the
> solution, right?

Right.

> Changes would have to be done in scanner.l, right?

No.

> How should I proceed to complete this todo?

This TODO is coming from flex itself, so, this is not an nftables
task.

> I browsed bugzilla to find some other issues to solve, but I feel
> lost. Are there any beginner friendly issues to solve or any other
> starting point?

This one for example:
https://bugzilla.netfilter.org/show_bug.cgi?id=1305

Its "just" a documentation issue.  You could work from comment 4
and improve the nft documentation to clarify 'accept' behaviour.

For many other bugs it would help if we had testcases that demonstrated
this problem in the nftables.git repo.

So, if you can translate a BZ ticker to e.g. a new test case in
tests/shell that show problem still exists in current nftables.git then
you could submit that test case as a patch, even if the problem is not
yet resolved.

Readily available test reproducers help a lot.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [nftables] TODO: Replace yy_switch_to_buffer by yypop_buffer_state and yypush_buffer_state
  2020-09-09 12:23 ` Florian Westphal
@ 2020-09-09 16:10   ` Gopal Yadav
  2020-09-11 18:19     ` Gopal Yadav
  0 siblings, 1 reply; 4+ messages in thread
From: Gopal Yadav @ 2020-09-09 16:10 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netfilter-devel

On Wed, Sep 9, 2020 at 5:53 PM Florian Westphal <fw@strlen.de> wrote:
>
> Gopal Yadav <gopunop@gmail.com> wrote:
> > Are there any beginner friendly issues to solve or any other
> > starting point?
>
> This one for example:
> https://bugzilla.netfilter.org/show_bug.cgi?id=1305
>
> Its "just" a documentation issue.  You could work from comment 4
> and improve the nft documentation to clarify 'accept' behaviour.
>
> For many other bugs it would help if we had testcases that demonstrated
> this problem in the nftables.git repo.
>
> So, if you can translate a BZ ticker to e.g. a new test case in
> tests/shell that show problem still exists in current nftables.git then
> you could submit that test case as a patch, even if the problem is not
> yet resolved.
>
> Readily available test reproducers help a lot.

Thanks for the reply. Pablo suggested to work on
https://bugzilla.netfilter.org/show_bug.cgi?id=1388
but I think his mail was not sent to the mailing list.
I am currently trying to solve that one. Will get back to look at 1305
after that.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [nftables] TODO: Replace yy_switch_to_buffer by yypop_buffer_state and yypush_buffer_state
  2020-09-09 16:10   ` Gopal Yadav
@ 2020-09-11 18:19     ` Gopal Yadav
  0 siblings, 0 replies; 4+ messages in thread
From: Gopal Yadav @ 2020-09-11 18:19 UTC (permalink / raw)
  To: Florian Westphal, pablo; +Cc: netfilter-devel

On Wed, Sep 9, 2020 at 9:40 PM Gopal Yadav <gopunop@gmail.com> wrote:
>
> On Wed, Sep 9, 2020 at 5:53 PM Florian Westphal <fw@strlen.de> wrote:
> >
> > Gopal Yadav <gopunop@gmail.com> wrote:
> > > Are there any beginner friendly issues to solve or any other
> > > starting point?
> >
> > This one for example:
> > https://bugzilla.netfilter.org/show_bug.cgi?id=1305
> >
> > Its "just" a documentation issue.  You could work from comment 4
> > and improve the nft documentation to clarify 'accept' behaviour.
> >
> > For many other bugs it would help if we had testcases that demonstrated
> > this problem in the nftables.git repo.
> >
> > So, if you can translate a BZ ticker to e.g. a new test case in
> > tests/shell that show problem still exists in current nftables.git then
> > you could submit that test case as a patch, even if the problem is not
> > yet resolved.
> >
> > Readily available test reproducers help a lot.
>
> Thanks for the reply. Pablo suggested to work on
> https://bugzilla.netfilter.org/show_bug.cgi?id=1388
> but I think his mail was not sent to the mailing list.
> I am currently trying to solve that one. Will get back to look at 1305
> after that.

I have submitted a patch for 1388.
For the doc issue I would have to read the entire manpage.
Will try doing that meanwhile any other issue to work on?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-11 18:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-08 13:05 [nftables] TODO: Replace yy_switch_to_buffer by yypop_buffer_state and yypush_buffer_state Gopal Yadav
2020-09-09 12:23 ` Florian Westphal
2020-09-09 16:10   ` Gopal Yadav
2020-09-11 18:19     ` Gopal Yadav

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).