History log of /external/iproute2/lib/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
37387691c0c4dd4b06938fc92c4540c92da90ef9 08-Jul-2014 Sreeram Ramachandran <sreeram@google.com> Define a writeable CONFDIR for iproute2.

Currently, the CONFDIR defaults to /etc/iproute2, which is on a read-only
filesystem. We plan to write some files at runtime to this directory, so we need
to point it at a read-write filesystem.

Note that nothing in Android actually uses (populates) the current CONFDIR
(/etc/iproute2). It doesn't even exist on the default system image. In other
words, this change doesn't break anything.

Change-Id: I69deb1a64d5d6647470823405bf0cc55b24b22de
ndroid.mk
98f709fb7327dde7fb1092fabed030a90e1dfb51 07-Dec-2013 Kristian Monsen <kristianm@google.com> Hide all warnings from this project

Turn on warning as error to detect new warnings.

Change-Id: Id20a927c0f47208efb0b841e72de4bdd0d09323c
ndroid.mk
1c7928f8c1f12873e8f3b7767a3b342170737f8f 20-Feb-2013 Yegor Yefremov <yegorslists@googlemail.com> Use relative path for private includes

Change-Id: I44071e1035560ecff2fd4a8a9723468b0e23eb8a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
ndroid.mk
85d633f9776644b851a356924a2f5cdbbaada786 06-Apr-2012 Wei Zhong <wzhong@google.com> Add NOTICE and MODULE_LICENSE files for every Android.mk

Bug: 6299628

Change-Id: I0ca2bf16e7712e0d5ee2985ed4db75889cbd5ce0
Signed-off-by: Wei Zhong <wzhong@google.com>
(cherry picked from commit ba2925d39555590dd4bec50c413d6b4d65f5405e)
ODULE_LICENSE_GPL
OTICE
942d17fc31fce3a870104d43481cba3b0dd7dd3f 06-May-2010 Dan Bornstein <danfuzz@android.com> For issue #2651381, allow library prelinking.

Change-Id: I0248628c3712026b623473bd268dcb2ca75c4e30
ndroid.mk
6644900d2116a2a397bf0ed26ffd845ca2136b52 07-Apr-2010 San Mehat <san@google.com> iproute2: Build tc and netlink/util libs

For http://b/issue?id=2576057

Change-Id: Ic0a5edbdf6496a1a267634147c3c3eea3b3604ac
Signed-off-by: San Mehat <san@google.com>
ndroid.mk
tils.c
fb72129b78ac97433bf38da2b233a48358e30fac 01-Mar-2012 Christoph J. Thompson <cjsthompson@gmail.com> iproute2 - Don't hardcode the path to config files

Allows using an alternate path for config files.

Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
t_names.c
bd886ebb1ffd84301caa2341b671df9a9e2db4c9 21-Feb-2012 Rose, Gregory V <gregory.v.rose@intel.com> iproute2: Add netlink attribute to filter dump requests

Add a new netlink attribute type to the dump request to allow
filtering of the information returned for the respective matching
interfaces. At this time the only filter defined is to request
virtual function (VF) device info for interfaces that attached VFs.

It will also be possible to extend the request with other yet to be
defined netlink attributes in the future.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
ibnetlink.c
30d10db5667d3ca86917ca86c1a65cfcc45965f9 20-Dec-2011 Hagen Paul Pfeifer <hagen@jauu.net> utils: add s32 parser

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
tils.c
aa38c3eefaf6c6f4fd0a8858f6b771b6c8f84129 19-Jan-2012 Masatake YAMATO <yamato@redhat.com> using NLM_F_DUMP flag constant in libnetlink.c

This is trivial patch for libnetlink.c in iproute2.

In iproute2/include/linux/netlink.h NLM_F_DUMP is defines as:

#define NLM_F_DUMP (NLM_F_ROOT|NLM_F_MATCH)

It is not used in libnetlink.c. If used, the code becomes a bit easier
to read.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
ibnetlink.c
cd70f3f522e04b4d2fa80ae10292379bf223a53b 28-Dec-2011 Stephen Hemminger <shemminger@vyatta.com> libnetlink: remove unused junk callback

