aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libnl-tiny/src/include/netlink
Commit message (Collapse)AuthorAgeFilesLines
* libnl-tiny: move source code into separate Git repositoryPetr Štetiar2019-10-0922-3433/+0
| | | | | | | | | | In order to make the source code usable and testable separately out of buildroot. Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Jo-Philipp Wich <jo@mein.io> Acked-by: Hans Dedecker <dedeckeh@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
* libnl-tiny: Remove GENL_ID_GENERATEFlorian Fainelli2016-11-241-1/+1
| | | | | | | | | | | This constant was always defined to 0, and recently got removed in upstream commit a07ea4d9941af5a0c6f0be2a71b51ac9c083c5e5 ("genetlink: no longer support using static family IDs") Fixes libnl-tiny builds with latest upstream kernels. Fixes: d723f2573af3 ("libnl-tiny: remove include/linux overrides to fix various build issues") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* libnl-tiny: Generic Netlink multicast groups supportHauke Mehrtens2016-07-023-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds this commit from normal libnl to libnl-tiny: https://github.com/tgraf/libnl/commit/2dbc1ca76c5b82c40749e609eb83877418abb006 commit 2dbc1ca76c5b82c40749e609eb83877418abb006 Author: dima <dima.ky@gmail.com> Date: Wed Oct 13 17:53:34 2010 +0300 Generic Netlink multicast groups support I have a patch against commit d378220c96c3c8b6f27dca33e7d8ba03318f9c2d extending libnl with a facility to receive generic netlink messages sent to multicast groups. Essentially it add one new function genl_ctrl_resolve_grp which prototype looks like this int genl_ctrl_resolve_grp(struct nl_sock *sk, const char *family_name, const char *grp_name) It resolves the family name and the group name to group id. Then the returned id can be used in nl_socket_add_membership to subscribe to multicast messages. Besides that it adds two more functions uint32_t nl_socket_get_peer_groups(struct nl_sock *sk) void nl_socket_set_peer_groups(struct nl_sock *sk, uint32_t groups) allowing to modify the socket peer groups field. So it's possible to multicast messages from the user space using the legacy interface. Looks like there is no way (or I was not able to find one?) to modify the netlink socket destination group from the user space, when the group id is greater then 32. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cosmetic style fix]
* libnl-tiny: include <sys/socket.h>Felix Fietkau2015-11-111-0/+1
| | | | | | | | | | | | | | | | Currently some libnl headers require application code to include dependencies on its own. E.g. a simple include of <linux/netlink.h> will trigger an error: /usr/include/libnl-tiny/linux/netlink.h:32:2: error: unknown type name 'sa_family_t' Similarly including <netlink/handlers.h> causes: /usr/include/libnl-tiny/netlink/handlers.h:133:19: warning: 'struct ucred' declared inside parameter list [enabled by default] Fix it by including <sys/socket.h> where needed in libnl headers. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47456
* libnl-tiny: ensure compatibility to libnl version 3 and higherFelix Fietkau2014-03-211-1/+6
| | | | | | | | | | | To be prepared to support keepalived 1.2.10 and higher we need libnl3 or higher. The attached patch add some defines so that it can be build be libnl-tiny. Patch by Thomas Heil Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39991
* libnl-tiny: fix include path to poll.hFelix Fietkau2014-02-241-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39747
* move library packages to package/libs/Felix Fietkau2012-10-0822-0/+3410
SVN-Revision: 33657