(usagi-users 03600) Bug in IPv6 socket MTU ?

[email protected]
Newsgroups gmane.linux.ipv6.usagi.users
Message-ID <[email protected]>
Hi,

I need to set the mtu of my IPv6 sent packet via
setsocktopt(). I tried, but apparently linux 2.6.15
doesn't take it into account : packet are still fragmente
with the mtu defined on the interface.

Proof of concept code can be downloaded here :

http://clarinet.u-strasbg.fr/~hoerdt/mtu.c

This code send 1 IPv6 packet/s with 2000 bytes of data, and set
the MTU to 1280. On my box, the MTU is still at 1500.

Looking at the code in net/ipv6/ip6_output, function ip6_fragment, it
doesn't seems to be difficult to have this fixed, taking in account
the value set by the IPV6_MTU setsockopt call. Could you do it ? 


Thanks,

Hoerdt Mickaël
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.