Both rtnl_talk and rtnl_dump had a callback for handling portions
of netlink message that do not match the correct pid or seq.
But this callback was never used by any part of iproute2 so remove
it.
ibnetlink.c
l_map.c
2aa3dd29a75c494bf969586da5489d4dc7d07839 23-Dec-2011 Stephen Hemminger <shemminger@vyatta.com> libnetlink: add more attribute functions

New functions to handle u8, u16, u32, u64 and string attribute types.
Use common code for all attribute wrappers.
ibnetlink.c
6cf8398f5f487762586801c25539d8fe5bb33b39 23-Dec-2011 Stephen Hemminger <shemminger@vyatta.com> libnetlink: change rtnl_send() to take void *

Avoid having to cast buffer being sent.
ibnetlink.c
97c13582f98377c9e1a72ed40fb2b80225c4c0f9 03-Oct-2011 Thomas Jarosch <thomas.jarosch@intra2net.com> Fix file descriptor leak on error in rtnl_hash_initialize()

Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
t_names.c
75dbf137916a2356807edf12c84e4e906277dd3b 31-Aug-2011 Stephen Hemminger <shemminger@vyatta.com> Add LLDP to ethernet type table

and make type table const.
l_proto.c
21a85d3becf45e02985c466764ae19433d907c40 11-Jul-2011 Stephen Hemminger <shemminger@vyatta.com> Fix test for EOF on continuation line

getline() returns -1 on EOF, need to not loose that by forcing
result to size_t (unsigned).

Reported-by: Petr Sabata
tils.c
2dd9f8e073717aed2b624d1e9e325487260b57eb 20-Jun-2011 Stephen Hemminger <shemminger@vyatta.com> libnetlink: fix set never used warning
ibnetlink.c
d5b7420a269e6e220e00cfbd69546d157fac1332 26-Feb-2011 Stephen Hemminger <stephen.hemminger@vyatta.com> Remove #ifdef's

The iproute package keeps its own headers so there is no need
of polluting code with #ifdef's
l_proto.c
81d03dc356df24d55443535eace247b93ff47b4e 25-Feb-2011 Gerrit Renker <gerrit@erg.abdn.ac.uk> iproute: rename 'get_jiffies' since it uses msecs

The get_jiffies() function retrieves rtt-type values in units of
milliseconds. This patch updates the function name accordingly,
following the pattern given by dst_metric() <=> dst_metric_rtt().
tils.c
9b2cdc00dab7b601938901e20b5e1e66188d388b 25-Feb-2011 Gerrit Renker <gerrit@erg.abdn.ac.uk> iproute: fix unit conversion of rtt/rttvar/rto_min

Since July 2008 (2.6.27, c1e20f7c8b9), the kernel stores the values for
RTAX_{RTT{,VAR},RTO_MIN} in milliseconds. When using a kernel > 2.6.27 with
the current iproute2, conversion of these values is broken in either way.

This patch
* updates the code to pass and retrieve milliseconds;
* since values < 1msec would be rounded up, also drops the usec/nsec variants;
* since there is no way to query kernel HZ, also drops the jiffies variant.

Arguments such as
rtt 3.23sec
rto_min 0xff
rto_min 0.200s
rttvar 25ms
now all work as expected when reading back previously set values.
tils.c
94089ef7726cc25bffbd133fe5e1e16e0fd4654e 21-Dec-2010 Gerrit Renker <gerrit@erg.abdn.ac.uk> utils: get_jiffies always uses base=0

get_jiffies() is in all places called in the same manner, with base=0;
simplify argument list by putting the constant value into the function.
tils.c
f960c92aac1838e0f336c0ca0f657bb55a42d8e9 02-Feb-2011 Vlad Dogaru <ddvlad@rosedu.org> iproute2: support listing devices by group

User can specify device group to list by using the group keyword:

ip link show group test

If no group is specified, 0 (default) is implied.

Signed-off-by: Vlad Dogaru <ddvlad@rosedu.org>
t_names.c
4b3385f6c593b2a37a3ee5dca3a8dbc1d1392d86 10-Dec-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> Cleanup ll_map

In preparation for adding name hash:
* add const
* use same types in cache as ifinfomsg
* rename idxmap to ll_cache
l_map.c
30564237282c497649f04b20e791de420004e3a5 10-Dec-2010 Octavian Purdila <opurdila@ixiacom.com> iproute2: initialize the ll_map only once

