<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - iptables-extensions man page misleading for --to"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1707#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - iptables-extensions man page misleading for --to"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1707">bug 1707</a>
from <span class="vcard"><a class="email" href="mailto:pablo@netfilter.org" title="Pablo Neira Ayuso <pablo@netfilter.org>"> <span class="fn">Pablo Neira Ayuso</span></a>
</span></b>
<pre>(In reply to Phil Sutter from <a href="show_bug.cgi?id=1707#c3">comment #3</a>)
<span class="quote">> (In reply to Pablo Neira Ayuso from <a href="show_bug.cgi?id=1707#c2">comment #2</a>)
> > (In reply to Phil Sutter from <a href="show_bug.cgi?id=1707#c1">comment #1</a>)
> > > Pablo, am I on the right track? Could you please review?
> >
> > According to the code:
> >
> [...]
> > ret = textsearch_find(config, &state);
> > return (ret <= to - from ? ret : UINT_MAX);
> [...]
> > commit f72b948dcbb8558d639214536c2ace1b0760f41d
> > Author: Phil Oester <<a href="mailto:kernel@linuxace.com">kernel@linuxace.com</a>>
> > Date: Mon Jun 26 00:00:57 2006 -0700
> >
> > [NET]: skb_find_text ignores to argument
>
> Ah, thanks for digging this up! IIUC, it merely asserts the start of the
> matching string lies within the given boundaries, it may still extend to past
> the end.
>
> Is my interpretation about skb_seq_read() right though and specifying a too
> narrow range could lead to a false negative? In other words, does 'from - to'
> have to include the pattern's length?</span >
By false negative you mean, pattern goes over the 'to' boundary?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>