]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/log
lisovros/iproute2_canprio.git
15 years agoiproute: DESTDIR vs LIBDIR.
Andreas Henriksson [Fri, 22 Aug 2008 14:54:12 +0000 (16:54 +0200)]
iproute: DESTDIR vs LIBDIR.

Hello Rafael Almeida.

I noticed your patch adding DESTDIR support in the latest iproute2 release.
Much appreciated! Soon the debian packages might be able to move to actually
using "make install" rather then it's own installation procedure when
building packages. I've noticed something that will break though....

Debian packages usually sets DESTDIR=debian/tmp/ and packages the contents
of that directory as if it where the root file system. This will break
the /usr/lib/{tc,ip}/ module loading, because they DESTDIR (/usr) will be
/whatever-the-build-path-was/debian/tmp/lib/{tc,ip}/.
I beleive others usually call this the LIBDIR to make the separation between
DISTDIR being the (possibly temporary) place things are put when build is
done, and LIBDIR (and others) are used for actual runtime paths.

I'm attaching a patch that I think fixes this, but would be really happy if
you could have a look at to verify I'm not screwing something up.

--
Regards,
Andreas Henriksson

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
15 years agoadd generic size table for qdiscs
Jussi Kivilinna [Fri, 25 Jul 2008 13:19:09 +0000 (16:19 +0300)]
add generic size table for qdiscs

Patch adds generic size table that is similiar to rate table, with
difference that size table stores link layer packet size.

Based on patch by Patrick McHardy
 http://marc.info/?l=linux-netdev&m=115201979221729&w=2

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
15 years agoiflink_vlan: support GVRP flag
Patrick McHardy [Thu, 3 Jul 2008 17:06:29 +0000 (19:06 +0200)]
iflink_vlan: support GVRP flag

This is the patch for iproute for configuring GVRP.

commit 32143eed8b706e5c6554ab42903533b3bccdc060
Author: Patrick McHardy <kaber@trash.net>
Date:   Thu Jul 3 19:05:09 2008 +0200

    [IPROUTE]: iflink_vlan: support GVRP flag

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
15 years agocls_flow: add perturbation support
Patrick McHardy [Mon, 14 Jul 2008 12:42:48 +0000 (14:42 +0200)]
cls_flow: add perturbation support

commit 337628b9aca63fda7622701191d6304c83438909
Author: Patrick McHardy <kaber@trash.net>
Date:   Fri Jul 4 04:54:56 2008 +0200

    cls_flow: add perturbation support

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
15 years agoMerge in fix for loss of MQ
Stephen Hemminger [Thu, 18 Sep 2008 04:51:40 +0000 (21:51 -0700)]
Merge in fix for loss of MQ

Fix up conflict with earlier attempt at resolving build
issues with MQ

15 years agoip a flush: unnecessarily chatty when there's nothing to flush
Andreas Henriksson [Fri, 29 Aug 2008 17:52:48 +0000 (19:52 +0200)]
ip a flush: unnecessarily chatty when there's nothing to flush

On tis, 2008-07-22 at 20:21 +0200, martin f krafft wrote:
> piper:~|master|% sudo ip a flush dev eth0 >/dev/null
> Nothing to flush.
>
> It should just shut up, shouldn't it? :)

The patch below makes the "Nothing to flush" only visible when show
statistics flag is given, and then only to stdout rather then stderr.

$ sudo ./ip/ip -s addr flush dev skif
Nothing to flush.
$ sudo ./ip/ip addr flush dev skif
$

