summaryrefslogtreecommitdiffstats
path: root/lib/route/pktloc.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/route: potential memory leak in pktloc.cAmit Khatri2015-12-181-2/+4
| | | | | | | | | | | | | In scneario, where file modification time is unchanged, code is returning 0 form read_pktlocs(). It causes memory leak for path variable. Memory for this variable is allocated inside build_sysconf_path() by asprintf() function. http://lists.infradead.org/pipermail/libnl/2015-December/002079.html Signed-off-by: Amit Khatri <amit.khatri@samsung.com> Signed-off-by: Rahul Jain <rahul.jain@samsung.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route/pktloc: read_pktlocs() always returned success statusThomas Haller2014-06-101-1/+1
| | | | | | | Error found by coverity. Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route: remove unnecessary non-null check in pktloc and ematchThomas Haller2014-06-101-2/+1
| | | | | | | | This check is not necessary, and also they cause coverity to complain. Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* Move private header files to <netlink-private/*>Thomas Graf2013-01-241-3/+3
| | | | | | | This clarifies the seperation between public and private header files. Signed-off-by: Thomas Graf <tgraf@suug.ch>
* Clang diagnosticsКоренберг Марк (ноутбук дома)2012-10-191-1/+1
| | | | | | | | | | | | Based on clang diagnostics: 1. lib/nl.c: recvmsgs(): nla filling with zeros commented. 2. lib/route/classid.c: & lib/route/pktloc.c: remove zero-filling of struct stat 3. lib/route/qdisc/htb.c: Fix htb_qdisc_msg_fill(): fix zero-filling 4. ematch/container.c: container_parse: commented why only 4 bytes are copied len marked as unused to eliminate compiler warning
* fix license of lib/route/pktloc.cThomas Graf2011-09-081-3/+4
| | | | | | | | As Jan Engelhardt pointed out, pktloc.c is currently licenses under the GPL rather than the LGPL. This is a result of its previous existance in src/ which is GPL licensed. I missed to change its license when moving it to lib/. Since I am the only contributor to the code, I am changing the license hereby.
* Make some functions and global variables staticPavel Roskin2011-08-111-1/+1
|
* Allow NLSYSCONFDIR environment variable to overwrite built-in sysconfdirThomas Graf2011-03-241-1/+2
|
* Documentation updatesThomas Graf2011-03-211-1/+2
| | | | Mostly killing doxygen warnings, some doc updates to caching
* pktloc: support to specify a shift operator for packet locationsThomas GraF2010-11-041-2/+3
| | | | no users yet though.
* Extended pktloc to support nbyte locations for ipv6, etc.Thomas Graf2010-10-281-2/+16
| | | | | The alignment column/field now also takes a number, specifying the length in bytes of the field described by the location
* Packet location updatesThomas Graf2010-10-261-25/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch includes various bugfixes in the packet location parser. Namely it removes two memory leaks if parsing fails. The parser is correctly quit if an allocation error occurs and it is no longer possible to add duplicates. It removes the possibility to differ between net and host byteorder. This is better done in the actual classifiers as it makes more sense to specify this together with the value to compare against. The patch also extends the API to add new packet locations via rtnl_pktloc_add(). It introduces reference counting, therefore you now have to give back packet locations with rtnl_pktloc_put() after looking them up with rtnl_pktloc_lookup(). But you are allowed to keep using them if the packet location file has been reread. The packet location file now also understands "eth", "ip", and "tcp" for "link", "net", and "transport". A --list option has been added to nl-pktloc-lookup to list all packet location definitions A --u32=VALUE option has been added to let nl-pktloc-lookup print the definition in iproute2's u32 selector style. A manual page has been written for nl-pktloc-lookup. Finally, nl-pktloc-lookup has been made installable.
* Packet Location InterfaceThomas Graf2010-07-021-0/+168