Avoid initializing the LL map (which involves a costly RTNL dump)
multiple times. This can happen when running in batch mode.

Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
l_map.c
1e21ea71a7e12e6bd06ece8cf415e7a5f372c806 10-Dec-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> Increase size of ifindex hash heads

The default of 16 is too small for users with 10,000 interfaces.
l_map.c
3bc1c4f29777171b484d36abf673667e3729202b 16-Aug-2010 Ben Greear <greearb@candelatech.com> iproute2: Fix filtering related to flushing IP addresses.

The old 'ip addr flush' logic had several flaws:

* It reversed logic for primary v/s secondary flags
(though, it sort of worked right anyway)

* The code tried to remove secondaries and then primaries,
but in practice, it always removed one primary per loop,
which not at all efficient.

* The filter logic in the core would run only the first
filter in most cases.

* If you used '-s -s', the ifa_flags member would be
modified, which could make future filters fail
to function fine.

This patch attempts to fix all of these issues.

Tested-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: Ben Greear <greearb@candelatech.com>
ibnetlink.c
4dbda0f482b8947d064b3f82992394033de6616c 23-Jul-2010 Stephen Hemminger <stephen.hemminger@vyatta.com> Update ARP header type table

Add all current values. Since if_arp.h is included, get rid
of ifdefs'. Make table constant.
l_types.c
9ec0e899e13f01e44e8111179910e5d57ced2c4a 09-Jun-2010 Mike Frysinger <vapier@gentoo.org> dnet: fix strict aliasing warnings

Recent gcc doesn't like it when you cast char pointers to uint16_t
pointers and then dereference it. So use memcpy() instead and let
gcc take care of optimizing things away (when appropriate). This
should also fix alignment issues on arches where gcc packs the char
pointer tighter than 16bits.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
net_ntop.c
net_pton.c
24abb62ee737f98b4b5a7afc8b817cdb6eb53a46 07-May-2010 Florian Westphal <fw@strlen.de> iproute2: fix addrlabel interface names handling

ip addrlabel outputs if%d names due to missing init call:
$ ip addrlabel s
prefix a::42/128 dev if4 label 1000

Also, ip did not accept "if%d" interfaces on input.

Signed-off-by: Florian Westphal <fw@strlen.de>
l_map.c
800b444016665980ad0de1ec878031fd1dedc240 11-Mar-2010 Jan Engelhardt <jengelh@medozas.de> ip: correctly report tunnel link type

Up until now, "tun" tunnels were displayed as link/[65534].

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
l_types.c
6e46ec813b7f06a85acb5a348dfc1a25ea488024 10-Feb-2010 Williams, Mitch A <mitch.a.williams@intel.com> libnetlink: Modify the parser to track first duplicated attributes

Modify the parser to keep track of the first of any duplicated attributes,
instead of the last. This is required for VF configuration reporting, where
multiple attributes of the same type are added sequentially.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
ibnetlink.c
b49240ec7eab91418d2f090536bf8cd2205988d6 02-Dec-2009 Simon Horman <horms@verge.net.au> flush secondary addresses before primary ones

Unless promote_secondaries has been active deleting the primary address of
an interface will automatically delete all the secondary addresses.

In the case where ip flush requests the primary then secondary addresses to
be removed - which is the order the addresses are returned by the kernel -
this will cause an error as by the time the request to remove a secondary
address is made it will be missing as it will have been deleted in the
course of deleting the primary address.

This approach to solving this problem orders requests for the
deletion of secondary addresses before primary ones providing
rtnl_dump_filter_l(), a version of rtnl_dump_filter() that
iterates over a list of filters. And by providing two specialised
filters print_addrinfo_secondary() and print_addrinfo_primary().

rtnl_dump_filter_l() first iterates over all addresses using
print_addrinfo_secondary(), which appends secondary addresses to the
request buffer. Then again using print_addrinfo_primary() which appends
primary addresses.

This approach should work regardless of it promote_secondaries is
active or not. And regardless of if any primary of secondary addresses
are present or not.

