Commit Graph

260 Commits

Author SHA1 Message Date
Gregoire Baron
3822cc986c tc: add ACT_CSUM action support (csum)
Add the iproute2 support for the ACT_CSUM action. Can be used as
following, certainly in conjunction with the ACT_PEDIT action (pedit):

 # In order to DNAT (stateless) IPv4 packet from 192.168.1.100 to
 #  0x12345678 (18.52.86.120), and update the IPv4 header checksum and
 #  the UDP checksum (the last one, only if the packet is UDP).
tc filter add eth0 prio 1 protocol ip parent ffff: \
  u32 match ip src 192.168.1.100/32 flowid :1 \
    action pedit munge offset 16 u32 set 0x12345678 \
      pipe csum ip and udp

 # In order to alter destination address of IPv6 TCP packets from fc00::1
 #  and correct the TCP checksum (nothing happened? except maybe for
 #  checksums in the TCP payload ...).
tc filter add eth0 prio 1 protocol ipv6 parent ffff: \
  u32 match ip6 src fc00::1/128 match ip6 protocol 0x06 0xff flowid :1 \
    action pedit munge offset 24 u32 set 0x12345678 \
      pipe csum tcp
2010-12-01 11:17:46 -08:00
Changli Gao
7162c92148 iproute2: tc: f_flow: add key rxhash
We can use rxhash to classify the traffic into flows. As rxhash maybe
supplied by NIC or RPS, it is cheaper.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
2010-11-30 09:57:36 -08:00
Stephen Hemminger
3f5c1a01e6 Update to 2.6.36 headers
Use santized headers from 2.6.36 release
2010-10-20 17:38:04 -07:00
Stephen Hemminger
04a9fc0a50 Update kernel headers to 2.6.36-rc2 2010-08-23 08:35:08 -07:00
Stephen Hemminger
b4397f580e Update kernel derived headers
Version for 2.6.35 version on -next
2010-05-19 08:58:13 -07:00
Stephen Hemminger
a171395410 Update kernel headers to 2.6.34 final version
Last minute IOV format change.
2010-05-17 08:57:24 -07:00
Stephen Hemminger
8881ece54f Update to 2.6.34-rc2 headers 2010-03-29 15:13:14 -07:00
Stephen Hemminger
33ff9324de Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2 2010-03-04 08:31:13 -08:00
Stephen Hemminger
8ecdcce083 Update headers for 2.6.33-net-next
Use santized headers from net-next tree.
2010-03-03 16:22:00 -08:00
Stephen Hemminger
ab32267329 Update exported kernel headers
These corespond with 2.6.33-rc2
2009-12-26 11:02:25 -08:00
Stephen Hemminger
8007bfb5ad Update to 2.6.32 kernel headers 2009-11-10 08:51:17 -08:00
David Woodhouse
580fbd88f7 Add 'ip tuntap' support.
This patch provides support for 'ip tuntap', allowing creation and
deletion of persistent tun/tap devices.
2009-09-19 12:49:41 -07:00
Stephen Hemminger
f40554f687 Update kernel headers to 2.6.31
Final 2.6.31 released, so update sanitized headers.
2009-09-10 09:03:22 -07:00
Stephen Hemminger
f0309aa493 add include/linux/if_arp.h 2009-08-26 09:41:02 -07:00
Stephen Hemminger
c40bba6922 update kernel headers to 2.6.31-rc5 2009-08-06 14:38:13 -07:00
Wolfgang Grandegger
5a2044782b iproute2: Support for the CAN netlink
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
2009-05-26 15:22:44 -07:00
Stephen Hemminger
6788115142 Use sanatized headers from 2.6.29
Update to final 2.6.29 headers
2009-03-24 15:13:31 -07:00
Stephen Hemminger
1e659af3c0 Add DHCP as routing protocol 2009-03-18 13:33:12 -07:00
Patrick McHardy
c86f34942a iproute: add DRR support
add DRR support

This patch adds support for the DRR scheduler I just sent
to iproute.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-01-27 16:11:39 -08:00
Alexander Duyck
f72a7aab0c add support for skbedit action
Provides ability to edit queue_mapping field
	Provides ability to edit priority field

usage: action skbedit [queue_mapping QUEUE_MAPPING] [priority PRIORITY]
	at least one option must be select, or both at the same time

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2009-01-06 19:27:03 -08:00
Stephen Hemminger
05bfd16595 Update headers to 2.6.28
Put in sanitized 2.6.28 headers
2009-01-06 15:03:26 -08:00
Stephen Hemminger
5a67f8f9d3 Update to 2.6.27 API
The one issue was the old multiqueue API, so that is handled
by tc_util.h
2008-09-15 12:05:11 -07:00
Stephen Hemminger
01eb17a66d Update headers to 2.6.26
Copy santized version of headers from 2.6.26 final version.
2008-07-15 11:03:24 -07:00
Stephen Hemminger
3ea2fb985f Update to 2.6.26-rc6 headers
Copy sanitized headers from 2.6.26-rc6
2008-06-20 11:26:38 -07:00
Jesper Dangaard Brouer
292f29b42c ATM cell alignment.
Introducing the function that does the ATM cell alignment, and
modifying tc_calc_rtable() to use this based upon a linklayer
parameter.

