jamal
b64f58b013
update rest to use nl_mgrp
...
cheers,
jamal
[ALL] update rest to use nl_mgrp
Signed-off-by: J Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-03-13 14:39:05 -07:00
Stephen Hemminger
de539ecf6c
iptables library fix
...
Don't hard code iptables library path. Allow use of environment variable.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-03-06 13:03:19 -08:00
Mike Frysinger
95dd595049
do not ignore build failures in subdirs of iproute2
...
if a file fails to compile in a subdir of iproute2 fails (say "tunnel.c" in
the "ip" dir), the top level makefile does not abort:
all: Config
@for i in $(SUBDIRS); \
do $(MAKE) $(MFLAGS) -C $$i; done
the attached patch inserts a 'set -e' so that if the $(MAKE) fails, the all
target fails as well
-mike
2007-03-05 17:50:49 -08:00
Stephen Hemminger
40076f622e
netem parameters to change command
...
When using tc to change netem attributes, only those values
on the command line should be passed down, others should
remain unchanged.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2007-01-09 15:46:55 -08:00
Hasso Tepper
e5d179d815
Fixes for tc help commands
...
* "tc [class|qdisc|filter] get" doesn't exist, remove it from inline help.
* Add "replace" to "tc [class|filter] get" inline help.
* Fix "tc [class|qdisc|filter] help" output:
~$ tc class help
[snip]
Command "help" is unknown, try "tc class help".
~$
with my best wishes,
--
Hasso Tepper
Elion Enterprises Ltd. [AS3249]
Data Communication Network Administrator
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-14 15:01:30 -08:00
Stephen Hemminger
81c61790d5
Eliminate trailing whitespace
...
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-13 17:05:50 -08:00
jamal
dcf1349722
Fix missing class/flowid oddity
...
[U32] Fix missing class/flowid oddity
When an action or policer is specified but not a classid/flowid, the
syntax accepts it but the kernel never really hits it.
This has been a long standing problem, but thanks to the persistence
of Marco Berizzi <pupilla@hotmail.com> I broke down and fixed it.
Signed-off-by: J Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-13 17:00:46 -08:00
Stephen Hemminger
ae665a522b
Remove trailing whitespace
...
Go through source files and remove all trailing whitespace
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-05 10:10:22 -08:00
Stephen Hemminger
fa56513034
Trap possible overflow in usec values to netem
...
If user asks for large usec value it could overflow 32 bits.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-10-19 13:10:26 -07:00
Stephen Hemminger
302d3fb720
More TC patches from Jamal.
...
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-09-25 17:08:40 -07:00
Jamal Hadi Salim
ebf32083e0
First part of cleaning up the help output of actions.
...
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-08 12:10:08 -07:00
Stephen Hemminger
da7aea7946
Add ignore files to make using git easier
...
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-08 12:04:38 -07:00
Jamal Hadi Salim
5bec34845b
This patch adds ability to monitor tc events similar to ipmonitor.
...
User runs "tc monitor" (without quotes) and watches events of
addition, deletion and updates from qdiscs, classes, filters and
actions as they happen.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-08 11:55:15 -07:00
Jesper Dangaard Brouer
e81c1a22cd
Trivial correction to the usage text.
...
- Remove the parameter "get" as it is not implemented.
- Add the parameter "replace".
2006-08-04 11:02:51 -07:00
jamal
f1e4f042a5
Add help text for actions.
2006-08-04 10:59:34 -07:00
shemminger
267480f553
Backout the 2.4 utsname hash patch.
2006-03-22 00:07:49 +00:00
shemminger
46b67dab26
Fix build errors from last patch
2006-03-14 19:38:34 +00:00
shemminger
3925ad8119
Fixes for tc hash sample.
2006-03-14 19:36:31 +00:00
shemminger
7e6b809cb9
Make error message better on tc with wrong args.
2006-03-10 23:40:56 +00:00
shemminger
f3b1006c73
Missing memset in tc sample
2006-03-10 23:27:13 +00:00
shemminger
d8a45819b2
Fix u32 filter for ipv6 priority
2006-01-10 18:45:42 +00:00
shemminger
e9bc3c40d0
Always send reorder message (for compatiablity)
...
and parse response correctly with netem.
2005-12-10 00:01:02 +00:00
shemminger
a31a5d5904
Add corrupt option for netem
2005-12-09 23:27:44 +00:00
shemminger
f453a0d451
Fix tc pfifo_fast with options
2005-10-07 16:33:21 +00:00
shemminger
8ed63ab1f1
Fix leaks and warnings reported by valgrind.
2005-09-21 19:33:17 +00:00
shemminger
4073448cc8
add usage for batch to tc.
2005-09-01 22:29:05 +00:00
shemminger
351efcde4e
Update header files to 2.6.14
...
Integrate support for DCCP and tcp_diag into ss
Add -batch to ip command
2005-09-01 19:21:50 +00:00
shemminger
6864c1e789
Update to latest kernel headers.
...
Fix out of range on paretonormal
2005-08-08 20:24:41 +00:00
shemminger
3fcdebb6d0
Fix ematch warnings with GCC4.0
2005-07-14 16:49:27 +00:00
shemminger
737f15f6da
Thomas's ematch fixes for lex.
...
Fix more GCC signedness warnings.
2005-07-08 22:08:47 +00:00
shemminger
f332d16924
Cleanup GCC4 warnings about signedness.
2005-07-05 22:37:15 +00:00
shemminger
52d5ac3fcb
Fix build issues
2005-07-05 22:11:37 +00:00
shemminger
c428e91b5e
More missing cvs adds..
2005-06-23 20:29:43 +00:00
shemminger
6a805a65c0
and the .h file..
2005-06-23 20:27:02 +00:00
shemminger
7a473c77e6
Overlooked one more file.
2005-06-23 20:26:01 +00:00
shemminger
311b41454d
Add new extended match files.
2005-06-23 20:25:16 +00:00
shemminger
c0fc3ab4d5
Build of ematch requires bison extensions to yacc.
2005-06-23 20:16:43 +00:00
shemminger
6d4662d4f7
From: Pablo Neira
...
Hi jamal,
I found some spare time to play around a bit more with you ipt action stuff.
I've tested the patch attached with the testcase here below. It works
fine here. It fixes broken target option checkings (final_check) and a
leak in the merge_options function. I've killed copy_options since I
didn't find any reason why we need it.
--- test.sh ---
tc qdisc del dev wlan0 ingress
tc qdisc add dev wlan0 ingress
tc filter add dev wlan0 parent ffff: protocol ip prio 6 u32 \
match ip src 192.168.0.2/32 flowid 1:16 \
action ipt -j TOS --set-tos Maximize-Reliability
sleep 3
tc -s filter ls dev wlan0 parent ffff:
--- end of test.sh ---
Results:
tablename: mangle hook: NF_IP_PRE_ROUTING
target: TOS set Maximize-Reliability index 0
filter protocol ip pref 6 u32
filter protocol ip pref 6 u32 fh 800: ht divisor 1
filter protocol ip pref 6 u32 fh 800::800 order 2048 key ht 800 bkt 0
flowid 1:16
match c0a80002/ffffffff at 12
action order 1: tablename: mangle hook: NF_IP_PRE_ROUTING
target TOS set Maximize-Reliability
index 18 ref 1 bind 1 installed 3 sec used 0 sec
Action statistics:
Sent 725 bytes 7 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
Now, check if options passed to the target are correct.
# tc filter add dev wlan0 parent ffff: protocol ip prio 6 u32 \
match ip dst 192.168.0.2/32 flowid 1:16 \
action ipt -j TOS --set-tos
^^^
missing parameter
ipt: option `--set-tos' requires an argument
tc-ipt v0.1: TOS target: Parameter --set-tos is required
Try `tc-ipt -h' or 'tc-ipt --help' for more information.
btw, how's your schedule ? did you finally get spare time to come to the
netfilter workshop in seville ?
bye,
Pablo
2005-06-23 17:36:38 +00:00
shemminger
dd3e90853d
Fix off-by-one while generating argument vector
2005-06-23 17:32:22 +00:00
shemminger
87773db551
Add ematch cleanup
2005-06-23 17:23:53 +00:00
shemminger
9ddbb02e50
Add extended matches (nbyte, cmp, u32, meta)
2005-06-23 17:21:46 +00:00
shemminger
ea8fc1047d
Netem support for reorder
...
Update include files and add support for TCP_CONG
2005-06-22 18:27:49 +00:00
osdl.net!shemminger
6ce88ca61d
Fix from jamal
...
2005/03/25 04:34:05-08:00 net[shemminger]!shemminger
Import patch p2_mirred
(Logical change 1.181)
2005-03-30 18:43:30 +00:00
net[shemminger]!shemminger
894b1c6687
Import patch p_mipt
...
(Logical change 1.180)
2005-03-30 18:19:55 +00:00
osdl.net!shemminger
08856f0219
Handle batch mode better.
...
Add comments midline and -force option.
(Logical change 1.173)
2005-03-18 19:40:55 +00:00
site!shemminger
c2f3a0f94d
Fix batch mode, allow continuation, comments, etc.
...
(Logical change 1.169)
2005-03-14 22:19:16 +00:00
site!shemminger
c1027a759b
Fix batch mode handle usage.
...
(Logical change 1.169)
2005-03-14 22:19:16 +00:00
osdl.net!shemminger
7901660a0d
change how netlink socket is handled for batch mode.
...
(Logical change 1.166)
2005-03-14 19:34:12 +00:00
osdl.net!shemminger
94c9cc51eb
Style fix.
...
2005/03/10 12:24:53-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
osdl.net!shemminger
024481bbe1
Style fix.
...
2005/03/10 12:23:54-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
osdl.net!shemminger
b611d516d8
Style fix.
...
2005/03/10 12:23:43-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
osdl.net!shemminger
52f337c1c1
Style fix.
...
2005/03/04 18:49:53-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
osdl.net!shemminger
f9375b7018
Style fix.
...
2005/03/04 18:48:00-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
osdl.net!shemminger
11656f1bb4
Style fix.
...
2005/03/04 18:46:32-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
osdl.net!shemminger
044ebf35b1
Style fix.
...
2005/03/04 18:32:42-08:00 net[shemminger]!shemminger
Import patch iproute-batch.1.050209.patch
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
net[shemminger]!shemminger
38c7e2e6a5
Import patch iproute-batch.1.050209.patch
...
(Logical change 1.162)
2005-03-14 19:02:41 +00:00
net[shemminger]!shemminger
5e8bc6316b
Import patch iproute2-hz
...
(Logical change 1.159)
2005-03-14 18:44:54 +00:00
osdl.net!shemminger
a5a6f1e80d
more ifdef excession.
...
(Logical change 1.158)
2005-03-10 20:26:08 +00:00
osdl.net!shemminger
b7024f2ef5
get rid of some old ifdef'd out code.
...
(Logical change 1.157)
2005-03-10 20:22:50 +00:00
osdl.net!shemminger
65840e27ba
put register_target in and get rid of code that ease
...
duplicated then marked with if 0
(Logical change 1.156)
2005-03-10 20:21:48 +00:00
osdl.net!shemminger
63ae25d0ed
Build warning fix
...
(Logical change 1.153)
2005-03-10 19:04:17 +00:00
net[shemminger]!shemminger
1d2d1cb522
Import patch thomas.1
...
(Logical change 1.147)
2005-03-10 19:00:42 +00:00
osdl.net!shemminger
6cc2f073f3
netem source reorg
...
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
62c44fc4ce
Rename: tc/paretonormal.c -> netem/paretonormal.c
...
}(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
8e2c752244
Rename: tc/pareto.c -> netem/pareto.c
...
}(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
70c3c93efe
Rename: tc/normal.c -> netem/normal.c
...
}(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
bddad47867
Rename: tc/maketable.c -> netem/maketable.c
...
}(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
c61c651b93
Rename: netem/ping.trace -> netem/experimental.dat
...
}(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger
a8b303cc3f
validate classid
...
(Logical change 1.137)
2005-02-07 18:16:29 +00:00
osdl.net!shemminger
fb9b1d0f6a
fix potential memory corruption
...
(Logical change 1.136)
2005-02-07 18:15:04 +00:00
site!shemminger
cc2b1bd52c
(Logical change 1.135)
2005-02-07 18:01:21 +00:00
site!shemminger
9bc8e3fe57
Initial revision
2005-02-07 18:01:21 +00:00
site!shemminger
d5b485564b
Add experimental distribution.
...
(Logical change 1.135)
2005-02-07 18:01:21 +00:00
8!tgraf
ac2fc2df5e
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
6!tgraf
14ee9e6159
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
5!tgraf
021ed13fdc
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
4!tgraf
3b3ecd31c1
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
3!tgraf
5cb5ee34d3
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
2!tgraf
7893400077
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
14!tgraf
7d69fd97ec
Use parse_rtattr_nested
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
8!tgraf
4a86fe19bc
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
6!tgraf
1b52a7622e
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
5!tgraf
034102f258
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
4!tgraf
228569c3ff
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
3!tgraf
60a383ae5f
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
2!tgraf
fc78a8e98d
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
17!tgraf
1a1d22a722
Use NLMSG_TAIL
...
(Logical change 1.127)
2005-01-18 01:24:18 +00:00
2!tgraf
3866d4643e
Give pedit kind size a name
...
(Logical change 1.126)
2005-01-18 00:17:27 +00:00
2!tgraf
6107d297ac
Avoid using magic number
...
(Logical change 1.126)
2005-01-18 00:17:27 +00:00
8!tgraf
cda4026c7f
move dl body cache into get_action_kind
...
(Logical change 1.125)
2005-01-18 00:09:02 +00:00
2!tgraf
fe102f610a
move dl body cache into get_pedit_kind
...
(Logical change 1.125)
2005-01-18 00:09:02 +00:00
net[shemminger]!shemminger
7e7c737245
Import patch iproute2.121
...
(Logical change 1.124)
2005-01-17 23:32:51 +00:00
net[shemminger]!shemminger
de5c62a901
Import patch iproute2.121
...
(Logical change 1.123)
2005-01-17 23:32:11 +00:00
net[shemminger]!shemminger
b906243b62
Import patch iproute2.116
...
(Logical change 1.118)
2005-01-17 23:28:16 +00:00
net[shemminger]!shemminger
6f0ba88be0
Import patch iproute2.115
...
(Logical change 1.117)
2005-01-17 23:27:56 +00:00
net[shemminger]!shemminger
1ffd7fd23e
Import patch iproute2.110
...
(Logical change 1.112)
2005-01-17 23:26:23 +00:00
net[shemminger]!shemminger
3e1d2ea6ab
Initial revision
2005-01-17 23:26:23 +00:00
net[shemminger]!shemminger
00fa84801e
Import patch mirred.patch
...
(Logical change 1.111)
2004-12-08 20:13:56 +00:00
net[shemminger]!shemminger
d74b15e165
Initial revision
2004-12-08 20:13:56 +00:00
ch[shemminger]!tgraf
e5879dc603
iproute2: gnet_stats
...
(Logical change 1.107)
2004-12-07 23:52:52 +00:00