[PATCH bpf-next 3/4] tools/bpf: add more netlink functionalities in lib/bpf

2018-09-05 Thread Yonghong Song
This patch added a few netlink attribute parsing functions and the netlink API functions to query networking links, tc classes, tc qdiscs and tc filters. For example, the following API is to get networking links: int nl_get_link(int sock, unsigned int nl_pid, dump_nlmsg_t dump_l

[RFC PATCH bpf-next 3/4] tools/bpf: add more netlink functionalities in lib/bpf

2018-09-03 Thread Yonghong Song
This patch added a few netlink attribute parsing functions and the netlink API functions to query networking links, tc classes, tc qdiscs and tc filters. For example, the following API is to get networking links: int nl_get_link(int sock, unsigned int nl_pid, dump_nlmsg_t dump_l