Modified from original to use constants from atm.h and
fix all the usages of rtable in same patch.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
2008-04-17 10:04:31 -07:00
Stephen Hemminger
5344bb287c Update kernel headers to 2.6.25-rc7
Copy sanitized kernel headers from 2.6.25-rc7 to ensure proper
compatiability.
2008-04-01 11:37:35 -07:00
Stephen Hemminger
ace7be7d3b add include/linux/hdlc/ioctl.h
Need to add include/linux/hdlc/ioctl.h because it is not present
in older releases.

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2008-02-13 12:32:49 -08:00
Stephen Hemminger
10bd7e8460 add support for matching AOE and CAN ether types
Update the protocol table to match current kernel support.
Why is the list not in an /etc file?
2008-02-07 19:24:31 -08:00
Stephen Hemminger
e7305a84c6 reharmonize headers with pre-freeze 2.6.25
Some minor header file changes headed for 2.6.25
2008-02-07 19:22:42 -08:00
Patrick McHardy
66862d3cc7 cls_flow: add vlan-tag support
commit 94e9cba778cb97d77d9146dc3bd38ff195bc2c8a
Author: Patrick McHardy <kaber@trash.net>
Date:   Sat Feb 2 18:22:16 2008 +0100

    [IPROUTE]: cls_flow: add vlan-tag support

    Signed-off-by: Patrick McHardy <kaber@trash.net>

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2008-02-05 08:36:59 -08:00
Stephen Hemminger
efc0ea56c8 harmonize headers with upcoming 2.6.25
Add stuff from early 2.6.25 merge.

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2008-01-31 22:41:18 -08:00
Patrick McHardy
9932abb498 Add flow classifier support
[IPROUTE]: Add flow classifier support

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2008-01-31 22:28:11 -08:00
Patrick McHardy
5626a24a8b Add support for SFQ xstats
[IPROUTE]: Add support for SFQ xstats

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2008-01-31 22:28:10 -08:00
Stephen Hemminger
fb8cc5b268 update headers to current net-2.6.25
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2008-01-24 13:14:28 -08:00
Stephen Hemminger
bfe594fe31 Update header files from net-2.6.25
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2007-12-31 12:54:18 -08:00
Stephen Hemminger
4c7abb271b Merge branch 'master' into net-2.6.25 2007-12-31 12:51:15 -08:00
Stephen Hemminger
77aa4d03a7 Use netinet/tcp.h (with correction) rather than kernel headers
Fix the userspace header file rather than importing more
kernel headers.

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2007-12-31 10:41:18 -08:00
Stephen Hemminger
118c923cc0 veth.h move to linux/
Move veth.h to linux/ since it is an API.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-12-25 12:38:08 -08:00
Templin, Fred L
0bd17929bc iproute2-2.6.23: RFC4214 Support (v2.5)
This patch includes support for the Intra-Site Automatic Tunnel
Addressing Protocol (ISATAP) per RFC4214.

The following diffs are specific to the iproute2-2.6.23
software distribution. This message includes the full and
patchable diff text; please use this version to apply patches.

Signed-off-by: Fred L. Templin <fred.l.templin@boeing.com>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-12-11 10:12:49 -08:00
Stephen Hemminger
e50e9f9123 Merge branch 'master' into net-2.6.25 2007-12-11 10:04:33 -08:00
Herbert Xu
ec30dcce71 Add NAT action
Here's a patch to add support for the nat action which is now
in the kernel.

Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-12-11 09:35:07 -08:00
Stephen Hemminger
be8d89d3bf Fix breakage from netfilter/ip_tables header change.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-12-10 09:45:39 -08:00
Stephen Hemminger
70e6e38aad Merge header file changes from net-2.6.25
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-12-10 09:36:07 -08:00
Stephen Hemminger
5472ac6f9f 2.6.24-rc3 headers
Resync santized headers with 2.6.24-rc3

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-11-29 13:56:15 -08:00
Stephen Hemminger
dfd26e1c4c Update kernel headers to 2.6.23-rc5
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-09-05 13:05:21 +01:00
Patrick McHardy
5c302d518f vlan support
This is a resend of the iproute VLAN patch with the if_link.h changes
edited out since the headers are already synced.