Signed-off-by: Simon Horman <horms@verge.net.au>
ibnetlink.c
6837f771edf49d5b19c12a2d2760234e86241c48 23-Nov-2009 Andreas Henriksson <andreas@fatal.se> iproute2: use -fPIC in lib/

The static libnetlink.a library is exposed to other users in Debian via the
"iproute-dev" package. Apparently people are interested in using it in their
shared libraries and would like to see the code be position independent.

Patch below makes the code under lib/ build with -fPIC.

See http://bugs.debian.org/547602

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
akefile
ee7ba9875d2b1662fc13a96d082a31cc4258465f 15-Oct-2009 David Ward <david.ward@ll.mit.edu> iproute2: Add ll_index_to_addr function

After calling ll_init_map, all of the information stored in the link-layer map
can be retrieved by function calls (ll_index_to_*), except for the link-layer
address. This patch fills the gap by adding a ll_index_to_addr function.
Changes welcome.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
l_map.c
232642c28c5320e6cf1e32f667f866c5f7372bfe 02-Dec-2009 Stephen Hemminger <stephen.hemminger@vyatta.com> Remove Changes: comments

Discourage developers from putting change log in comments
now that software has been under change control for 5 years.
tils.c
e03dcc040d47e87991314991ba2f79af9fab2218 15-Oct-2009 David Ward <david.ward@ll.mit.edu> iproute2: Support 20-byte link layer address in idxmap

Extend the link-layer address field from 8 to 20 bytes to support InfiniBand.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
l_map.c
7f03191fda39ff09640f093b7ad84f461ffd65b2 28-Oct-2009 Patrick McHardy <kaber@trash.net> iproute uses too small of a receive buffer

It uses 1MB as receive buf limit by default (without
increasing /proc/sys/net/core/rmem_max it will be limited by less
however) and allows to specify the size manually using "-rcvbuf X"
(-r is already used, so you need to specify at least -rc).

Additionally rtnl_listen() continues on ENOBUFS after printing the
error message.
ibnetlink.c
24f38182441868f27aec03e82105eb008127e879 10-Nov-2009 Sven Anders <anders@anduras.de> Fix flushing code - rtnl_send_check

I experienced an error, if I try to perform a

ip route flush proto 4

with many routes in a complex environment, it
gave me the following error:

Failed to send flush request: Success
Flush terminated
ibnetlink.c
2d8240f8d95dfdc276dcf447623129fb5ccedcd6 13-Jul-2009 Stephen Hemminger <stephen.hemminger@vyatta.com> Fix flushing of large number of entries

Checking for errors would cause some responses to be lost.
ibnetlink.c
98f9a1d24442399db3b1b6190010855804ca15e2 27-Mar-2009 Oliver Hartkopp <oliver@hartkopp.net> Add support Controller Area Network

t's not a big problem, but it makes a better show in 'ip link show' on
CAN interfaces :-)

I also moved __PF(CAN,can) in ll_proto.c to the same position where it
can be found in if_ether.h .

The only thing i did not know if the __PF(CAN,can) in ll_types.c needs
to be put in #ifdef ARPHDR_CAN like __PF(HWX25,hwx25) is or not. You
definitely know that better than me.
l_proto.c
l_types.c
1e659af3c0c6d1aad6007c5b4c5405b1fee483d7 18-Mar-2009 Stephen Hemminger <stephen.hemminger@vyatta.com> Add DHCP as routing protocol
t_names.c
cafa6c8ec1d6e4bddde190edb742be864ce3f9b3 27-Oct-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> Restore old address parsing but with checking

Go back to original address parsing for compatability, but
document it and add more stringent checking.
tils.c
94afda752956ddc6ff1accf931bc3d03c070bb18 15-Oct-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> Compatiable network abbreviation support

