iproute2/include
Hangbin Liu 86bf43c7c2 lib/libnetlink: update rtnl_talk to support malloc buff at run time
This is an update for 460c03f3f3 ("iplink: double the buffer size also in
iplink_get()"). After update, we will not need to double the buffer size
every time when VFs number increased.

With call like rtnl_talk(&rth, &req.n, NULL, 0), we can simply remove the
length parameter.

With call like rtnl_talk(&rth, nlh, nlh, sizeof(req), I add a new variable
answer to avoid overwrite data in nlh, because it may has more info after
nlh. also this will avoid nlh buffer not enough issue.

We need to free answer after using.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
2017-10-26 12:29:29 +02:00
..
iptables Update to current iptables headers 2016-01-03 15:14:27 -08:00
libiptc Update to current iptables headers 2016-01-03 15:14:27 -08:00
netinet ss: report ecnseen 2011-11-23 14:51:54 -08:00
uapi update headers for TC and TIPC from net-next 2017-10-25 12:40:47 +02:00
SNAPSHOT.h v4.13.0 2017-09-05 09:39:32 -07:00
bpf_api.h lwt: BPF support for LWT 2016-12-12 15:32:54 -08:00
bpf_elf.h bpf: support loading map in map from obj 2017-07-18 17:20:45 -07:00
bpf_scm.h tc, bpf: finalize eBPF support for cls and act front-end 2015-04-10 13:31:19 -07:00
bpf_util.h bpf: consolidate dumps to use bpf_dump_prog_info 2017-09-05 09:26:34 -07:00
color.h color: Rename enum 2017-10-16 09:24:11 -07:00
dlfcn.h remove unnecessary extern 2015-08-13 14:09:58 -07:00
ip6tables.h Update to current iptables headers 2016-01-03 15:14:27 -08:00
iptables.h Update to current iptables headers 2016-01-03 15:14:27 -08:00
json_print.h color: Rename enum 2017-10-16 09:24:11 -07:00
json_writer.h json_writer: add new json handlers (null, float with format, lluint, hu) 2017-08-17 18:02:40 -07:00
libgenl.h libgenl: introduce genl_init_handle 2016-08-17 13:59:21 -07:00
libnetlink.h lib/libnetlink: update rtnl_talk to support malloc buff at run time 2017-10-26 12:29:29 +02:00
list.h list: add list_add_tail helper 2016-04-19 08:01:05 -07:00
ll_map.h remove unnecessary extern 2015-08-13 14:09:58 -07:00
names.h tc class: Ignore if default class name file does not exist 2015-04-07 08:31:56 -07:00
namespace.h remove unnecessary extern 2015-08-13 14:09:58 -07:00
rt_names.h make the addr argument of ll_addr_n2a const 2015-03-24 15:45:23 -07:00
rtm_map.h ip, realms: also allow to pass in raw realms value 2015-10-22 23:40:51 -07:00
utils.h utils: add print_escape_buf to format and print arbitrary bytes 2017-10-11 11:04:47 -07:00
xt-internal.h Breakage noticed when debian upgraded to xtables (iptables > 1.4.1) 2009-02-19 09:02:13 -08:00
xtables.h Update to current iptables headers 2016-01-03 15:14:27 -08:00