summaryrefslogtreecommitdiffstats
path: root/include/linux-private
Commit message (Collapse)AuthorAgeFilesLines
* Sync linux headers to 4.19.66Michael Forney2019-08-2642-187/+1442
| | | | | | | | | | | | | | | | | | | This fixes the build with musl libc. Additionally, several changes were made to account for changes to the headers: - ip_mp_alg.h was removed, since it was removed in linux commit e06e7c61 (v2.6.23), and the last use of those constants was removed in libnl commit 535e8316. - Uses of TCF_META_ID_SK_ROUTE_CAPS were updated to __TCF_META_ID_SK_ROUTE_CAPS, since it was renamed in linux commit e20e6940 (v3.1). - Uses of IF_CARRIER_DOWN and IF_CARRIER_UP were replaced with their values, 0 and 1, since they are not in linux/if.h (they appear to be libnl-specific, added in libnl commit 3540e44b). https://github.com/thom311/libnl/pull/222
* Add CTA_LABELS and CTA_LABELS_MASK to ctattr_type according to the new kernelxinbao2019-08-071-0/+2
| | | | https://github.com/thom311/libnl/pull/218
* include: import tc_vlan.hVolodymyr Bendiuga2018-10-101-0/+39
| | | | Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* include: import linux header pkt_sched.hVolodymyr Bendiuga2018-07-241-41/+328
| | | | Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* include/linux: update copy of kernel headersThomas Haller2018-06-251-5/+38
| | | | | Taken from upstream kernel commit 29dcea88779c856c7dc92040a0c01233263101d4 (v4.17).
* if_tunnel: Update IFLA defines up to FWMARKThomas Winter2018-06-251-0/+14
| | | | | | This is a new option that was added in Linux v4.12. Signed-off-by: Thomas Winter <Thomas.Winter@alliedtelesis.co.nz>
* neigh: update neighbour.h and add missing flagsTobias Jungel2018-06-251-1/+11
| | | | | | NTF_EXT_LEARNED, NTF_OFFLOADED and NTF_MASTER are added to neigh_flags. https://github.com/thom311/libnl/pull/186
* include: copy entire pkt_cls.h from linuxVolodymyr Bendiuga2018-04-111-78/+182
| | | | Signed-off-by: Volodymyr Bendiuga <volodymyr.bendiuga@westermo.se>
* Update fib_rules.h to latest kernelDavid Ahern2018-04-061-4/+22
| | | | | | | Update fib_rules.h to kernel as of bfff4862653b ("net: fib_rules: support for match on ip_proto, sport and dport") Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
* Import lwtunnel encap files from kernelDavid Ahern2017-08-182-0/+99
| | | | | | | Import lwtunnel and mpls_iptunnel.h from net-next tree as of commit b217566a525ff24334d17635a865f44b68c2c583 Signed-off-by: David Ahern <dsahern@gmail.com>
* Import mpls header from kernel treeDavid Ahern2017-08-181-0/+76
| | | | | | | Add include/uapi/linux/mpls.h from net-next tree as of commit b217566a525ff24334d17635a865f44b68c2c583 Signed-off-by: David Ahern <dsahern@gmail.com>
* Update rtnetlink.h from kernel treeDavid Ahern2017-08-181-1/+17
| | | | | | | Update to rtnetlink.h to top of net-next tree as of commit b217566a525ff24334d17635a865f44b68c2c583 Signed-off-by: David Ahern <dsahern@gmail.com>
* genl: drop usage of GENL_ID_GENERATETobias Klauser2017-05-291-1/+5
| | | | | | | | | | | | After kernel commit a07ea4d9941a ("genetlink: no longer support using static family IDs"), GENL_ID_GENERATE is no longer exposed to userspace (and actually should never have been). Update the private header copy of linux/genetlink.h accordingly. And replace the two occurences of GENL_ID_GENERATE. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> https://github.com/thom311/libnl/pull/144
* Update fib_rules.h to latest kernelDavid Ahern2017-05-121-0/+3
| | | | | Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route: Add support for MPLS to netconfDavid Ahern2017-05-122-0/+3
| | | | | | | | | | | | Add support to netconf for MPLS address family. v2 - change get method to return 0/error and take 'int *val' which is set to the value requested - added rtnl_netconf_get_input to libnl-route-3.sym Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route: Add support for netconfDavid Ahern2017-05-122-0/+29
| | | | | | | | | | | | Add route/netconf cache type to monitor RTM_*NETCONF messages. v2 - change get methods to return 0/error and take 'int *val' which is set to the value requested Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Balakrishnan Raman <ramanb@cumulusnetworks.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route: neigh: use NDA_MASTER for neigh->n_master if availableRoopa Prabhu2017-02-271-0/+4
| | | | | | | | | | | | | | fdb cache is per bridge and hence hashed by: <bridge_ifindex, family, mac> newer kernels send bridge ifindex in NDA_MASTER. Use NDA_MASTER for neigh->n_master when available. Also imports a few more NDA_* attributes from upstream to keep linux/neighbour.h NDA_* attributes in sync with upstream. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
* route/act: add gact tc actionSushma Sitaram2016-12-021-0/+33
| | | | | | | Signed-off-by: Sushma Sitaram <sushma.sitaram@intel.com> Signed-off-by: Thomas Haller <thaller@redhat.com> http://lists.infradead.org/pipermail/libnl/2016-November/002249.html
* Add PPP supportJonas Johansson2016-11-281-1/+26
| | | | | | This patch add support for kernel PPP interfaces. Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
* lib/route: SRIOV Parse and Read supportJef Oliver2016-11-242-0/+18
| | | | | | | | | | | | | | | | | | * This patch adds support for parsing SRIOV VF specific information on a link. * Adds LINK_ATTR_VF_LIST to add to link->ce_mask. * Extends the rtnl_link object to include 'l_vf_list', a member to carry information for SRIOV VFs. * Adds rtnl_link_sriov, a private structure to fill link->l_vf_list. * This patch adds support for reading parsed SRIOV VF specific informatino on a link. * This patch adds support for freeing stored SRIOV VF specific information on a link. Signed-off-by: Jef Oliver <jef.oliver@intel.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* vxlan: add support for additional VXLAN attributes.Brandon Carpenter2016-10-301-0/+180
| | | | | | | | | | | | | | | | | | | Includes all VXLAN attributes as of Linux kernel 4.7.5. In particular it adds the following attributes: * IFLA_VXLAN_PORT, * IFLA_VXLAN_UDP_CSUM, * IFLA_VXLAN_UDP_ZERO_CSUM6_TX, * IFLA_VXLAN_UDP_ZERO_CSUM6_RX, * IFLA_VXLAN_REMCSUM_TX, * IFLA_VXLAN_REMCSUM_RX, * IFLA_VXLAN_GBP, * IFLA_VXLAN_REMCSUM_NOPARTIAL, * IFLA_VXLAN_COLLECT_METADATA, * IFLA_VXLAN_LABEL, * IFLA_VXLAN_GPE https://github.com/thom311/libnl/pull/110
* macsec: fix maximum ICV lengthDavide Caratti2016-09-051-0/+2
| | | | | | | | | Update copy of kernel header 'if_macsec.h' to Linux 4.8-rc5, so that upstream commit 2ccbe2cb79f2f74ab739252299b6f9ff27586f2c ("macsec: limit ICV length to 16 octets") is included. Return -NLE_INVAL when trying to configure an ICV length greater than 16 octets. Signed-off-by: Davide Caratti <davide.caratti@gmail.com>
* compat: add linux/socket.h for __kernel_sa_family_tJeff Squyres2016-08-291-0/+21
| | | | | | | | | | | | | | | | | The __kernel_sa_family_t type is not present on older systems (e.g., RHEL 6), and libnl3 will not built without it. Copy /usr/include/linux/socket.h from a RHEL7 system to include/linux-private/linux/socket.h so that it will be found by the build system. Fortunately, this socket.h is small and self-contained; it contains very little (and does not #include any other files) beyond necessary type. https://github.com/thom311/libnl/pull/107 Signed-off-by: Jeff Squyres <jsquyres@cisco.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* build: fixup headers for C++ inclusionCraig Gallek2016-08-121-0/+1
| | | | | | | | | | | | | - Fix typos in extern "C" wrappers. - 'class' is a reserved word, change to cls. - int -> enum casts are not automatic. - Static strings must be of type const char* - Add a few implicit header dependencies explicitly. http://lists.infradead.org/pipermail/libnl/2016-July/002165.html Signed-off-by: Craig Gallek <kraig@google.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* import macsec uapi headersSabrina Dubroca2016-06-252-0/+199
| | | | Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
* include/linux: update copy of kernel headersThomas Haller2015-12-075-12/+831
| | | | | | | Taken from upstream kernel commit 6a13feb9c82803e2b815eca72fa7a9f5561d7861 (v4.3)). Signed-off-by: Thomas Haller <thaller@redhat.com>
* neigh: add support for NTF_SELFDavid Ahern2015-11-011-0/+2
| | | | | | | | http://lists.infradead.org/pipermail/libnl/2015-October/001995.html Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route/vrf: add VRF supportDavid Ahern2015-11-011-0/+9
| | | | | | | | http://lists.infradead.org/pipermail/libnl/2015-October/001991.html Signed-off-by: David Ahern <dsa@cumulusnetworks.com> [thaller@redhat.com: slightly modified original patch] Signed-off-by: Thomas Haller <thaller@redhat.com>
* vlan: add MVRP VLAN flagJiří Klimeš2015-09-031-0/+1
| | | | | | | | Kernel patch: http://patchwork.ozlabs.org/patch/219040/ iproute2 patch: http://patchwork.ozlabs.org/patch/219364/ Signed-off-by: Jiří Klimeš <jklimes@redhat.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* include/linux: update copy of kernel header "if_link.h"Thomas Haller2015-08-171-5/+49
| | | | | | | Taken from upstream kernel commit b953c0d234bc72e8489d3bf51a276c5c4ec85345 (v4.1), file 'include/uapi/linux/if_link.h' (after `make headers_install`). Signed-off-by: Thomas Haller <thaller@redhat.com>
* ipvlan: add ipvlan supportCong Wang2015-06-191-0/+15
| | | | | Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* utils: update link layer protocol translationsTobias Klauser2015-06-041-0/+4
| | | | | | | | | | | | | Update the private copy of linux/if_arp.h and hook up the not yet defined ARPHRD_* types in the llprotos translation table. Reorder the entries such that they correspond to the order they're defined in linux/if_arp.h. Also remove the #ifdef guards since these are unnecessary given that the private copy of the kernel header is used. http://lists.infradead.org/pipermail/libnl/2015-May/001883.html Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* utils: Add translations for NETLINK_RDMA and NETLINK_CRYPTOTobias Klauser2015-05-051-3/+6
| | | | | | | | | | | | | | | | | | Add translations for NETLINK_RDMA and NETLINK_CRYPTO to nlfamilies, allowing to use nl_nlfamily2str() and nl_str2nlfamily() for these families. This makes it necessary to update the private copy of linux/netlink.h and also includes the rename of NETLINK_INET_DIAG to NETLINK_SOCK_DIAG in upstream commit 7f1fb60c4fc9fb29 ("inet_diag: Partly rename inet_ to sock_") and the removal of the duplicate NLMSG_ALIGN in the NLMSG_LENGTH() macro in upstream commit a88b9ce5ad4fc633 ("netlink: remove duplicated NLMSG_ALIGN"). http://lists.infradead.org/pipermail/libnl/2015-April/001868.html Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* neigh: add support for NDA_VLAN nl attributeJonas Johansson2015-03-231-0/+1
| | | | | | | | | [thaller@redhat.com: modified patch to parse NDA_VLAN and diff vlan] http://lists.infradead.org/pipermail/libnl/2015-March/001861.html Signed-off-by: Jonas Johansson <jonasj76@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* route/act: add skbedit actionCong Wang2015-02-021-0/+46
| | | | | | | [thaller@redhat.com: changed whitespace and libnl-route.sym] Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
* idiag: add copy of kernel header include/linux/inet_diag.hThomas Haller2014-11-241-0/+137
| | | | | | | | Taken from upstream kernel commit bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9 (v3.17), file 'include/uapi/linux/inet_diag.h'. Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* idiag: add a copy of linux/sock_diag.hCong Wang2014-11-241-0/+26
| | | | | | | | | | | | | | | | | | | | When we test idiag on 3.4 kernel, we always get ERANGE. This is because libnl has its own copy for SK_MEMINFO_*, which is actually newer than 3.4, where SK_MEMINFO_VARS is larger than kernel's. We add a copy from latest kernel, so on older kernel libnl should still compile. Note, for kernel < 3.6 we don't have SK_MEMINFO_BACKLOG, we have to relax the minlen. 'sock_diag.h' comes from v3.17 kernel sources (bfe01a5ba2490f299e1d2d5508cbbbadd897bbe9), file 'include/uapi/linux/sock_diag.h'. Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
* build: move copy of linux headers to private directoryThomas Haller2014-09-2432-0/+5790
libnl3 contains a private copy of some kernel header files. Normally, users are expected to install libnl and specify -I$PREFIX/include/libnl3 as include path. As the private kernel header files are not installed, this works fine. However, it can be convenient to build against the libnl source directory, without installing libnl. In this case, the private kernel header files shaddow the system provided ones. This is undesired. Move these files to a different directory to avoid this clash. http://lists.infradead.org/pipermail/libnl/2014-September/001645.html Signed-off-by: Thomas Haller <thaller@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch>