Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2009 00:54:12 +0300
From:      pluknet <pluknet@gmail.com>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: ping6 and a do-not-fragment option
Message-ID:  <a31046fc0912101354g21afe649r278d0f70095af546@mail.gmail.com>
In-Reply-To: <4B21576C.7030605@FreeBSD.org>
References:  <20091210190305.GT45152@gerbil.cluepon.net> <4B21576C.7030605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0015175cab14f647b9047a66d87b
Content-Type: text/plain; charset=ISO-8859-1

2009/12/10 Doug Barton <dougb@freebsd.org>:
> Richard A Steenbergen wrote:
>> Hi,
>>
>> I just noticed, while trying to do a little debugging, that ping6
>> doesn't seem to have a way to specify "do not fragment" like ping does
>> for IPv4. Obviously the way this is implemented has been changed, since
>> there is no longer a DF-bit in IPv6, but it looks like there is already
>> an IPV6_DONTFRAG setsockopt() available for exactly this purpose. It
>> looks like IPV6_DONTFRAG got added at a later date (from RFC3542),
>> perhaps after ping6 was initially written.
>>
>> It seems like the correct fix would be to add a cli option to ping6
>> (perhaps 'D', since it's available and matches the command in ping) to
>> call this setsockopt() and implement a "do not fragment" option.
>>
>
> Sounds good, we look forward to reviewing your patches. :)
>

Sure, there might be compatibility issues in between KAME or something else..

-- 
wbr,
pluknet

--0015175cab14f647b9047a66d87b
Content-Type: application/octet-stream; name="ping6.nofrag.patch"
Content-Disposition: attachment; filename="ping6.nofrag.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g322csgi0

ZGlmZiAtdXJwTiBwaW5nNi5vcmlnL3Bpbmc2LjggcGluZzYvcGluZzYuOAotLS0gcGluZzYub3Jp
Zy9waW5nNi44CTIwMDktMTItMTAgMjM6Mzg6MzcuMDAwMDAwMDAwICswMzAwCisrKyBwaW5nNi9w
aW5nNi44CTIwMDktMTItMTEgMDA6MTg6MTcuMDAwMDAwMDAwICswMzAwCkBAIC00MCw5ICs0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Nrb3B0KHMsIFNP
TF9TT0NLRVQsIFNPX0RFQlVHLCAoY2hhciAqKSZob2xkLAogCQkgICAgc2l6ZW9mKGhvbGQpKTsK
QEAgLTI3ODAsNyArMjc4OCw3IEBAIHVzYWdlKCkKIAkgICAgIkEiCiAjZW5kaWYKIAkgICAgInVz
YWdlOiBwaW5nNiBbLSIKLQkgICAgImQiCisJICAgICJEZCIKICNpZiBkZWZpbmVkKElQU0VDKSAm
JiAhZGVmaW5lZChJUFNFQ19QT0xJQ1lfSVBTRUMpCiAJICAgICJFIgogI2VuZGlmCg==
--0015175cab14f647b9047a66d87b--



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