[IPROUTE]: VLAN support

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-09-05 12:03:46 +01:00
Stephen Hemminger
a6ffa8b00d sanitized headers update to 2.6.23-rc3
Update headers

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-08-22 10:19:53 -07:00
PJ Waskiewicz
292ce96bca iproute2: sch_rr support in tc
This patch applies on top of Patrick McHardy's RTNETLINK
patches to add nested compat attributes.  This is needed to maintain
ABI for sch_{rr|prio} in the kernel with respect to tc.  A new option,
namely multiqueue, was added to sch_prio and sch_rr.  This will allow
a user to turn multiqueue support on for sch_prio or sch_rr at loadtime.
Also, tc qdisc ls will display whether or not multiqueue is enabled on
that qdisc.  When in multiqueue mode, a user can specify a value of 0 for
bands, and the number of bands will be created to match the number of
queues on the device.

This patch is to support the new sch_rr (round-robin) qdisc being proposed
in NET for multiqueue network device support in the Linux network stack.
It uses q_prio.c as the template, since the qdiscs are nearly identical,
outside of the ->dequeue() routine.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2007-08-22 10:04:25 -07:00
Johannes Berg
80c05b0976 show multicast groups
Update the included version of the genetlink.h header to the multicast
group API and make the generic netlink controller part show multicast
groups where applicable. Also fix two typos.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
2007-08-22 10:03:28 -07:00
Stephen Hemminger
6560dbb89b fix build warnings
Fix problems from recent if.h related changes.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-06-20 10:55:18 -07:00
Thomas Graf
dcb283c300 iproute2: Support IFF_LOWER_UP and IFF_DORMANT
In order to support these new flags add current
linux/if.h into the directory with the local copies.
This caused troubles with outdated redefinitions from net/if.h
so I've removed the dependency on it.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-06-19 16:40:40 -07:00
Stephen Hemminger
de3d12f48a headers update to 2.6.22
Update to sanitized version of 2.6.22-rc5 headers.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-06-19 15:55:46 -07:00
Stephen Hemminger
ab4c2f14fb Add xt_tcpudp.h
Needed for cross/backwards compiles.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-03-16 11:47:42 -07:00
Stephen Hemminger
e309c5fa6a Use kernel headers from 2.6.20.y
Update kernel headers to be versions from 2.6.20.y
Solve cross compile build problems with x_tables and netfilter.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
2007-03-13 14:37:11 -07:00
Patrick McHardy
be7f286e83 [IPROUTE]: Add support for routing rule fwmark masks
Needs kernel >= 2.6.19.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2006-12-13 16:58:32 -08:00
Stephen Hemminger
5a8ba22862 Change to post 2.6.19 sanitized headers
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-13 16:56:40 -08:00
jamal
7c9e557ee4 Update generic netlink header
Stepehen,

Didnt hear back from you, please apply this one; needed for the next
patches.

cheers,
jamal

[GENL]  Update generic netlink header

The header file needs to be uptodate with recent changes to allow
for forward compatibility

Signed-off-by: J Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-06 11:31:19 -08:00
Stephen Hemminger
9626dfd54c Add more includes
Add more sanitized headers to make build work,
and get rid of warning

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-05 09:59:59 -08:00
Stephen Hemminger
ead2ba7008 Update to 2.6.19 headers
Headers extracted from early 2.6.20 development process

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-05 09:54:48 -08:00
Masahide NAKAMURA
288384f22f TUNNEL: IPv6-over-IPv6 tunnel support.
Fix ip6tunnel.c to be fit with current ip command style.
Unlike other modules currently iptunnel (and ip6tunnel) is not
designed as protocol-independent because of unarranged structure
between IPv4 and IPv6.

Usage: ip -f inet6 tunnel { add | change | del | show } [ NAME ]
          [ remote ADDR local ADDR ] [ dev PHYS_DEV ]
          [ encaplimit ELIM ]
          [ hoplimit HLIM ] [ tc TC ] [ fl FL ]
          [ dscp inherit ]

Where: NAME := STRING
       ADDR := IPV6_ADDRESS
       ELIM := { none | 0..255 }(default=4)
       HLIM := 0..255 (default=64)
       TC   := { 0x0..0xff | inherit }
       FL   := { 0x0..0xfffff | inherit }

Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-11-27 08:41:26 -08:00
Thomas Graf
3123a0ccdd Add support for inverted selectors
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-11-09 08:51:29 -08:00
Stephen Hemminger
93576793a1 Change to a slighly extended version of 2.6.18 header kernel headers.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-09-25 17:00:26 -07:00
Patrick McHardy
34e9564753 Add support for larger number of routing tables
[IPROUTE]: Add support for larger number of routing tables

Support support for 2^32 routing tables by using the new RTA_TABLE
attribute for specifying tables > 255 and intepreting it if it is
sent by the kernel.

