[PATCH] ss: fix help/man TCP-STATE description for listening

2017-08-23 Thread Andreas Henriksson
.debian.org/872990 Reported-by: Pavel Lyulchenko Signed-off-by: Andreas Henriksson --- man/man8/ss.8 | 4 ++-- misc/ss.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/man8/ss.8 b/man/man8/ss.8 index 81de69de..3bec97f0 100644 --- a/man/man8/ss.8 +++ b/ma

Re: [PATCH iproute2 v2 2/2] arpd: fix parsing of unlikely long comments

2016-01-03 Thread Andreas Henriksson
dreas Henriksson On Sun, Jan 03, 2016 at 07:39:33PM +0100, Andreas Henriksson wrote: > In case the commented out line was longer than the buffer size, > the remaining part was previously not properly skipped. > > With this fix we should now continue ignoring lines starting with # > unt

[PATCH iproute2 v2 1/2] arpd: drop unnecessary explicit null termination

2016-01-03 Thread Andreas Henriksson
This is a followup to a previous commit 61170fd88d264c "get rid of unnecessary fgets() buffer size limitation". If fgets guarantees buffer will be null terminated in the given size, then we can also drop the explicit termination. Signed-off-by: Andreas Henriksson --- misc/arpd.c | 1

[PATCH iproute2 v2 2/2] arpd: fix parsing of unlikely long comments

2016-01-03 Thread Andreas Henriksson
In case the commented out line was longer than the buffer size, the remaining part was previously not properly skipped. With this fix we should now continue ignoring lines starting with # until we find a newline character. Signed-off-by: Andreas Henriksson --- misc/arpd.c | 14

[PATCH iproute2] arpd: drop unnecessary explicit null termination

2016-01-03 Thread Andreas Henriksson
potential unlikely long comment handling bug spotted in nearby code. Signed-off-by: Andreas Henriksson --- misc/arpd.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/arpd.c b/misc/arpd.c index 6bb9bd1..3be700d 100644 --- a/misc/arpd.c +++ b/misc/arpd.c @@ -702,

[PATCH] iproute2: fix ip manpage typo (syntax error)

2008-02-22 Thread Andreas Henriksson
27;s the latest addition: commit 3c904bb5933257533f4afecf805ca5a548a8e885 Author: Andreas Henriksson <[EMAIL PROTECTED]> Date: Fri Feb 22 13:57:10 2008 +0100 Fix typo (syntax error) in ip(8) manpage. Caught by lintian (debian package checker). diff --git a/man/man8/ip.8 b/man/ma

iproute2: make max rounds in ip {neigh,addr} flush configurable.

