Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2002 14:50:25 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Maxim Konovalov <maxim@macomnet.ru>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: ip_output() problem with a large packets and IP_OPTIONS
Message-ID:  <200209142150.g8ELoP207460@arch20m.dellroad.org>
In-Reply-To: <20020913194115.F94274-100000@news1.macomnet.ru> "from Maxim Konovalov at Sep 13, 2002 08:03:14 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Maxim Konovalov writes:
> There is a problem when there is no room for ip options and
> ip_insertoptions() fails. ip_output() does not initialize len and
> doesn't check what ip_insertoptions() returns. This behaviour leads to
> a panic when you are trying to send 65507 bytes packet and
> setsockopt(IP_OPTIONS). Please review a patch below:

It's definitely broken the way it is and your patch seems to fix it.

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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