Handle 10/8 as 10.0.0.0/8 and check for bogus values like 256/8.
This is a comprimise between original iproute2 parsing and standard BSD
parsing of abbreviated IPV4 addresses.
tils.c
2ca4abdcb823e708b88156f947fa5b493055618a 29-Aug-2008 Andreas Henriksson <andreas@fatal.se> 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)
tils.c
516ffb6b7724e97ca035293dcfd9f94cf6ce3a47 22-May-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> 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.
tils.c
7dec1bf88bc34e2d0b320f0c23bd1a060c73852b 08-May-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> 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.
tils.c
10bd7e846030b1f2b5c4a9180474569870a05da1 08-Feb-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> 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?
l_proto.c
f31a37f79d1f33d4d0d6a18f3768bfee27e8b6cc 01-Feb-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> 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>
ibnetlink.c
54bb35c69cec6c730a4ac95530a1d2ca6670f73b 26-Jan-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> 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.
ibnetlink.c
aa8032e628405c1318271fc928babbc06ab12d62 26-Jan-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> 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>
ibnetlink.c
6b1ac654e9364ad279d3c82d8a3ef93efa9f3dfa 31-Dec-2007 Stephen Hemminger <stephen.hemminger@vyatta.com> add decode of match rules

Show ip address etc when decoding output of tc filter show

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
tils.c
4b270b172a6e570f4e9fa1ebb4bc67b0e715ee48 11-Dec-2007 Stephen Hemminger <shemminger@linux-foundation.org> Fix dotted quad for bit order

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
tils.c
5a0d1cbf69269bfcb510a8b861b8a83aed0f6b85 08-Dec-2007 Andreas Henriksson <andreas@fatal.se> iproute2: support dotted-quad netmask notation.

On tor, 2007-12-06 at 11:53 -0800, Stephen Hemminger wrote:
> On Tue, 4 Dec 2007 14:58:18 +0100
> Andreas Henriksson <andreas@fatal.se> wrote:
>
> > 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?
>
> Fix the bug you mentioned?
>
> [... snip example code ...]

Updated patch, added your netmask validation code but without the check
that made 0.0.0.0 (default) and 255.255.255.255 (one address) invalid
netmasks as they are permitted in CIDR format.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
tils.c
037c635eee994f6b29fc82931490e831d4a2ead2 10-Dec-2007 Stephen Hemminger <shemminger@linux-foundation.org> Fix off by one in nested attribute management.

Fixes segv in:
tc qdisc show dev eth1
due to uninitialized attribute table.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
ibnetlink.c
d21e88354b2a42b026384730a767f2108bcf8efe 12-Oct-2007 Andreas Henriksson <andreas@fatal.se> Fix corruption when using batch files with comments and broken lines.
The problem was that length of allocation changed but caller not told.

Anyway, the patch fixes a problem resulting in a double free
that occurs when using batch files that contains a special combination
of broken up lines and comments as reported in:
http://bugs.debian.org/398912

Thanks to Michal Pokrywka <mpokrywka@hoga.pl> for testcase and information
on which conditions problem could be reproduced under.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
tils.c
54e0b2e71d723e3b493ff53d1332b48250f5d4bc 11-Oct-2007 Rick Jones <rick.jones2@hp.com> rto support for ip command

Enable users of ip to specify the times for rtt, rttvar and rto_min
in human-friendly terms a la "tc" while maintaining backwards
compatability with the previous "raw" mechanism. Builds upon
David Miller's uncommited patch to set rto_min.

Signed-off-by: Rick Jones <rick.jones2@hp.com>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
tils.c
2f90c9c0bb0d8ed4841cb4c77c2d707ec07f20bf 14-Aug-2007 Patrick McHardy <kaber@trash.net> IPROUTE2: RTNETLINK nested attributes

This adds capability for iproute2 to send nested attributes to the
kernel, while maintaining backwards compatibility.

Signed-off-by: Patrick McHardy <kaber@trash.net>
ibnetlink.c
dcb283c300299d79a37fd386ea854b156fd503c5 20-Jun-2007 Thomas Graf <tgraf@suug.ch> 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>
l_map.c
0280ef85aa603681ec3971b3437df317849d7e54 09-Jun-2007 David Lamparter <lists@diac24.net> iproute2: Format IPv6 tunnels endpoints nicely.

Change formatting of IPv6 tunnel endpoints from hex chain to standard IPv6
representation.

Signed-off-by: David Lamparter <equinox@diac24.net>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
l_addr.c
fc537c259d444219172a158704a3abb2e4a378c4 28-Mar-2007 Pavel Roskin <proski@gnu.org> ip: add support for displaying link types 802 and 803

