Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] tc is broken for "protocol arp" filters
@ 2004-11-21  6:09 gypsy
  0 siblings, 0 replies; only message in thread
From: gypsy @ 2004-11-21  6:09 UTC (permalink / raw)
  To: lartc

I have tested Devik's tc (103592 bytes) and 2.6.8 which I compiled. 
Both return "RTNETLINK answers: Invalid argument".  

Stephen Hemminger should be sent a patch that fixes this.

An example that returns the above error message is:
tc filter add dev eth1 parent 1: protocol arp prio 5 u32 \
   match u16 0x0806 0xffff at -2 flowid 1:50

I'm using this because it works:
# Example that matches ARP (a big "thank you" to Martin Brown for
this!):
# dst MAC is 6 bytes at -14
# src MAC is 6 bytes at -8
# the ARP protocol is 2 bytes at -2
# the "0806" comes from linux/include/linux/if_ether.h
tc filter add dev eth1 parent 1: protocol ip prio 5 u32 \
   match u16 0x0806 0xffff at -2 flowid 1:50

gypsy
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-21  6:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-21  6:09 [LARTC] tc is broken for "protocol arp" filters gypsy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox