Hello! I'd like to use PriorityInheritance option, despite it is still experimental. (Why it could be experimental, when it looks quite simple feature, no?) But this option doesn't change the TOS field of outgoing UDP packet. I just do tcpdump on outgoing interface from vty1: $ sudo tcpdump -vni eth0 udp dst port 655 And from vty2 I do ping with setting of tos field to EF(0xb8). $ ping -c1 <remote-ip-addr-on-tap-device> -Q 0xb8 And on outgoing interface I can only see the folowing from tcpdump: IP(tos 0x0, ttl 64, id 0, offset 0, flags[DF], proto UDP(17), length 136 So the TOS field doesn't take the value from TOS of encapsulated packet. Is this a bug or I do something wrong? Thank you in advance. ==$ tinc.conf $ Name = eiger Interface = tap1 Mode = switch MaxTimeout = 120 PriorityInheritance = yes ConnectTo = pika ===
Hello! I'd like to use PriorityInheritance option, despite it is still experimental. (Why it could be experimental, when it looks quite simple feature, no?) But this option doesn't change the TOS field of outgoing UDP packet. I just do tcpdump on outgoing interface from vty1: $ sudo tcpdump -vni eth0 udp dst port 655 And from vty2 I do ping with setting of tos field to EF(0xb8). $ ping -c1 <remote-ip-addr-on-tap-device> -Q 0xb8 And on outgoing interface I can only see the folowing from tcpdump: IP(tos 0x0, ttl 64, id 0, offset 0, flags[DF], proto UDP(17), length 136 So the TOS field doesn't take the value from TOS of encapsulated packet. Is this a bug or I do something wrong? Thank you in advance. ==$ tinc.conf $ Name = eiger Interface = tap1 Mode = switch MaxTimeout = 120 PriorityInheritance = yes ConnectTo = pika ===
On Sat, Jan 19, 2013 at 01:53:01PM +0400, SVM wrote:> I'd like to use PriorityInheritance option, despite it is still > experimental. (Why it could be experimental, when it looks quite > simple feature, no?)It might not work on all platforms. Also, it is limited to IPv4 packets that are tunneled inside other IPv4 packets. Maybe it's not really experimental but a "your mileage may vary" kind of feature.> But this option doesn't change the TOS field of outgoing UDP packet.[...]> Is this a bug or I do something wrong?[...]> Mode = switchI see I only ever implemented this for router mode. I made it work in switch mode as well, you can try the latest version (either the master or 1.1 branch) from git. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20130120/ca769019/attachment.pgp>