[asterisk-dev] Re: [Fwd: [svn-commits] oej: branch oej/iaxtrunkfix-1.2 r44779

Kevin P. Fleming kpfleming at digium.com
Thu Oct 12 10:56:27 MST 2006


----- Brian Candler <B.Candler at pobox.com> wrote:
> Unless you explicitly set a socket option, or disable PMTU globally,
> then:
> 
> * All outbound UDP packets are sent with DF=1

This is absolutely 100% correct.

> You can get DF=0 in Linux by adding the following code after the
> socket is
> opened:
> 
>     {
>         int val = IP_PMTUDISC_DONT;
>         if (setsockopt(s, IPPROTO_IP, IP_MTU_DISCOVER, &val,
> sizeof(val)) < 0)
>         {
>             fprintf(stderr, "Failed to disable PMTU discovery\n");
>         }
>     }
> 
> [This is Linux-specific code which would need to be autoconf'd out on
> non-Linux systems]

Will do this now. This is a much better solution for Asterisk 1.2, and likely will solve the problem for all Asterisk users on Linux anyway.

-- 
Kevin P. Fleming
Senior Software Engineer
Digium, Inc.



More information about the asterisk-dev mailing list