When tables > 255 are used on a kernel not supporting it an error will
occur because of the unknown netlink attribute.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-10 16:12:07 -07:00
Jamal Hadi Salim
65018ae43b This patch adds a generic netlink controller interface.
The controller is the only module using this at the moment.
Thomas has a sample user of genetlink that would fit here; bug him
for it.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-08-08 12:13:34 -07:00
Stephen Hemminger
1d35a1273d Update headers to santized versions of 2.6.18 2006-08-04 10:32:41 -07:00
Stephen Hemminger
8f8a364871 Restrip include files based on 2.6.17 2006-05-09 11:08:01 -07:00
shemminger
51f66a70ea Minor re-merge of 2.6.16 header files santitized. 2006-03-23 22:09:18 +00:00
shemminger
40b6c62c63 Add more rtproto values 2006-03-10 23:44:04 +00:00
shemminger
e460f82efb Include file update 2006-03-10 17:26:34 +00:00
shemminger
09954dc61a IP ntable support and header update. 2006-01-10 18:43:32 +00:00
shemminger
a31a5d5904 Add corrupt option for netem 2005-12-09 23:27:44 +00:00
shemminger
2034ee9750 Resync headers and do new release. 2005-11-01 17:54:34 +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
c428e91b5e More missing cvs adds.. 2005-06-23 20:29:43 +00:00
shemminger
7314173cf9 Add kernel stripped version of file to repo. 2005-06-23 20:24:15 +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
78615aaa1d Fix build problem on 2.4
(Logical change 1.183)
2005-03-30 18:51:35 +00:00
osdl.net!shemminger
206a04411c update to latest from 2.6.12-rc2
(Logical change 1.181)
2005-03-30 18:43:30 +00:00
osdl.net!shemminger
451d3b81e6 add action stats
(Logical change 1.181)
2005-03-30 18:43:30 +00:00
osdl.net!shemminger
aa88498f18 fix ip_tables for user mode.
(Logical change 1.165)
2005-03-14 19:33:45 +00:00
osdl.net!shemminger
3b084a8333 (Logical change 1.160) 2005-03-14 18:45:11 +00:00
osdl.net!shemminger
5b0e1de247 Initial revision 2005-03-14 18:45:11 +00:00
osdl.net!shemminger
d639d9d18b Update header files to be stripped version of 2.6.11
(Logical change 1.150)
2005-03-10 19:02:48 +00:00
osdl.net!shemminger
1a1d4c5e02 don't need sa_family
(Logical change 1.141)
2005-02-09 22:05:41 +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
73602d6604 Initial revision 2005-01-17 23:32:51 +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
ch[shemminger]!tgraf
97bac1add0 Initial revision 2004-12-07 23:52:52 +00:00
osdl.net!shemminger
091ed21997 Make sure we have sanatized headers that match 2.6.9
(Logical change 1.101)
2004-10-19 20:35:34 +00:00
osdl.net!shemminger
6232f4b527 Initial revision 2004-10-06 23:17:10 +00:00
osdl.net!shemminger
d163858f72 (Logical change 1.92) 2004-10-06 23:17:10 +00:00
osdl.net!shemminger
e914a5c41a reqs was rejected by kernel due to possible API breakage.
(Logical change 1.91)
2004-09-29 18:35:48 +00:00
net[shemminger]!shemminger
ee746aa894 Import patch patch-2.6.9-iproute2
(Logical change 1.77)
2004-08-31 17:45:21 +00:00
net[shemminger]!shemminger
1e4bd804a4 Import patch reqs-patch-iproute2-2.6.8
(Logical change 1.77)
2004-08-31 17:45:21 +00:00
net[shemminger]!shemminger
8e64f6fe1f Import patch gact_iproute-2.6.8_patch
(Logical change 1.74)
2004-08-30 21:07:09 +00:00
net[shemminger]!shemminger
d494aa372f Initial revision 2004-08-30 21:07:09 +00:00
osdl.net!shemminger
462074511f Copy of 2.6.9-rc2
(Logical change 1.73)
2004-08-30 20:54:46 +00:00
osdl.net!shemminger
706e587087 Copy of final netem api for this verison.
2004/08/09 16:46:47-07:00 osdl.net!shemminger
Add distribution table loading (undebugged as yet).

(Logical change 1.71)
2004-08-23 20:21:21 +00:00
osdl.net!shemminger
68d5ba5429 (Logical change 1.66) 2004-08-13 23:54:55 +00:00
osdl.net!shemminger
6c45560b07 Initial revision 2004-08-13 23:54:55 +00:00
osdl.net!shemminger
d7384952fc (Logical change 1.62) 2004-08-09 16:35:28 +00:00
osdl.net!shemminger
ba19bf0f31 Initial revision 2004-08-09 16:35:28 +00:00
osdl.net!shemminger
0633baa172 (Logical change 1.61) 2004-08-04 17:45:52 +00:00
osdl.net!shemminger
28dfef0bbd Initial revision 2004-08-04 17:45:52 +00:00