802 is 802.11 with prism headers. 803 is 802.11 with radiotap headers.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
l_types.c
b16621cafd599499fdbaa79236266d72a53106bb 11-May-2007 Stephen Hemminger <shemminger@linux-foundation.org> incorrect initialization

Fix initialization in libnetlink.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
ibnetlink.c
ae665a522bd46bea44c5ea84c89c8b1731954170 05-Dec-2006 Stephen Hemminger <shemminger@osdl.org> Remove trailing whitespace

Go through source files and remove all trailing whitespace

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
px_ntop.c
l_map.c
l_proto.c
tils.c
9626dfd54c3cc4deec1c651a0bfee65b50feb78b 05-Dec-2006 Stephen Hemminger <shemminger@osdl.org> Add more includes

Add more sanitized headers to make build work,
and get rid of warning

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
tils.c
887a5d00917e0b154668a506917d3187417c5e7c 27-Nov-2006 Boian Bonev <bbonev@ipacct.com> Display local route table name correctly in output of:
ip ru
t_names.c
3bfa73ff99291d872f6d0e0284ee416e880088b6 26-Sep-2006 Stephen Hemminger <shemminger@osdl.org> rtnl fd check

Prevent accidental damage from rtnl library if fd is uninitialized.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
ibnetlink.c
34e9564753075c756f96597e7aa57f969a403aaf 11-Aug-2006 Patrick McHardy <kaber@trash.net> 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>
t_names.c
9c47d877d86b0e102979e3cad5d91c34f20f1275 11-Aug-2006 Patrick McHardy <kaber@trash.net> Use hash for routing table name cache

[IPROUTE]: Use hash for routing table name cache

Use a hash for routing table name cache instead of the fixed size array.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
t_names.c
40b6c62c6373a4dd4191078fdc6a2994792b2cb6 11-Mar-2006 shemminger <shemminger> Add more rtproto values
t_names.c
4cca16f20e92a97399d5814fc810af66ce0581d8 11-Mar-2006 shemminger <shemminger> Fix endless loop in netlink error handling.
ibnetlink.c
fb2297599de1fb7447a050e16e0179f739460473 05-Oct-2005 shemminger <shemminger> When assigning an ip address to an ethernet adapter, the newest
(050929) version of 'ip addr' hangs while older versions worked.
The problem was traced to be a removed initialisation. The patch
below corrects this problem.
ibnetlink.c
8ed63ab1f1283b2c63355fb7c1e80abead4b9399 21-Sep-2005 shemminger <shemminger> Fix leaks and warnings reported by valgrind.
ibnetlink.c
351efcde4e62967362a10b29f3b701cfecd7cdfc 01-Sep-2005 shemminger <shemminger> Update header files to 2.6.14
Integrate support for DCCP and tcp_diag into ss
Add -batch to ip command
tils.c
f332d169246447bd5e258ac03d5ee840a70adb1e 06-Jul-2005 shemminger <shemminger> Cleanup GCC4 warnings about signedness.
ibnetlink.c
l_addr.c
tils.c
99f830de2f6006ccfd324548633c396d15b395a0 08-Jun-2005 shemminger <shemminger> Device indices are unsigned and use if_nametoindex as fallback
l_map.c
90f93024a0818dc691138d8401721e797004b042 07-Jun-2005 shemminger <shemminger> Monitor time patch from Masahide NAKAMURA
tils.c
3dabdbb3da5ab7e9df8bf561602d681db26d8982 30-Mar-2005 net[shemminger]!shemminger <net[shemminger]!shemminger> Import patch netlink-align

(Logical change 1.179)
ibnetlink.c
f082b64fb40b467bc1f9e5d245114aae4e256d5c 30-Mar-2005 net[shemminger]!shemminger <net[shemminger]!shemminger> Import patch addr-del

(Logical change 1.178)
tils.c
5e8bc6316b1a6c56598cdb29a737d1d670d74e69 14-Mar-2005 net[shemminger]!shemminger <net[shemminger]!shemminger> Import patch iproute2-hz

(Logical change 1.159)
tils.c
1362865a56488b435a4a537eaabf3016bebaba58 09-Feb-2005 net[shemminger]!shemminger <net[shemminger]!shemminger> Import patch iband.patch

