Commit Graph

152 Commits

Author SHA1 Message Date
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