Re: [PATCH net] rxrpc: Fix use of Don't Fragment flag

From: David Howells
Date: Tue Jan 09 2024 - 09:17:01 EST


Marc Dionne <marc.dionne@xxxxxxxxxxxx> wrote:

> > +{
> > + if (set)
> > + ip_sock_set_mtu_discover(local->socket->sk, IP_PMTUDISC_DONT);
> > + else
> > + ip_sock_set_mtu_discover(local->socket->sk, IP_PMTUDISC_DO);
> > +}
>
> Shouldn't those be reversed - don't fragment should be IP_PMTUDISC_DO?

Meh. Yes.

> Also, and this is probably already an issue with current code, I don't
> think this is effective if the socket is V6, which it will be in most
> cases.

Hmmm... I guess I should tweak IPV6_MTU_DISCOVER also.

David