History log of /external/iproute2/tc/em_ipset.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
18f156bfecda20166c2fb543ba8c9c6559edef9c 01-Sep-2017 Phil Sutter <phil@nwl.cc> Convert the obvious cases to strlcpy()

This converts the typical idiom of manually terminating the buffer after
a call to strncpy().

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/tc/em_ipset.c
3e587d9f438910df6c1751c45fd898cec1477ae6 17-Aug-2017 Phil Sutter <phil@nwl.cc> tc/em_ipset: Don't leak sockfd on error path

Signed-off-by: Phil Sutter <phil@nwl.cc>
/external/iproute2/tc/em_ipset.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/tc/em_ipset.c
32a121cba257954963fbdd56a1c4567c2efc779a 21-Mar-2016 Stephen Hemminger <stephen@networkplumber.org> tc: code cleanup

Use checkpatch to fix whitespace and other style issues.
/external/iproute2/tc/em_ipset.c
8194411a426584330d3bea0498641bbfe86c8933 09-Aug-2012 Florian Westphal <fw@strlen.de> tc: add ipset ematch

example usage:
tc filter add dev $dev parent $id: basic match not ipset'(foobar src)' ..

also updates iproute2/ematch_map, else tc complains:
Error: Unable to find ematch "ipset" in /etc/iproute2/ematch_map
Please assign a unique ID to the ematch kind the suggested entry is:
8 ipset

when trying to use this ematch.

(text ematch (5) only exists in kernel, a vlan ematch (6) exists neither in
kernel nor userspace, but kernel headers define TCF_EM_VLAN == 6).
/external/iproute2/tc/em_ipset.c