RADIUS/UDP and the DF bit

Stefan Winter stefan.winter at restena.lu
Tue Aug 25 10:25:48 CEST 2009


Hi,

>> 11:51:25.253733 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 221) radius-1.restena.lu.tdp-suite > eomund.restena.lu.radius: [udp sum ok] RADIUS, length: 193
>>     
>
>   Maybe the setsockopt() has to be done after the bind()...
>   

I played around a bit with this. Turned out that no matter where I
placed the code in this function, it didn't have any effect. Then I
grep'ed the code for other socket() calls and found the only other
occurence in

main/listen.c: listen_bind()

I replicated the code there and now all packets leave the server with
the DF bit cleared (works for both replies and self-initiated messages).

Greetings,

Stefan Winter

-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473




More information about the Freeradius-Devel mailing list