Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: DervishD <lartc@dervishd.net>
To: lartc@vger.kernel.org
Subject: [LARTC] tc filter: match tcp src vs. match ip sport
Date: Tue, 22 Nov 2005 22:37:38 +0000	[thread overview]
Message-ID: <20051122223738.GA1284@DervishD> (raw)

    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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2005-11-22 22:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051122223738.GA1284@DervishD \
    --to=lartc@dervishd.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox