History log of /external/iproute2/ip/ipntable.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
45c2ec9e95fef8eb6f0807d9a7e5f14c14313c7e 24-Aug-2017 Phil Sutter <phil@nwl.cc> ipntable: Avoid memory allocation for filter.name

The original issue was that filter.name might end up unterminated if
user provided string was too long. But in fact it is not necessary to
copy the commandline parameter at all: just make filter.name point to it
instead.

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/ip/ipntable.c
28692621442710f4a67fe33742f56efc582ee33a 17-Aug-2017 Phil Sutter <phil@nwl.cc> ipntable: No need to check and assign to parms_rta

This variable is initialized at declaration and nowhere else does any
assignment to it happen, so just drop the check.

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/ip/ipntable.c
d17b136f7d7dd6ed7ea518e4f068d3de735e8756 18-Jul-2016 Phil Sutter <phil@nwl.cc> Use C99 style initializers everywhere

This big patch was compiled by vimgrepping for memset calls and changing
to C99 initializer if applicable. One notable exception is the
initialization of union bpf_attr in tc/tc_bpf.c: changing it would break
for older gcc versions (at least <=3.4.6).

Calls to memset for struct rtattr pointer fields for parse_rtattr*()
were just dropped since they are not needed.

The changes here allowed the compiler to discover some unused variables,
so get rid of them, too.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
/external/iproute2/ip/ipntable.c
56f5daac98da0c405fdbc52f04afd5de82404bce 21-Mar-2016 Stephen Hemminger <stephen@networkplumber.org> ip: code cleanup

Run all the ip code through checkpatch and have it fix the obvious stuff.
/external/iproute2/ip/ipntable.c
f1fdcfe66a8e197a5015cb81c789061c03629108 02-Mar-2016 Phil Sutter <phil@nwl.cc> ipntable: Fix typo in help text

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/ip/ipntable.c
f7b49a3fc7701c2b0cd11e30a64f9b9fea766c2c 06-Nov-2015 Phil Sutter <phil@nwl.cc> ip_common.h header cleanup

- Drop 'extern' keyword from all function prototypes.
- Make line breaking of print_* functions consistent.
- Make print_ntable() and ipntable_reset_filter() static and remove
their declaration.
- Drop declaration of non-existent ipaddr_list() and iproute_monitor().

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/ip/ipntable.c
c079e121a73af5eb49e003b13607e8a690331df6 27-May-2015 Stephen Hemminger <shemming@brocade.com> libnetlink: add size argument to rtnl_talk

There have been several instances where response from kernel
has overrun the stack buffer from the caller. Avoid future problems
by passing a size argument.

Also drop the unused peer and group arguments to rtnl_talk.
/external/iproute2/ip/ipntable.c
4806867a6cc2950293229e66efe88061323ca0cf 17-Feb-2014 Stephen Hemminger <stephen@networkplumber.org> kill spaces before tabs
/external/iproute2/ip/ipntable.c
4d98ab00de90bac916f526c83c68012d7159f712 07-Dec-2013 Stephen Hemminger <stephen@networkplumber.org> Fix FSF address in file headers
/external/iproute2/ip/ipntable.c
d259f0302f02206d7eb448da2673487fe1e0f8f6 05-Aug-2013 Stephen Hemminger <stephen@networkplumber.org> Fix spelling errors

Minor errors found by codespell
/external/iproute2/ip/ipntable.c
ae70d9665615ae723a108947aa60b5f65caffab2 04-Mar-2013 Stephen Hemminger <stephen@networkplumber.org> ipntable: more fixes for ppc64

Not all arch have sizeof(unsigned long long) == sizeof(__u64)
/external/iproute2/ip/ipntable.c
a55a8fd83be9d91bd2adb73eebac8833a51b626f 28-Feb-2013 Stephen Hemminger <stephen@networkplumber.org> fix dependency on sizeof(__u64) == sizeof(unsigned long long)

Some platforms like ppc64 have unsigned long long as 128 bits, and
the printf format string would cause errors. Resolve this by using
unsigned long long where necessary (or unsigned long).
/external/iproute2/ip/ipntable.c
a7c2882461581747488e5aabf10d19b46b371a01 27-Feb-2013 Stephen Hemminger <stephen@networkplumber.org> ip: fix ipv6 ntable on ppc64

Add casts to handle printf format when
sizeof(unsigned long long) != sizeof(__u64)
/external/iproute2/ip/ipntable.c
5bd9dd49aecb66cae5e6d34197ab0487d946cc1d 23-Dec-2012 Strake <strake888@gmail.com> include needed files

Needed to build iproute2 with musl
/external/iproute2/ip/ipntable.c
ff24746cca1ef0c92d46614158e6672acd6b63d3 10-Apr-2012 Stephen Hemminger <shemminger@vyatta.com> Convert to use rta_getattr_ functions

User new functions (inspired by libmnl) to do type safe access
of routeing attributes
/external/iproute2/ip/ipntable.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.
/external/iproute2/ip/ipntable.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>
/external/iproute2/ip/ipntable.c
143969f24bc40e2a28e53d1008852188b8cd767a 10-Jan-2006 shemminger <shemminger> Add missing files.
/external/iproute2/ip/ipntable.c