(Logical change 1.142)
l_types.c
175e2440df5be09b0a4c134cad958a49f7bfb9d9 07-Feb-2005 osdl.net!shemminger <osdl.net!shemminger> gcc 2.95 compile fix.

(Logical change 1.138)
ibnetlink.c
fb9b1d0f6a9f355bceae435ea43f1c8f3635b2df 07-Feb-2005 osdl.net!shemminger <osdl.net!shemminger> fix potential memory corruption

(Logical change 1.136)
tils.c
07f9436201eba2f75e6c480f5b16316b3bf977fc 18-Jan-2005 6!tgraf <6!tgraf> Use NLMSG_TAIL and add addraw_l

(Logical change 1.128)
ibnetlink.c
50772dc51ac02239958e1ebcdb21277fcdf133a7 07-Dec-2004 osdl.net!shemminger <osdl.net!shemminger> Add ip rule flush capabilty and fix all the prototype changes
because of that code rewrites the nlmsghdr.

(Logical change 1.106)
l_map.c
6dc9f016347441fbf94cf851c054b0f45ba32c1c 31-Aug-2004 osdl.net!shemminger <osdl.net!shemminger> make all filtering handles take const args.

(Logical change 1.77)
ibnetlink.c
l_map.c
007d3a3e9f0747039a772198293fd7f45a025f80 14-Aug-2004 osdl.net!shemminger <osdl.net!shemminger> Bigger send/receive buf.

(Logical change 1.66)
ibnetlink.c
c7699875bee00fbcd057fc62c30d6560b044e007 07-Jul-2004 net[shemminger]!shemminger <net[shemminger]!shemminger> Import patch ipxfrm-20040707_2.diff

(Logical change 1.53)
ibnetlink.c
tils.c
e1185353ee600cc800a64a9f756592ed6bc17e34 25-Jun-2004 osdl.net!shemminger <osdl.net!shemminger> Delete: lib/inet_pton.c

}(Logical change 1.33)
net_pton.c
1eb71f27fd252365047870412f1151cd86560b6e 25-Jun-2004 osdl.net!shemminger <osdl.net!shemminger> Delete: lib/inet_ntop.c

}(Logical change 1.33)
net_ntop.c
ea7436fb2d6ef8564ea7cc755b9338fcdafcb7c4 10-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> more build problems on older systems.

(Logical change 1.28)
l_addr.c
l_proto.c
a7452b20cdc8069f85bd1a4afa618153f905ba4e 10-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> Solve build problems on older systems.

(Logical change 1.27)
l_types.c
t_names.c
5dfe556188df2a3b2bfe73c8bc3b3b9216171a93 09-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> Need this when not using kernel headers.

(Logical change 1.16)
tils.c
b88fd9f48c06c620f192a3a4d99c0383b2caa293 09-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> Build fixes for 2.4 and align functions with protos
use initializers.

(Logical change 1.16)
t_names.c
010b0f65fa9deafe449c885e50d0366683f78316 08-Jun-2004 org[shemminger]!shemminger <org[shemminger]!shemminger> Import patch iproute2-2.4.7-default.patch

(Logical change 1.11)
t_names.c
10f57ef1ab9b4fca639cb2383bc04616fafba5ef 08-Jun-2004 org[shemminger]!shemminger <org[shemminger]!shemminger> Import patch iproute2-2.4.7-netlink.patch

(Logical change 1.9)
ibnetlink.c
4094db72b61dadd16e180eab5f62ccbc82e3976d 02-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> const char *

(Logical change 1.6)
tils.c
aba5acdfdb347d2c21fc67d613d83d4430ca3937 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> (Logical change 1.3)
akefile
net_ntop.c
net_pton.c
net_ntop.c
net_proto.c
net_pton.c
px_ntop.c
px_pton.c
ibnetlink.c
l_addr.c
l_map.c
l_proto.c
l_types.c
t_names.c
tils.c
86fdf0e47be697587efcf9602cd1f952a1d73170 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> Initial revision
akefile
net_ntop.c
net_pton.c
net_ntop.c
net_proto.c
net_pton.c
px_ntop.c
px_pton.c
ibnetlink.c
l_addr.c
l_map.c
l_proto.c
l_types.c
t_names.c
tils.c