2008-01-10 Thread Andreas Henriksson
On tor, 2008-01-10 at 20:54 +0100, Andreas Henriksson wrote: > An additional patch will be provided in a followup mail (not available in > Debian) that was created by request from Patrick McHardy. This one makes max > rounds configurable (and 0 means try to infinity, so you can re

debian iproute2 patches branch rebased.

2008-01-10 Thread Andreas Henriksson
ee commit 660818498d0f5a3f52c05355a3e82c23f670fcc1 Where the comment seems to be wrong about "Limit ip route flush...", since it's actually "ip neigh flush" that's being modified. [3]: Read thread from here on: http://www.spinics.net/lists/netdev/msg44920.h

[PATCH] iproute2: revert syntax help text mistake.

2008-01-02 Thread Andreas Henriksson
Sorry. The pref and prio options are actually synonyms. This reverts part of commit 576c63ee59de3f18bec4ebd8181a5a395f268d03. Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- a/ip/iprule.c +++ b/ip/iprule.c @@ -38,7 +38,7 @@ static void usage(void) { fprintf(stderr, &quo

[PATCH] iproute2: add synonyms for ip rule options to ip(8) manpage.

2008-01-02 Thread Andreas Henriksson
commit 355e1438f73602fbac029d28891dfa889471b679 Author: Andreas Henriksson <[EMAIL PROTECTED]> 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 diff --git a/man/man

Re: iproute2 syntax change in tc police?

2008-01-02 Thread Andreas Henriksson
On ons, 2008-01-02 at 00:39 +0100, Andreas Henriksson wrote: [...] > Commands like "tc filter add dev ppp0 parent : 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.

iproute2 syntax change in tc police?

2008-01-01 Thread Andreas Henriksson
2.git;a=commitdiff;h=720a2e8d990707749b2cafa77ab3cd2b8241ec47 I guess the flowid is invalid syntax, but that it just got ignored instead of caught before... Could you please have a look and tell me what you think about this? -- Regards, Andreas Henriksson -- To unsubscribe from this list: send the line "u

[RFC] old stuff - Kernel Bug Tracker Bug 7398

2007-12-24 Thread Andreas Henriksson
uot;, + .data = &ip_rt_mc_src_strict, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = &ipv4_doint_and_flush, + .strategy = &ipv4_doint_and_flush_strategy, + },

Re: [PATCH] iproute2: support dotted-quad netmask notation.

2007-12-12 Thread Andreas Henriksson
On Tue, Dec 11, 2007 at 05:14:06PM -0800, Stephen Hemminger wrote: > On Sun, 09 Dec 2007 18:10:22 +0100 > Andreas Henriksson <[EMAIL PROTECTED]> wrote: > > I think both previous patches where broken on big-endian platforms. > > Here's an updated patch again. I'

Re: [PATCH] iproute2: support dotted-quad netmask notation.

2007-12-09 Thread Andreas Henriksson
On lör, 2007-12-08 at 00:41 +0100, Andreas Henriksson wrote: > On tor, 2007-12-06 at 11:53 -0800, Stephen Hemminger wrote: > > On Tue, 4 Dec 2007 14:58:18 +0100 > > Andreas Henriksson <[EMAIL PROTECTED]> wrote: > > > > > Suggested patch for allowing ne

Re: [PATCH] iproute2: support dotted-quad netmask notation.

2007-12-07 Thread Andreas Henriksson
On tor, 2007-12-06 at 11:53 -0800, Stephen Hemminger wrote: > On Tue, 4 Dec 2007 14:58:18 +0100 > Andreas Henriksson <[EMAIL PROTECTED]> wrote: > > > Suggested patch for allowing netmask to be specified in dotted quad format. > > See http://bugs.debian.org/357172 &g

[PATCH] iproute2: support dotted-quad netmask notation.

2007-12-04 Thread Andreas Henriksson
Suggested patch for allowing netmask to be specified in dotted quad format. See http://bugs.debian.org/357172 (Known problem: this will not prevent some invalid syntaxes, ie. "255.0.255.0" will be treated as "255.255.255.0") Comments? Suggestions? Improvements? Signed-off-by

Re: iproute2: git pull request from debian repo.

2007-10-23 Thread Andreas Henriksson
On Tue, Oct 23, 2007 at 05:08:10PM +0200, Patrick McHardy wrote: > Andreas Henriksson wrote: > >On Tue, Oct 23, 2007 at 04:38:06PM +0200, Patrick McHardy wrote: > >>Almost - the default behaviour shouldn't change IMO. Also please > >>send a complete patch

Re: iproute2: git pull request from debian repo.

2007-10-23 Thread Andreas Henriksson
r advocating not selecting the "loop forever" as the default choice. -- Regards, Andreas Henriksson - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: iproute2: git pull request from debian repo.

2007-10-23 Thread Andreas Henriksson
On Sun, Oct 21, 2007 at 07:48:21PM +0200, Patrick McHardy wrote: > Andreas Henriksson wrote: > >-for (;;) { > >+while (round < MAX_ROUNDS) { > > if (rtnl_wilddump_request(&rth, filter.family, > >

Re: iproute2: git pull request from debian repo.

2007-10-23 Thread Andreas Henriksson
On Sun, Oct 21, 2007 at 07:48:21PM +0200, Patrick McHardy wrote: > Andreas Henriksson wrote: > >-for (;;) { > >+while (round < MAX_ROUNDS) { > > if (rtnl_wilddump_request(&rth, filter.family, > >

Re: iproute2: git pull request from debian repo.

2007-10-19 Thread Andreas Henriksson
]> Date: Thu Oct 18 16:06:08 2007 +0200 ss(8) manpage formatting breaks EXAMPLE Remove not needed quotes around path which breaks manpage formatting. Spotted and original patch by Justin Pryzby, fixed by Andreas Henriksson. http://bugs.debian.org/443071 diff -

iproute2: git pull request from debian repo.

2007-10-19 Thread Andreas Henriksson
e ones in the tree which doesn't come from the upstream branch and send them out... Have a nice weekend! -- Regards, Andreas Henriksson - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 12/12] Drop bogus reference to tc-filters and add lartc.org link to manpage.

2007-10-18 Thread Andreas Henriksson
s Any chance you forgot to push the tags out to the public repo? (Which you seem to have to do explicitly in git.) -- Regards, Andreas Henriksson - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http:

Re: [PATCH 12/12] Drop bogus reference to tc-filters and add lartc.org link to manpage.

2007-10-17 Thread Andreas Henriksson
doesn't seem to work: git://git.kernel.org/pub/network/iproute2/iproute2.git Using this url works though: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git (These are the urls from a previous mail you sent me Just wanted to notify you in case something was broken with th

Re: [PATCH 12/12] Drop bogus reference to tc-filters and add lartc.org link to manpage.

2007-10-17 Thread Andreas Henriksson
ug script removed) 5 - MISSING (o_key vs i_key, From: Herbert Xu) 6 - applied and REVERTED (Remove reference to tc-filters, From: Andreas Barth) 7 - MISSING (tc -batch broken lines and comments fix, From: Andreas Henriksson) 8 - applied 9 - applied 10 - dropped (broken mpath support removed) 11 - a

Re: [PATCH 03/12] Prevent renaming interfaces to empty string.

2007-10-12 Thread Andreas Henriksson
me, but there's no error message... ./ip/ip is the "vanilla" and /sbin/ip is debians version. $ sudo ./ip/ip link set skif name "" $ echo $? 0 $ sudo /sbin/ip link set skif name "" "" is not valid device identifier $ echo $? 255 Reporting the error is pro

Re: [PATCH 04/12] Fix up various problems in netbug script.

2007-10-12 Thread Andreas Henriksson
d for it then feel free to remove it. -- Regards, Andreas Henriksson - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] Also do tc_core_time2big argument (long->unsigned).

2007-10-12 Thread Andreas Henriksson
tc_core_time2big only used in tc/q_netem.c where it gets passed an unsigned. Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- tc/tc_core.c |2 +- tc/tc_core.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/tc_core.c b/tc/tc_core.c index 8c3a2ac..1

[PATCH] Also do tc_core_time2big argument (long->unsigned).

2007-10-12 Thread Andreas Henriksson
tc_core_time2big only used in tc/q_netem.c where it gets passed an unsigned. Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- tc/tc_core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tc/tc_core.c b/tc/tc_core.c index 8c3a2ac..1365e08 100644 --

[PATCH] Switch helpers tc_core_{time2ktime,ktime2time} from long to unsigned as well.

2007-10-12 Thread Andreas Henriksson
2 variables, so this change should be safe to make but hasn't been tested as extensively as the time2tick patch. Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- tc/tc_core.c |4 ++-- tc/tc_core.h |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tc

[PATCH 12/12] Drop bogus reference to tc-filters and add lartc.org link to manpage.

2007-10-12 Thread Andreas Henriksson
From: Alexander Wirt <[EMAIL PROTECTED]> Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- man/man8/ip.8 |2 ++ man/man8/tc.8 |3 ++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/man/man8/ip.8 b/man/man8/ip.8 index 153123a..8fd6d52 100644 --- a/m

[PATCH 11/12] Fix overflow in time2tick / tick2time.

2007-10-12 Thread Andreas Henriksson
The helper functions gets passed an unsigned int, which gets cast to long and overflows. See http://bugs.debian.org/175462 Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- tc/tc_core.c |4 ++-- tc/tc_core.h |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -

[PATCH 01/12] Fix various typos and nitpicks

2007-10-12 Thread Andreas Henriksson
in tc-htb(8) manpage (mininum -> minimum). Fix typo in tc-cbq-details(8) manpage (occured -> occurred). Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- ip/ipaddress.c|2 +- man/man3/libnetlink.3 |2 +- man/man8/ip.8 |2 +- man/man8/ss

[PATCH 02/12] Add parameters to usage help text.

2007-10-12 Thread Andreas Henriksson
From: Alexander Wirt <[EMAIL PROTECTED]> Add src option to route help text (http://bugs.debian.org/226142). Add prio option to rule prio help text (http://bugs.debian.org/213673). Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- ip/iproute.c |2 +- ip/iprule.c |2

[PATCH 08/12] Fix ematch cmp and nbyte syntax help text.

2007-10-12 Thread Andreas Henriksson
o be "header" and will not recognise "header". The right symbolic values seem to be link, network, transport. Here is a patch that changes the help/usage screen to match the code. (http://bugs.debian.org/438653) Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- tc/em_c

[PATCH 05/12] Fix typo in tunnel code (o_key vs. i_key).

2007-10-12 Thread Andreas Henriksson
From: Herbert Xu <[EMAIL PROTECTED]> If a dotted quad ikey is specified for GRE tunnels, it gets set as the okey instead. This patch fixes it. (http://bugs.debian.org/200714) Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- ip/iptunnel.c |2 +- 1 files changed, 1 inse

[PATCH 10/12] Fix off-by-one in print of wrandom algo.

2007-10-12 Thread Andreas Henriksson
us:~# ip ro get to 1.2.3.4 1.2.3.4 mpath unknown dev ppp0 src 62.77.192.67 cache mtu 1492 advmss 1452 hoplimit 64 ianus:~# ip ro del 1.2.3.4 mpath wrandom nexthop dev ppp0 weight 1 nexthop dev ppp1 weight 2 See http://bugs.debian.org/428440 for more information. Signed-off-by: Andreas He

[PATCH 07/12] Fix corruption when using batch files with comments and broken lines.

2007-10-12 Thread Andreas Henriksson
ichal Pokrywka <[EMAIL PROTECTED]> for testcase and information on which conditions problem could be reproduced under. Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- include/utils.h |2 +- lib/utils.c |8 +--- 2 files changed, 6 insertions(+), 4 deletions

[PATCH 04/12] Fix up various problems in netbug script.

2007-10-12 Thread Andreas Henriksson
41, and http://bugs.debian.org/313544. Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- misc/netbug | 24 1 files changed, 8 insertions(+), 16 deletions(-) diff --git a/misc/netbug b/misc/netbug index 6d13c8e..7b6ecea 100644 --- a/misc/netbug +++ b/mi

[PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage.

2007-10-12 Thread Andreas Henriksson
From: Andreas Barth <[EMAIL PROTECTED]> Spotted by Aleš Kozumplík <[EMAIL PROTECTED]> (http://bugs.debian.org/289225) Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- man/man8/tc.8 |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/man/man8/

[PATCH 03/12] Prevent renaming interfaces to empty string.

2007-10-12 Thread Andreas Henriksson
From: Alexander Wirt <[EMAIL PROTECTED]> Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- ip/iplink.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ip/iplink.c b/ip/iplink.c index 4060845..da1f64e 100644 --- a/ip/iplink.c +++ b/ip/iplink

[PATCH 09/12] Add new rtacct/nstat manpages and additional symlinks.

2007-10-12 Thread Andreas Henriksson
Symlink rtstat(8) and ctstat(8) to lnstat(8). Add rtacct/nstat manpage based on doc/nstat.sgml as rtacct(8). Symlink nstat(8) to rtacct(8). Add arpd(8) symlink based on doc/arpd.sgml. Signed-off-by: Andreas Henriksson <[EMAIL PROTECTED]> --- Makefile |3 ++ man/man8/arpd.8

Re: iproute2: resend of patches from Debian.

2007-10-11 Thread Andreas Henriksson
On tor, 2007-10-11 at 14:48 -0700, David Miller wrote: > From: Andreas Henriksson <[EMAIL PROTECTED]> > Date: Thu, 11 Oct 2007 23:22:12 +0200 > > > Copying Alexander Wirt here again, as I think this is his patch. > > It is important that whoever is the package maintai

Re: iproute2: resend of patches from Debian.

2007-10-11 Thread Andreas Henriksson
On tor, 2007-10-11 at 22:30 +0200, Patrick McHardy wrote: > Andreas Henriksson wrote: > > Abort flush after 10 seconds. > > This should be optional IMO. Copying Alexander Wirt here again, as I think this is his patch. I'll skip this patch in my next resend... > >

Re: iproute2: resend of patches from Debian.

2007-10-11 Thread Andreas Henriksson
use 'git > formatpatch origin' > so all the formatting is correct. I'm not so great with git, but I'll read up on how to do this and hopefully resend properly tomorrow. (I'll make sure the patch Len commented on also gets fixed by then.) -- Regards, Andreas Henriksson -

Re: iproute2: resend of patches from Debian.

2007-10-11 Thread Andreas Henriksson
On tor, 2007-10-11 at 15:25 -0400, Lennart Sorensen wrote: > On Thu, Oct 11, 2007 at 08:25:32PM +0200, Andreas Henriksson wrote: > > Patch from debian iproute package. > > > > diff -urNad iproute-20060323~/ip/iplink.c iproute-20060323/ip/iplink.c > > --- iproute-2006032

iproute2: resend of patches from Debian.

2007-10-11 Thread Andreas Henriksson
Hello all! Posting this set of patches again, since there where no reaction last time I sent them. Regards, Andreas Henriksson Hello Stephen Hemminger and the rest of the people on the nevdev list! I'm posting a bunch of patches for iproute2. A few I've written myself and hav

[PATCH] iproute2: patches from Debian.

2007-09-09 Thread Andreas Henriksson
oute_usage.diff ip_rule_usage.diff patches fixing documentation typos: fix_ss_typo.diff ip.8-typo.diff ip_address.diff libnetlink_typo.diff manpages-typo.diff tcb_htb_typo.diff tc_cbq_details_typo.diff -- Regards, Andreas Henriksson Disallow empty link name. From: Alexander Wirt <[EMAIL PROTECTED]&g

Re: iproute2 showing wrong number of bytes on 64bit architectures.

2007-07-11 Thread Andreas Henriksson
+ (u32)stats->tx_fifo_errors, (u32)stats->collisions, + (u32)(stats->tx_carrier_errors + + ustats->tx_aborted_errors + stats->tx_window_errors + - stats->tx_heartbeat_errors, - stats-

iproute2 showing wrong number of bytes on 64bit architectures.

2007-07-10 Thread Andreas Henriksson
...; unsigned long ...; This will be a problem when unsigned long isn't 32bits, but I guess the rtnetlink message size is static for good reason. Can someone please advise on how to fix this? -- Regards, Andreas Henriksson - To unsubscribe from this list: send the line "u