ping6 and a do-not-fragment option

pluknet pluknet at gmail.com
Thu Dec 10 21:54:14 UTC 2009


2009/12/10 Doug Barton <dougb at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ping6.nofrag.patch
Type: application/octet-stream
Size: 1986 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20091210/dcb63ab9/ping6.nofrag.obj


More information about the freebsd-net mailing list