(See http://bugs.debian.org/492196 )

15 years agoip: abbreviation of network-prefix is no longer possible with ip route
Andreas Henriksson [Fri, 29 Aug 2008 17:26:42 +0000 (19:26 +0200)]
ip: abbreviation of network-prefix is no longer possible with ip route

Commit 516ffb6b7724e97ca035293dcfd9f94cf6ce3a47 says:

Stephen Hemminger [Thu, 22 May 2008 20:41:40 +0000 (13:41 -0700)]
> Use the standard POSIX inet_pton to convert from string to IPV4
> address. This avoids problems where ip parses "127.2" wrong.

Apparently inet_pton doesn't support abbreviated/shortened/classful
ipv4 addresses at all, but inet_aton does.
Since the function only deals with AF_INET anyway maybe using
inet_aton "to increse backwards compatability" (please those
who still want to use the format) could be considered?
(This will still not restore the 10/8 format which apparently used
to work in iproute, so people would have to settle for 10.0/8)

(See http://bugs.debian.org/497011)

15 years agoUpdate to 2.6.27 API
Stephen Hemminger [Mon, 15 Sep 2008 19:05:11 +0000 (12:05 -0700)]
Update to 2.6.27 API

The one issue was the old multiqueue API, so that is handled
by tc_util.h

15 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger...
Stephen Hemminger [Mon, 15 Sep 2008 18:56:06 +0000 (11:56 -0700)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2

15 years agoUpdate headers to 2.6.27
Stephen Hemminger [Fri, 12 Sep 2008 16:50:26 +0000 (09:50 -0700)]
Update headers to 2.6.27

15 years agoAdd DSCP values for RFC2597
Stephen Hemminger [Fri, 5 Sep 2008 22:28:37 +0000 (15:28 -0700)]
Add DSCP values for RFC2597

Most newer documentation refers to these values already.

15 years agofix syntax errors in ip(8) manpage.
Andreas Henriksson [Sat, 26 Jul 2008 19:54:42 +0000 (21:54 +0200)]
fix syntax errors in ip(8) manpage.

Fix syntax errors in ip(8) manpage.

lintian said:
W: iproute: manpage-has-errors-from-man usr/share/man/man8/ip.8.gz 2167: warning: `RP' not defined

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
15 years agolong/ulong iproute-git fix
Denys Fedoryshchenko [Wed, 30 Jul 2008 14:34:07 +0000 (17:34 +0300)]
long/ulong iproute-git fix

This patch fixes bug in Metadata ematch attributes parser

strtoul on error return ULONG_MAX, not LONG_MAX

Patch attached as file

15 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger...
Stephen Hemminger [Sat, 26 Jul 2008 05:41:37 +0000 (22:41 -0700)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2

15 years agoUpdate snapshot
Stephen Hemminger [Fri, 25 Jul 2008 20:46:07 +0000 (13:46 -0700)]
Update snapshot

15 years agoFixed installation when changing DESTDIR
Rafael Almeida [Mon, 2 Jun 2008 00:33:44 +0000 (21:33 -0300)]
Fixed installation when changing DESTDIR

After changing the DESTDIR the installated binaries have some issues
due to hard coded paths. For example, using distributions on NetEm
would segfault.

I've changed iplink.c and tc_util.c so they are now aware of DESTDIR.
Along with that change I needed to change the main Makefile so it
defines the DESTDIR macro when calling gcc.

I also changed the paths so that during the installation sbin, etc,
share and lib directories are created directly inside of the DESTDIR,
instead of creating a usr directory inside that. That's the behaviour
of most packages out there, so I think most users will be expecting
that to happen.

15 years agoDisplay Correct Error For Addrlabel Info
Varun Chandramohan [Mon, 2 Jun 2008 08:25:56 +0000 (13:55 +0530)]
Display Correct Error For Addrlabel Info

The command "ip addrlabel add/del" displays incorrect error message when provided with insufficient inputs. This patch fixes it in par with "ip addr add/del".

Currently:
# ./ip addrlabel add
RTNETLINK answers: Numerical result out of range

# ./ip addr add
Not enough information: "dev" argument is required.

After patch:
# ./ip addrlabel add
Not enough information: "prefix" argument is required.

Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
15 years agoUpdate headers to 2.6.26
Stephen Hemminger [Tue, 15 Jul 2008 18:03:24 +0000 (11:03 -0700)]
Update headers to 2.6.26

Copy santized version of headers from 2.6.26 final version.

15 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger...
Stephen Hemminger [Tue, 8 Jul 2008 22:58:07 +0000 (15:58 -0700)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2

15 years agoAdd warning message when MAX_FIELDS reached
Stephen Hemminger [Mon, 30 Jun 2008 18:57:13 +0000 (11:57 -0700)]
Add warning message when MAX_FIELDS reached

Don't just silently drop.

15 years agoFix array out of bounds problem
Stephen Hemminger [Mon, 30 Jun 2008 17:37:28 +0000 (10:37 -0700)]
Fix array out of bounds problem

The current kernel generates 71 possible header fields, but
MAX_FIELDS in lnstat is only 64. This leads to referencing outside
of the array. To fix, increase size of array and chop off parsing
at MAX_FIELDS - 1.

15 years agoFix generic_proc_open() of command 'nstat' and 'rtacct'
Yu Zhiguo [Fri, 20 Jun 2008 01:50:16 +0000 (09:50 +0800)]
Fix generic_proc_open() of command 'nstat' and 'rtacct'

Fix a bug of generic_proc_open(), so environment variables
(e.g. PROC_NET_SNMP, PROC_NET_RTACCT) can be used to specify procfile.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
15 years agonetem: fix cross-compiling failure
Bertrand Jacquin [Sat, 21 Jun 2008 05:51:19 +0000 (01:51 -0400)]
netem: fix cross-compiling failure

The programs in netem are compiled and run on the build machine, but they
use the CFLAGS that are meant for the target system and often times, these
are incompatible.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agoiproute2: add support for IFLA_NET_NS_PID in ip link
Benjamin Thery [Fri, 20 Jun 2008 09:07:35 +0000 (11:07 +0200)]
iproute2: add support for IFLA_NET_NS_PID in ip link

Hi Stephen,

I resend you this patch once more. This time I updated the documentation
too (may be that was the reason why you didn't take it before?).

Please tell me if there are other things missing in this patch
It applies on iproute2 git tree.

Regards,
Benjamin

Description:
------------

This patch adds support for the IFLA_NET_NS_PID type. It is used to
move network devices between network namespaces.

The syntax is:
ip link set DEVICE netns PID

PID is the pid of a process in the target network namespace.

(Daniel Lezcano is the original author).

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
15 years agotc: don't set protococol field on filter delete
Patrick McHardy [Mon, 23 Jun 2008 13:59:18 +0000 (15:59 +0200)]
tc: don't set protococol field on filter delete

> # tc filter show dev eth1 | grep 4:29:d1
> filter parent 1: protocol ip pref 5 u32 fh 4:29:d1 order 209 key ht 4
> bkt 29 flowid 1:b7aa
>
> # tc filter del dev eth1 parent 1: pref 5 handle 4:29:d1 u32
> RTNETLINK answers: Invalid argument
> We have an error talking to the kernel
>
> after rollback to package"sys-apps/iproute2-2.6.24.20080108" all
> deleted normal...

The current iproute version uses "protocol all" by default
if its not specified. This is actually only useful for creating
new filters, on deletion an unset protocol is treated as wildcard.

15 years agotimers are in user hz
Stephen Hemminger [Fri, 20 Jun 2008 19:40:03 +0000 (12:40 -0700)]
timers are in user hz

The kernel timers are exposed in user hz not kernel hz

15 years agoNeighbor cache timer is in user hz
Stephen Hemminger [Fri, 20 Jun 2008 19:37:42 +0000 (12:37 -0700)]
Neighbor cache timer is in user hz

All timer values from kernel are supposed to be in constant
units or user hz value.

15 years agouse correct hz for rto,ato
Stephen Hemminger [Fri, 20 Jun 2008 19:34:15 +0000 (12:34 -0700)]
use correct hz for rto,ato

The function get_hz() returns the psched hz value which is wrong
for anything other than tc usage. Should be user hz instead, but
kernel is broken (patch sent) and this code doesn't get hit on
current systems (netlink is used first).

15 years agoUpdate to 2.6.26-rc6 headers
Stephen Hemminger [Fri, 20 Jun 2008 18:26:38 +0000 (11:26 -0700)]
Update to 2.6.26-rc6 headers

Copy sanitized headers from 2.6.26-rc6

16 years agoematch related bugfix and cleanup
Stephen Hemminger [Thu, 29 May 2008 18:54:19 +0000 (11:54 -0700)]
ematch related bugfix and cleanup

Bugfix: use strtoul rather than strtol for bstrtol to handle large key/mask.
Deinline larger functions to save space.

16 years agoUse inet_pton to read ipv4 addresses
Stephen Hemminger [Thu, 22 May 2008 20:41:40 +0000 (13:41 -0700)]
Use inet_pton to read ipv4 addresses

Use the standard POSIX inet_pton to convert from string to IPV4
address. This avoids problems where ip parses "127.2" wrong.

16 years agoAdd routel and routef man page.
Andreas Henriksson [Thu, 3 Jan 2008 15:48:56 +0000 (16:48 +0100)]
Add routel and routef man page.

16 years agoxfrm: Allow replay setting
Herbert Xu [Wed, 23 Apr 2008 07:42:32 +0000 (15:42 +0800)]
xfrm: Allow replay setting

Hi Stephen:

[IP] xfrm: Allow replay setting

For certain applications there is a requirement to start the
sequence number from a point other than the default.  As it
is the kernel provides an interface to do that but it isn't
available through the ip(8) command.  Since we're encouraging
people to migrate over to ip(8) for manual keying, it is useful
to have this ability there.

This patch adds support for setting replay sequence numbers
through ip(8).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
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
--

16 years agoInfrastructure for pretty printing
jamal [Sun, 20 Apr 2008 14:49:24 +0000 (10:49 -0400)]
Infrastructure for pretty printing

And last for now ..

cheers,
jamal

[PATCH 3/3] [TC/U32] Infrastructure for pretty printing

This patch makes it easy to add pretty printers of different protocols.
For starters it makes use of ipv4 and raw printers.
Add more later ...

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
16 years agoExpose the filter protocol
jamal [Sun, 20 Apr 2008 14:47:48 +0000 (10:47 -0400)]
Expose the filter protocol

makes protocol accessible ..

cheers,
jamal

[PATCH 2/3] [TC/FILTERS] Expose the filter protocol

Expose the filter protocol so it can be used by underlying
classifiers when they need it.

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
16 years agoChange formatting of u32 back to default
Stephen Hemminger [Fri, 9 May 2008 22:42:34 +0000 (15:42 -0700)]
Change formatting of u32 back to default

Don't break scripts that depend on previous offset/value format.
Introduce a new -pretty flag for decoding, and (*gasp*) document
the formatting arguments.

16 years agoFix bad hash calculation because of signed address
Stephen Hemminger [Thu, 8 May 2008 16:11:04 +0000 (09:11 -0700)]
Fix bad hash calculation because of signed address

The addr[] was being used signed, but this causes hash calcultion
to overflow. Originally reported as Debian bug 480173.

16 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger...
Stephen Hemminger [Mon, 28 Apr 2008 22:57:19 +0000 (15:57 -0700)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2

16 years agoAvoid infinite loop in ip addr flush.
Daniel Silverstone [Fri, 19 Oct 2007 11:32:24 +0000 (13:32 +0200)]
Avoid infinite loop in ip addr flush.

Fix "ip addr flush" the same way "ip neigh flush" was previously fixed,
by bailing out if the flush hasn't completed after MAX_ROUNDS (10) tries.

16 years agodocument promote_secondaries
Andreas Henriksson [Sat, 12 Jan 2008 16:17:02 +0000 (17:17 +0100)]
document promote_secondaries

Write something about the tweak to enable promoting secondary addresses
instead of deleting them together with the primary address as discussed
in this thread on the netdev mailing list:
http://www.spinics.net/lists/netdev/msg52294.html

The claim that this is supported since 2.6.15 is based on looking at
changes to net/ipv4/devinet.c in the linux-2.6 git tree:

Commit to add support:
2005-05-30      Harald Welte
8f937c6099858eee15fae14009dcbd05177fa91d

Commit to fix bug:
2005-11-22      Jamal Hadi Salim
0ff60a45678e67b2547256a636fd00c1667ce4fa

Version 2.6.15 was released 2006-01-03 and seems to include the code from
both the above commits.

16 years agoFix typos (syntax error) in ip(8) manpage.
Andreas Henriksson [Sun, 20 Apr 2008 09:25:31 +0000 (11:25 +0200)]
Fix typos (syntax error) in ip(8) manpage.

This one also caught by lintian (debian package checker tool).

16 years agoUpdate version
Stephen Hemminger [Thu, 17 Apr 2008 17:12:54 +0000 (10:12 -0700)]
Update version

Release new snapshot for 2.6.25

16 years agoFix classifier help
Patrick McHardy [Wed, 26 Mar 2008 06:40:03 +0000 (07:40 +0100)]
Fix classifier help

commit c504ffd627ac211eebf5ed34ef0fbfd7f1dbb347
Author: Patrick McHardy <kaber@trash.net>
Date:   Wed Mar 26 07:38:43 2008 +0100

    [IPROUTE]: Fix classifier help

    The new check whether the user has specified a protocol makes
    "ip filter <type> help" fails with "protocol is required".

    This could be fixed by moving it further down, but a more user-friendly
    way it to simply use ETH_P_ALL as default if nothing is specified.

Signed-off-by: Patrick McHardy <kaber@trash.net>
16 years agoATM cell alignment.
Jesper Dangaard Brouer [Wed, 9 Apr 2008 21:01:01 +0000 (23:01 +0200)]
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>
16 years agoIn police, fix uninitialized "overhead" variable.
Stephen Hemminger [Thu, 17 Apr 2008 16:12:38 +0000 (09:12 -0700)]
In police, fix uninitialized "overhead" variable.

Bug introduced by myself in an earlier patch series.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
16 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger...
Stephen Hemminger [Tue, 8 Apr 2008 14:58:50 +0000 (09:58 -0500)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2

16 years agoman ip.8 miss xfrm option
Marcela Maslanova [Fri, 22 Feb 2008 15:16:03 +0000 (16:16 +0100)]
man ip.8 miss xfrm option

I was asked to at least mention the xfrm option in ip manual. I added
all usage into ip.8 and try to write some basic information about xfrm.
If someone want complete it, I'll be happy.

Marcela Maslanova

a16304c0cdbdbc8926b112743b4bd49069a50cd7
 man/man8/ip.8 |  474 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 474 insertions(+), 0 deletions(-)

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoss: Fix return value checks for net_*_open
Björn Steinbrink [Thu, 3 Apr 2008 09:42:41 +0000 (11:42 +0200)]
ss: Fix return value checks for net_*_open

In ss.c, generic_proc_open(), for which the net_*_open functions are just
convenient wrappers, uses fopen, so errors are signalled by a NULL return
value. Some checks were expecting negative values instead, fix them.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoUpdate kernel headers to 2.6.25-rc7
Stephen Hemminger [Tue, 1 Apr 2008 18:37:35 +0000 (11:37 -0700)]
Update kernel headers to 2.6.25-rc7

Copy sanitized kernel headers from 2.6.25-rc7 to ensure proper
compatiability.

16 years agopolice, implement overhead parameter parsing.
Jesper Dangaard Brouer [Sun, 23 Mar 2008 22:53:57 +0000 (23:53 +0100)]
police, implement overhead parameter parsing.

For police, implement overhead parameter parsing.

The change is ABI (Application Binary Interface) backward compatible
with older kernels, but will first have effect from kernel 2.6.24.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoCBQ, doc usage of overhead parameter.
Jesper Dangaard Brouer [Sun, 23 Mar 2008 22:52:12 +0000 (23:52 +0100)]
CBQ, doc usage of overhead parameter.

CBQ remember to doc usage of overhead parameter.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoCBQ, implement overhead parameter parsing.
Jesper Dangaard Brouer [Sun, 23 Mar 2008 22:50:49 +0000 (23:50 +0100)]
CBQ, implement overhead parameter parsing.

For CBQ, implement overhead parameter parsing.

The change is ABI (Application Binary Interface) backward compatible
with older kernels, but will first have effect from kernel 2.6.24.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoCBQ use matches() function instead of strcmp().
Jesper Dangaard Brouer [Sun, 23 Mar 2008 22:49:11 +0000 (23:49 +0100)]
CBQ use matches() function instead of strcmp().

Change CBQ to use matches() function instead of strcmp().

This resembels the usage in other parse functions, and allows
partial command parameter matching.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoTBF overhead parameter parsing.
Jesper Dangaard Brouer [Sun, 23 Mar 2008 22:47:49 +0000 (23:47 +0100)]
TBF overhead parameter parsing.

For TBF, implement overhead parameter parsing.

The change is ABI (Application Binary Interface) backward compatible
with older kernels, but will first have effect from kernel 2.6.24.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoDo not strip binaries with `install`
Mike Frysinger [Sun, 16 Mar 2008 08:27:01 +0000 (04:27 -0400)]
Do not strip binaries with `install`

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoAdd missing description about ISATAP and IPv6 tunnels in ip(8) manpage.
YOSHIFUJI Hideaki / 吉藤英明 [Thu, 13 Mar 2008 15:19:00 +0000 (11:19 -0400)]
Add missing description about ISATAP and IPv6 tunnels in ip(8) manpage.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoAdd more aliases for tunnel subcommand.
YOSHIFUJI Hideaki / 吉藤英明 [Thu, 13 Mar 2008 15:17:54 +0000 (11:17 -0400)]
Add more aliases for tunnel subcommand.

Add more aliases to synchronize IPv4 and IPv6 tunnel command, e.g.,
  IPv4: hoplimit (alias to ttl), tclass (alias to tos)
  IPv6: dsfield, tos (alias to tc, or tclass), ttl (alias to hoplimit)

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoIP link state show enhancements
Stephen Hemminger [Fri, 14 Mar 2008 22:30:03 +0000 (15:30 -0700)]
IP link state show enhancements

Show operational state (carrier), as well as fixing functions
to be static and use similar API.

16 years agoUpdate address of FSF in license
Stephen Hemminger [Sat, 8 Mar 2008 21:31:03 +0000 (13:31 -0800)]
Update address of FSF in license

The COPYING file had out of date FSF address.

16 years agorevert earlier mistake ALGO_NAME is okay
Stephen Hemminger [Sat, 8 Mar 2008 21:29:35 +0000 (13:29 -0800)]
revert earlier mistake ALGO_NAME is okay

Revert "I found out when I was writing manual page, that options ALGO_NAME and"

This reverts commit 8a1485bb21bf84a7932ca849e29300853e647afc.

16 years agoRevert "I found out when I was writing manual page, that options ALGO_NAME and"
Stephen Hemminger [Wed, 5 Mar 2008 18:40:03 +0000 (10:40 -0800)]
Revert "I found out when I was writing manual page, that options ALGO_NAME and"

This change is bogus, it perfectly possible to use ALGO_NAME.

This reverts commit 8a1485bb21bf84a7932ca849e29300853e647afc.

16 years agoAdd default value to /etc/iproute2/rt_dsfield
Stephen Hemminger [Mon, 3 Mar 2008 19:55:50 +0000 (11:55 -0800)]
Add default value to /etc/iproute2/rt_dsfield

Add new entry for zero as default value in dsfield.

16 years agoI found out when I was writing manual page, that options ALGO_NAME and
Marcela Maslanova [Fri, 22 Feb 2008 19:57:03 +0000 (11:57 -0800)]
I found out when I was writing manual page, that options ALGO_NAME and
ALGO_KEY aren't used. If it's a bug or should it be remove it, as I did?

16 years agoiproute2: fix ip manpage typo (syntax error)
Andreas Henriksson [Fri, 22 Feb 2008 13:11:49 +0000 (14:11 +0100)]
iproute2: fix ip manpage typo (syntax error)

Hello Stephen!

The patches branch of the debian packaging repo, at
git://git.debian.org/git/collab-maint/pkg-iproute, now has four patches still
pending. (Not resending, since they've all been posted multiple times before.
Pick them up from the repo if you're interested.)

Here's the latest addition:

commit 3c904bb5933257533f4afecf805ca5a548a8e885
Author: Andreas Henriksson <andreas@fatal.se>
Date:   Fri Feb 22 13:57:10 2008 +0100

    Fix typo (syntax error) in ip(8) manpage.

    Caught by lintian (debian package checker).

16 years agomissing dport in f_u32 output
Stephen Hemminger [Fri, 22 Feb 2008 19:51:35 +0000 (11:51 -0800)]
missing dport in f_u32 output

Small typo from last change to decode filters. Should print dport
not port.

16 years agodecode the output of u32 matches
Stephen Hemminger [Mon, 18 Feb 2008 19:35:29 +0000 (11:35 -0800)]
decode the output of u32 matches

reverse the match offset/mask values into ip header matches.

16 years agoget rid of warning from misnamed prototype
Stephen Hemminger [Mon, 18 Feb 2008 18:59:22 +0000 (10:59 -0800)]
get rid of warning from misnamed prototype

Minor warning message from missing prototype, probably because of
function name change.

16 years agobreak excessively long lines
Stephen Hemminger [Mon, 18 Feb 2008 18:51:42 +0000 (10:51 -0800)]
break excessively long lines

Cleanup code (slightly).

16 years agoRevert "rlim qdisc support"
Stephen Hemminger [Mon, 18 Feb 2008 18:13:25 +0000 (10:13 -0800)]
Revert "rlim qdisc support"

This reverts commit 7ca30b789d7ea0a7afce45ddf5e5fd5fad0728dc.

Since rlim isn't upstream (yet), drop it.

16 years agoAdd missing prefix bit length for addrlabel
Varun Chandramohan [Thu, 14 Feb 2008 09:51:08 +0000 (15:21 +0530)]
Add missing prefix bit length for addrlabel

The prefix bit lenght value was not updated, resulting in incorrect addrlabel
entry. This patch fixes that issue.

Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoAdd addrlabel sub-command.
YOSHIFUJI Hideaki / 吉藤英明 [Wed, 13 Feb 2008 16:20:12 +0000 (03:20 +1100)]
Add addrlabel sub-command.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoUpdate various classifiers' help output for expected CLASSID syntax
PJ Waskiewicz [Wed, 13 Feb 2008 11:49:09 +0000 (03:49 -0800)]
Update various classifiers' help output for expected CLASSID syntax

update: Fix the spelling of "hexidecimal"

This updates the help output to specify that CLASSID should be hexidecimal.
This makes sure that a user entering "flowid 1:10" gets his flow put into
band 15 (0x10) and knows why.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoadd include/linux/hdlc/ioctl.h
Stephen Hemminger [Wed, 13 Feb 2008 20:32:49 +0000 (12:32 -0800)]
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>
16 years agominor typo fixes
Stephen Hemminger [Fri, 8 Feb 2008 06:10:14 +0000 (22:10 -0800)]
minor typo fixes

A couple of obvious typo's.

16 years agoProtocol field on tc_filter is required
Stephen Hemminger [Fri, 8 Feb 2008 03:25:26 +0000 (19:25 -0800)]
Protocol field on tc_filter is required

Kernel won't find matching filter if protocol value not
provided.

16 years agoadd support for matching AOE and CAN ether types
Stephen Hemminger [Fri, 8 Feb 2008 03:24:31 +0000 (19:24 -0800)]
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?

16 years agoreharmonize headers with pre-freeze 2.6.25
Stephen Hemminger [Fri, 8 Feb 2008 03:22:42 +0000 (19:22 -0800)]
reharmonize headers with pre-freeze 2.6.25

Some minor header file changes headed for 2.6.25

16 years agofix typos in help message for meta match
Stephen Hemminger [Tue, 5 Feb 2008 20:07:07 +0000 (12:07 -0800)]
fix typos in help message for meta match

Make sure examples actually work.

16 years agoignore emacs backup files
Stephen Hemminger [Tue, 5 Feb 2008 19:41:48 +0000 (11:41 -0800)]
ignore emacs backup files

16 years agoChange where vlan option shows up in help
Stephen Hemminger [Tue, 5 Feb 2008 19:33:44 +0000 (11:33 -0800)]
Change where vlan option shows up in help

Vlan should not be in the socket section

16 years agocls_flow: add vlan-tag support
Patrick McHardy [Tue, 5 Feb 2008 14:31:53 +0000 (15:31 +0100)]
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>
16 years agoharmonize headers with upcoming 2.6.25
Stephen Hemminger [Fri, 1 Feb 2008 06:41:18 +0000 (22:41 -0800)]
harmonize headers with upcoming 2.6.25

Add stuff from early 2.6.25 merge.

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoAdd flow classifier support
Patrick McHardy [Thu, 31 Jan 2008 17:58:59 +0000 (18:58 +0100)]
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>
16 years agoAdd support for SFQ xstats
Patrick McHardy [Thu, 31 Jan 2008 17:58:52 +0000 (18:58 +0100)]
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>
16 years agofix problem caused by rtnl_send checks
Stephen Hemminger [Fri, 1 Feb 2008 05:38:58 +0000 (21:38 -0800)]
fix problem caused by rtnl_send checks

Some usages of rtnl_send could cause errors (ie flush requests)
others do a listen afterwards.

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agowhitespace typo in tc_common.h
Stephen Hemminger [Fri, 1 Feb 2008 05:26:00 +0000 (21:26 -0800)]
whitespace typo in tc_common.h

minor whitespace typo.

16 years agopoll for errors after rtnl_send
Stephen Hemminger [Sat, 26 Jan 2008 19:09:42 +0000 (11:09 -0800)]
poll for errors after rtnl_send

This fixes the problem where a bulk operation (like ip flush)
is performed as non-root user.  The kernel will only send a response
if there is an error, so check for it.

16 years agoremove extra newline from perror() calls
Stephen Hemminger [Sat, 26 Jan 2008 19:08:31 +0000 (11:08 -0800)]
remove extra newline from perror() calls

perror error adds a newline, so don't split error message
across two lines.

16 years agolibnetlink: don't spin forever on receive error
Stephen Hemminger [Fri, 25 Jan 2008 23:39:09 +0000 (15:39 -0800)]
libnetlink: don't spin forever on receive error

If there is a problem talking to kernel, don't retry except in the
special case of signal or -EAGAIN

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoMerge branch 'net-2.6.25'
Stephen Hemminger [Fri, 25 Jan 2008 22:27:19 +0000 (14:27 -0800)]
Merge branch 'net-2.6.25'

16 years agovlan meta tag match
Stephen Hemminger [Thu, 24 Jan 2008 21:16:41 +0000 (13:16 -0800)]
vlan meta tag match

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoupdate headers to current net-2.6.25
Stephen Hemminger [Thu, 24 Jan 2008 21:14:28 +0000 (13:14 -0800)]
update headers to current net-2.6.25

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agofix typo in ip batch error message
Stephen Hemminger [Mon, 21 Jan 2008 21:46:08 +0000 (13:46 -0800)]
fix typo in ip batch error message

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agorelease v2.6.24-080108
Stephen Hemminger [Tue, 8 Jan 2008 16:59:32 +0000 (08:59 -0800)]
release v2.6.24-080108

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoRevert "TC action parsing bug fix"
Stephen Hemminger [Thu, 3 Jan 2008 00:34:58 +0000 (16:34 -0800)]
Revert "TC action parsing bug fix"

This reverts commit 720a2e8d990707749b2cafa77ab3cd2b8241ec47.

After further investigation it seems clear to me that reverting the
commit 720a2e8d990707749b2... is the correct thing to do, since the real
fix for the problem this commit was supposed to fix was instead fixed in
commit c29391c7c68f031e246c...

Whatever you specify after a u32 police you will now get a syntax error,
and according to "tc filter add u32 help" there are several things that
you are supposed to be able to specify after a police.

So, Steven, please revert 720a2e8d990707749b2...

16 years agoiproute2: add synonyms for ip rule options to ip(8) manpage.
Andreas Henriksson [Wed, 2 Jan 2008 23:49:11 +0000 (00:49 +0100)]
iproute2: add synonyms for ip rule options to ip(8) manpage.

commit 355e1438f73602fbac029d28891dfa889471b679
Author: Andreas Henriksson <andreas@fatal.se>
Date:   Wed Jan 2 23:21:59 2008 +0100

    Add synonyms for ip rule options to ip(8) manpage.

    See:
    http://bugs.debian.org/433507
    http://bugs.debian.org/213673

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoiproute2: revert syntax help text mistake.
Andreas Henriksson [Wed, 2 Jan 2008 23:47:30 +0000 (00:47 +0100)]
iproute2: revert syntax help text mistake.

Sorry. The pref and prio options are actually synonyms.
This reverts part of commit 576c63ee59de3f18bec4ebd8181a5a395f268d03.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoiproute2: add synonyms for ip rule options to ip(8) manpage.
Andreas Henriksson [Wed, 2 Jan 2008 23:49:11 +0000 (00:49 +0100)]
iproute2: add synonyms for ip rule options to ip(8) manpage.

commit 355e1438f73602fbac029d28891dfa889471b679
Author: Andreas Henriksson <andreas@fatal.se>
Date:   Wed Jan 2 23:21:59 2008 +0100

    Add synonyms for ip rule options to ip(8) manpage.

    See:
    http://bugs.debian.org/433507
    http://bugs.debian.org/213673

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoiproute2: revert syntax help text mistake.
Andreas Henriksson [Wed, 2 Jan 2008 23:47:30 +0000 (00:47 +0100)]
iproute2: revert syntax help text mistake.

Sorry. The pref and prio options are actually synonyms.
This reverts part of commit 576c63ee59de3f18bec4ebd8181a5a395f268d03.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
16 years agoRevert "TC action parsing bug fix"
Stephen Hemminger [Wed, 2 Jan 2008 17:29:30 +0000 (09:29 -0800)]
Revert "TC action parsing bug fix"

[...]
> Commands like "tc filter add dev ppp0 parent ffff: protocol ip prio 50
> u32 match ip src 0.0.0.0/0 police rate 4mbit burst 10k drop flowid :1"
> apparently no longer works. The flowid is not accepted anymore.
> Reverting commit 720a2e8d99... which you authored seems to "fix" this.
[...]

After further investigation it seems clear to me that reverting the
commit 720a2e8d990707749b2... is the correct thing to do, since the real
fix for the problem this commit was supposed to fix was instead fixed in
commit c29391c7c68f031e246c...

Whatever you specify after a u32 police you will now get a syntax error,
and according to "tc filter add u32 help" there are several things that
you are supposed to be able to specify after a police.

This reverts commit 720a2e8d990707749b2cafa77ab3cd2b8241ec47.