Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 09:50:16 +0300
From:      Denis Antrushin <DAntrushin@mail.ru>
To:        freebsd-net@freebsd.org
Subject:   Re: Is this correct?
Message-ID:  <4BA9B628.9070407@mail.ru>
In-Reply-To: <9a542da31003190453s1e7598efr8f35f525871f5589@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

On 03/19/10 14:53, Ermal Luçi wrote:
> Shouldn't this check be
>   if (m->m_len>  sizeof (struct ip)) {
> instead of
>   if (m->m_len<  sizeof (struct ip)) {
>
> in
> http://fxr.watson.org/fxr/source/netipsec/ipsec.c?im=excerpts#L595
>

You're right (only '>' should be '>=' here, perhaps?).
This change fixed my problem with natted ipsec when
UDP NATT port 4500 sometimes turned into garbage in socket's
security policies. After I applied this fix, ports are correct.






home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BA9B628.9070407>