* Re: u32 question
[not found] ` <19247.5724.521673.970517@isis.cs3-inc.com>
@ 2009-12-21 7:49 ` Michal Soltys
0 siblings, 0 replies; only message in thread
From: Michal Soltys @ 2009-12-21 7:49 UTC (permalink / raw)
To: Don Cohen; +Cc: Mail List - Netfilter, netfilter-devel, mike
Don Cohen wrote:
> Michal Soltys writes:
>
> > This match in its current version does plenty of sanity checks, and
> > moving back using negative offsets don't work (as negative offsets
> > are not allowed and the data is internally treated as big >0 value
> > - thus failing the match). You have two options:
>
> I thought the original version did plenty of checks and specifically
> DID allow negative offsets, which is intentional because, as we see
> from published examples (that no longer work), that's useful.
> Is there any reason that capability shouldn't be restored as the
> normal version that appears in linux distributions?
>
I'm just reporting - as I can see somebody ran into the same problem as me
a while ago. I've added netfilter-devel to CC, as it's a better place for
the discussion.
> > - patch the xt_u32.c to allow earlier behavior
> > - use match2 from xtables-addons (separate options for matching)
(I meant length2 - separate options for matching 0 payload packets).
>
> > For reference:
> >
> > http://xtables-addons.sourceforge.net/
> > http://marc.info/?t=125219819200001&r=1&w=2
>
> I see that the patch is available here. It's just relatively
> inconvenient to use it compared to things working as intended out of
> the box. I have to say that it's not all that obvious in EITHER of
> the two options just what you have to do in order to fix the problem
> on your own machine. Where can I find such instructions?
>
>
> BTW, in response to some of the comments I see in the second
> reference,
> - I would be very surprised to see frames of 2GB any time in the
> foreseeable future
> - If you're worried about that I suggest that (at least on a 64 bit
> machine) you allow 64 bit offsets so on a 64 bit machine
> -3 => 0xfffffffffffffffd.
> --
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-21 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20091219231018.B79C41A8193@isis.cs3-inc.com>
[not found] ` <19245.36072.654916.551426@isis.cs3-inc.com>
[not found] ` <4B2F0D0F.8030100@ziu.info>
[not found] ` <19247.5724.521673.970517@isis.cs3-inc.com>
2009-12-21 7:49 ` u32 question Michal Soltys
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).