tc filter: match tcp src vs. match ip sport

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    Hi all :))

    This matches what I want:

    tc filter add dev eth0 protocol ip parent 1:0 prio 9 u32\
        match ip sport 0x3000 0xf000 flowid 1:22

    and traffic goes to 1:22, but this one doesn't match:

    tc filter add dev eth0 protocol ip parent 1:0 prio 9 u32\
        match tcp src 0x3000 0xf000 flowid 1:22

    I don't understand why the first one matches and the second one
doesn't :? because in the output of "tc filter show" the only
difference is that the first one matches "at 20" and the second one
"at nexthdr+0", which should be identical :?????

    What the heck am I doing wrong? Thanks a lot :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux