Commit Graph

72 Commits

Author SHA1 Message Date
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 52d5ac3fcb Fix build issues 2005-07-05 22:11:37 +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 08837cb2f5 ChangeLog update for Thomas's patches 2005-06-23 17:33:56 +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
shemminger 2b4fad69ff Decnet documentation update 2005-06-13 18:47:56 +00:00
shemminger 99f830de2f Device indices are unsigned and use if_nametoindex as fallback 2005-06-07 22:15:48 +00:00
shemminger 9bec1a4363 Masahide NAKAMURA <nakam@linux-ipv6.org>
It fixes flush feature for IPsec(ip xfrm).
Jamal gave me comment about it. I've tested it on 2.6.11.7.
Please find the log below, check code and pull it:

bk://bk.skbuff.net:38000/iproute2-xfrm-flush


ChangeSet@1.182, 2005-04-13 21:19:44+09:00, nakam@linux-ipv6.org
  [ip] add "deleteall" command for xfrm;
  "flush" uses kernel's flush interface and
  "deleteall" uses legacy iproute2's flush feature like
  getting-and-deleting-for-each.
2005-06-07 21:58:25 +00:00
shemminger e445765dcb These two ChangeSets are for iproute2;
One adds timestamp option (-t) to ip's monitoring
like `ip -t monitor` or `ip -t xfrm monitor`. This is commented by Jamal.
The other is a minor fix for xfrm monitor.
2005-06-07 21:55:03 +00:00
osdl.net!shemminger ec596427c1 add more changelog entries about what in to last release
(Logical change 1.184)
2005-04-01 19:56:29 +00:00
osdl.net!shemminger 78615aaa1d Fix build problem on 2.4
(Logical change 1.183)
2005-03-30 18:51:35 +00:00
osdl.net!shemminger 16bd7e0efe Updates from Jamal
(Logical change 1.181)
2005-03-30 18:43:30 +00:00
osdl.net!shemminger 3819eb9569 Fix netlink message alignment when the last routing attribute added
has a data length not aligned to RTA_ALIGNTO.

(Logical change 1.179)
2005-03-30 18:18:12 +00:00
net[shemminger]!shemminger f082b64fb4 Import patch addr-del
(Logical change 1.178)
2005-03-30 18:16:10 +00:00
osdl.net!shemminger 2cea8f2fb2 add comments about last changeset
(Logical change 1.177)
2005-03-30 18:14:55 +00:00
osdl.net!shemminger f8f9de56f2 Switch to stack (rather than calloc) for tables.
(Logical change 1.176)
2005-03-30 18:11:49 +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
osdl.net!shemminger afa10e2527 add credit where it is due to Jamal for ipt fix.
(Logical change 1.170)
2005-03-14 22:23:38 +00:00
site!shemminger 924d4fd011 Cleanup and extend batch mode.
(Logical change 1.169)
2005-03-14 22:19:16 +00:00
osdl.net!shemminger 25afd1cbb1 document changes.
(Logical change 1.167)
2005-03-14 19:35:32 +00:00
osdl.net!shemminger 900da08b47 Batch mode comments
(Logical change 1.163)
2005-03-14 19:04:15 +00:00
osdl.net!shemminger b6149fd88e print NO-CARRIER flag if there is no carrier and the link is up.
(Logical change 1.161)
2005-03-14 18:47:38 +00:00
osdl.net!shemminger 3d956fac02 Need to handle system and user hz being different.
(Logical change 1.159)
2005-03-14 18:44:54 +00:00
osdl.net!shemminger 9fcda92ea1 Update changelog and snapshot.
(Logical change 1.154)
2005-03-10 19:04:50 +00:00
osdl.net!shemminger e00273c0ac document changes.
(Logical change 1.141)
2005-02-09 22:05:41 +00:00
osdl.net!shemminger 277325d2ea Don't mix address families when flushing.
(Logical change 1.139)
2005-02-07 18:28:31 +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 d5b485564b Add experimental distribution.
(Logical change 1.135)
2005-02-07 18:01:21 +00:00
osdl.net!shemminger cb20096dc8 document spelling fix.
(Logical change 1.132)
2005-01-18 22:31:42 +00:00
39!tgraf 5d91c8f7e5 update changelog
(Logical change 1.131)
2005-01-18 22:16:49 +00:00
osdl.net!shemminger 6b58e7f8b7 Add ChangeLog for Thomas cleanups
(Logical change 1.130)
2005-01-18 22:14:29 +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 d71443ad9c Import patch iproute2.119
(Logical change 1.121)
2005-01-17 23:30:41 +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 85ac60ce41 Import patch iproute2.114
(Logical change 1.116)
2005-01-17 23:27:37 +00:00
net[shemminger]!shemminger 526afe4008 Import patch iproute2.113
(Logical change 1.115)
2005-01-17 23:27:23 +00:00
net[shemminger]!shemminger 82af531582 Import patch iproute2.112
(Logical change 1.114)
2005-01-17 23:27:05 +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 00fa84801e Import patch mirred.patch
(Logical change 1.111)
2004-12-08 20:13:56 +00:00
osdl.net!shemminger edcab3fa3c Update change log
2004/10/20 16:23:42-07:00 osdl.net!shemminger
update for today's minor fixes.

(Logical change 1.110)
2004-12-08 16:38:01 +00:00
osdl.net!shemminger 4dbb819535 Update patch log
(Logical change 1.109)
2004-12-07 23:57:50 +00:00
osdl.net!shemminger 50772dc51a Add ip rule flush capabilty and fix all the prototype changes
because of that code rewrites the nlmsghdr.

(Logical change 1.106)
2004-12-07 21:48:29 +00:00
osdl.net!shemminger 54f37eb320 lnstat in Changelog
(Logical change 1.99)
2004-10-19 20:22:15 +00:00
osdl.net!shemminger 67d295b088 Make sure to prevent overflow in nstat
(Logical change 1.97)
2004-10-19 20:02:59 +00:00
osdl.net!shemminger cece248463 IP using wrong structure for stats.
(Logical change 1.96)
2004-10-19 19:57:38 +00:00
osdl.net!shemminger abf1d0b097 fix scaling in print_rates (for bits).
(Logical change 1.95)
2004-10-19 19:51:41 +00:00
osdl.net!shemminger 1b1c322f8b SCCS merged
2004/09/28 12:15:18-07:00 osdl.net!shemminger
add mike's stuff.

(Logical change 1.89)
2004-09-28 19:16:48 +00:00