Problem setting filter rule for incoming tc

Linux Advanced Routing and Traffic Control

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

 



Goodmorning

I am trying to use traffic control on a slackware 9.1.

I downloaded iproute2.

The system comes with linux 2.4.22 so I run into problem with the compilation of the package. After diging in the list archives I found a post about using 2.4.21 for compile and it worked.

This far ok.

After that I issued:

tc qdisc add dev $DEV handle ffff: ingress

which worked ok with no error messages and after it I could see stats for it with tc -s qdisk.

then I tried:

tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src\
   0.0.0.0/0 police rate 150kbit burst 10k drop flowid :1

and it brakes with

RTNETLINK answers: Invalid argument


Thank you very much in advance I am posting my .config |grep -i net CONFIG_NET=y # Networking options CONFIG_NETLINK_DEV=m CONFIG_NETFILTER=y # CONFIG_NETFILTER_DEBUG is not set CONFIG_INET=y CONFIG_NET_IPIP=m CONFIG_NET_IPGRE=m # CONFIG_INET_ECN is not set # IP: Netfilter Configuration # IPv6: Netfilter Configuration CONFIG_DECNET=m # CONFIG_DECNET_SIOCGIFCONF is not set # CONFIG_DECNET_ROUTER is not set # CONFIG_NET_DIVERT is not set # CONFIG_ECONET is not set # CONFIG_NET_FASTROUTE is not set # CONFIG_NET_HW_FLOWCONTROL is not set CONFIG_NET_SCHED=y CONFIG_NET_SCH_CBQ=y CONFIG_NET_SCH_HTB=y CONFIG_NET_SCH_CSZ=m CONFIG_NET_SCH_PRIO=m CONFIG_NET_SCH_RED=m CONFIG_NET_SCH_SFQ=m CONFIG_NET_SCH_TEQL=m CONFIG_NET_SCH_TBF=m CONFIG_NET_SCH_GRED=m CONFIG_NET_SCH_DSMARK=m CONFIG_NET_SCH_INGRESS=y CONFIG_NET_QOS=y CONFIG_NET_ESTIMATOR=y # CONFIG_NET_CLS is not set # Network testing # CONFIG_NET_PKTGEN is not set # Network device support CONFIG_NETDEVICES=y # ARCnet devices # CONFIG_ARCNET is not set # Ethernet (10 or 100Mbit) CONFIG_NET_ETHERNET=y CONFIG_NET_VENDOR_3COM=y CONFIG_NET_VENDOR_SMC=y CONFIG_NET_VENDOR_RACAL=y # CONFIG_NET_ISA is not set CONFIG_NET_PCI=y CONFIG_PCNET32=m CONFIG_NET_POCKET=y # Ethernet (1000 Mbit) # CONFIG_NET_RADIO is not set # CONFIG_NET_FC is not set # Network File Systems


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

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