Is this correct?

Bjoern A. Zeeb bz at FreeBSD.org
Fri Apr 2 17:45:07 UTC 2010


On Fri, 2 Apr 2010, Ermal Luçi wrote:

Hi,

>>> Shouldn't this check be
>>> if (m->m_len > sizeof (struct ip)) {
>>> instead of
>>> if (m->m_len < sizeof (struct ip)) {
>>
>> Should it be > or >= ?
>>
> I would say >= since that is what logic assumes!

Yeah. Commit that.

/bz

-- 
Bjoern A. Zeeb         It will not break if you know what you are doing.


More information about the freebsd-net mailing list