Home
last modified time | relevance | path

Searched full:netlink (Results 1 – 25 of 166) sorted by relevance

1234567

/third_party/libnl/
Dlibnl-3.7.0.tar.gz
Dsolve-oh-compile-problem.patch1 diff -urN libnl-3.7.0/include/netlink-private/utils.h libnl-3.7.0-new/include/netlink-private/utils…
2 --- libnl-3.7.0/include/netlink-private/utils.h 2022-05-24 16:55:12.000000000 +0800
3 +++ libnl-3.7.0-new/include/netlink-private/utils.h 2024-01-13 18:22:20.218754000 +0800
21 #include <netlink/route/link/vrf.h>
32 #include <netlink/netlink.h>
33 #include <netlink/route/mdb.h>
34 #include <netlink/utils.h>
Dlibnl3.spec4 Summary: Providing APIs to netlink protocol based Linux kernel interfaces
17 APIs to netlink based Linux kernel sockets interfaces.
80 %{_includedir}/libnl3/netlink/
88 %{python3_sitearch}/netlink
89 %{python3_sitearch}/netlink-*.egg-info
103 add include netlink private nl-auto-h header
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Dnetlink.c2 * Netlink helper functions for driver wrappers
14 #include "netlink.h"
23 static void netlink_receive_link(struct netlink_data *netlink, in netlink_receive_link() argument
30 cb(netlink->cfg->ctx, NLMSG_DATA(h), in netlink_receive_link()
38 struct netlink_data *netlink = eloop_ctx; in netlink_receive() local
52 wpa_printf(MSG_INFO, "netlink: recvfrom failed: %s", in netlink_receive()
61 netlink_receive_link(netlink, netlink->cfg->newlink_cb, in netlink_receive()
65 netlink_receive_link(netlink, netlink->cfg->dellink_cb, in netlink_receive()
74 wpa_printf(MSG_DEBUG, "netlink: %d extra bytes in the end of " in netlink_receive()
75 "netlink message", left); in netlink_receive()
[all …]
Dnetlink.h2 * Netlink helper functions for driver wrappers
24 void netlink_deinit(struct netlink_data *netlink);
25 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Dnetlink.c2 * Netlink helper functions for driver wrappers
14 #include "netlink.h"
23 static void netlink_receive_link(struct netlink_data *netlink, in netlink_receive_link() argument
30 cb(netlink->cfg->ctx, NLMSG_DATA(h), in netlink_receive_link()
38 struct netlink_data *netlink = eloop_ctx; in netlink_receive() local
52 wpa_printf(MSG_INFO, "netlink: recvfrom failed: %s", in netlink_receive()
61 netlink_receive_link(netlink, netlink->cfg->newlink_cb, in netlink_receive()
65 netlink_receive_link(netlink, netlink->cfg->dellink_cb, in netlink_receive()
74 wpa_printf(MSG_DEBUG, "netlink: %d extra bytes in the end of " in netlink_receive()
75 "netlink message", left); in netlink_receive()
[all …]
Dnetlink.h2 * Netlink helper functions for driver wrappers
24 void netlink_deinit(struct netlink_data *netlink);
25 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
/third_party/rust/crates/linux-raw-sys/src/
Dlib.rs147 #[cfg(feature = "netlink")]
149 #[path = "arm/netlink.rs"]
150 pub mod netlink; module
163 #[cfg(feature = "netlink")]
165 #[path = "aarch64/netlink.rs"]
166 pub mod netlink; module
179 #[cfg(feature = "netlink")]
181 #[path = "mips/netlink.rs"]
182 pub mod netlink; module
195 #[cfg(feature = "netlink")]
[all …]
/third_party/ltp/runtest/
Dnet_stress.route5 route4-change-netlink-dst route-change-netlink-dst.sh
6 route4-change-netlink-gw route-change-netlink-gw.sh
7 route4-change-netlink-if route-change-netlink-if.sh
13 route6-change-netlink-dst route-change-netlink-dst.sh -6
14 route6-change-netlink-gw route-change-netlink-gw.sh -6
15 route6-change-netlink-if route-change-netlink-if.sh -6
Dcontainers28 netns_breakns_ns_exec_ipv4_netlink netns_breakns.sh ns_exec ipv4 netlink
29 netns_breakns_ns_exec_ipv6_netlink netns_breakns.sh ns_exec ipv6 netlink
32 netns_breakns_ip_ipv4_netlink netns_breakns.sh ip ipv4 netlink
33 netns_breakns_ip_ipv6_netlink netns_breakns.sh ip ipv6 netlink
36 netns_comm_ns_exec_ipv4_netlink netns_comm.sh ns_exec ipv4 netlink
37 netns_comm_ns_exec_ipv6_netlink netns_comm.sh ns_exec ipv6 netlink
40 netns_comm_ip_ipv4_netlink netns_comm.sh ip ipv4 netlink
41 netns_comm_ip_ipv6_netlink netns_comm.sh ip ipv6 netlink
/third_party/selinux/libselinux/man/man3/
Davc_netlink_loop.38 netlink processing
29 via netlink. The userspace AVC normally checks for netlink messages on each
35 loop. These functions also permit netlink monitoring without requiring a
40 opens a netlink socket to receive SELinux notifications. The socket
50 closes the netlink socket. This function is called automatically by
54 returns the netlink socket descriptor number and informs the userspace AVC
64 returns control of the netlink socket to the userspace AVC, re-enabling
68 checks the netlink socket for pending messages and processes them.
75 enters a loop blocking on the netlink socket and processing messages as they
Davc_init.3122 .B NETLINK NOTIFICATION
187 .SH "NETLINK NOTIFICATION"
190 the AVC will default to the netlink fallback mechanism, which opens a netlink socket for receiving …
198 …ocking callbacks. In the fallback case, the userspace AVC checks for new netlink messages at the s…
200 a dedicated thread will be started to listen on the netlink socket. This may increase performance …
221 If a netlink thread has been created and an error occurs on the socket (such as an access error), t…
Davc_open.335 .B NETLINK NOTIFICATION
75 .SH "NETLINK NOTIFICATION"
78 the AVC will default to the netlink fallback mechanism, which opens a netlink socket for receiving …
Dselinux_status_open.349 In this case, this function tries to open a netlink socket using
57 netlink socket if fallbacked.
79 the first event message via netlink socket.
93 but netlink socket was opened as fallback instead of the kernel status page.
/third_party/selinux/libselinux/src/
Davc_internal.c7 * Netlink code derived in part from sample code by
22 #include <linux/netlink.h>
55 /* process setenforce events for netlink and sestatus */
77 /* process policyload events for netlink and sestatus */
98 /* netlink socket code */
159 avc_log(SELINUX_ERROR, "%s: netlink poll: error %d\n", in avc_netlink_receive()
171 "%s: warning: netlink address truncated, len %u?\n", in avc_netlink_receive()
178 "%s: warning: received spoofed netlink packet from: %u\n", in avc_netlink_receive()
185 "%s: warning: received EOF on netlink socket\n", in avc_netlink_receive()
193 "%s: warning: incomplete netlink message\n", in avc_netlink_receive()
[all …]
/third_party/ltp/include/
Dtst_netlink.h8 * Library for communicating with the kernel over the netlink interface.
14 #include <linux/netlink.h>
18 * The netlink-crypto socket protocol.
44 * Sends a netlink message using safe_sendmsg().
46 * @param fd netlink socket file descriptor.
47 * @param nl_header netlink header structure describing the message.
76 * Receives a netlink message using safe_recvmsg().
78 * @param fd netlink socket file descriptor.
79 * @param nl_header_buf buffer to contain the received netlink header structure.
Dtst_crypto.h8 * Library for interacting with kernel's crypto layer using the netlink
20 * Holds state relevant to a netlink crypto connection. The seq_num is used
21 * to tag each message sent to the netlink layer and is automatically
22 * incremented by the tst_crypto_ functions. When the netlink layer sends a
34 /** File descriptor for the netlink socket */
81 * response. If sending the message or receiving the ack fails at the netlink
/third_party/ltp/testcases/network/stress/route/
D00_Descriptions.txt10 route{4,6}-change-netlink-dst
11 Change IPv4/IPv6 route destination by Netlink API via libmnl
13 route{4,6}-change-netlink-gw
14 Change IPv4/IPv6 route gateway by Netlink API via libmnl
16 route{4,6}-change-netlink-if
17 Change IPv4/IPv6 route interface by Netlink API via libmnl
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dvlan_util.c2 * hostapd / VLAN netlink api
10 #include <netlink/route/link.h>
11 #include <netlink/route/link/vlan.h>
48 wpa_printf(MSG_ERROR, "VLAN: failed to open netlink socket"); in vlan_add()
54 wpa_printf(MSG_ERROR, "VLAN: failed to connect to netlink: %s", in vlan_add()
134 wpa_printf(MSG_ERROR, "VLAN: failed to open netlink socket"); in vlan_rem()
140 wpa_printf(MSG_ERROR, "VLAN: failed to connect to netlink: %s", in vlan_rem()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dvlan_util.c2 * hostapd / VLAN netlink api
10 #include <netlink/route/link.h>
11 #include <netlink/route/link/vlan.h>
48 wpa_printf(MSG_ERROR, "VLAN: failed to open netlink socket"); in vlan_add()
54 wpa_printf(MSG_ERROR, "VLAN: failed to connect to netlink: %s", in vlan_add()
134 wpa_printf(MSG_ERROR, "VLAN: failed to open netlink socket"); in vlan_rem()
140 wpa_printf(MSG_ERROR, "VLAN: failed to connect to netlink: %s", in vlan_rem()
/third_party/libbpf/src/
Dnlattr.h4 * NETLINK Netlink attributes
15 #include <linux/netlink.h>
18 /* avoid multiple definition of netlink features */
80 * @nla: netlink attribute
104 * @nla: netlink attribute
/third_party/libwebsockets/lib/roles/netlink/
Dops-netlink.c36 #include <linux/netlink.h>
146 lwsl_cx_netlink(cx, "NETLINK ifidx %d : %s", in rops_handle_POLLIN_netlink()
447 * While netlink info still coming, keep moving the timer for in rops_handle_POLLIN_netlink()
480 * pt netlink wsi closed + freed as part of pt's destroy in rops_pt_init_destroy_netlink()
488 if (context->netlink) in rops_pt_init_destroy_netlink()
492 /* we can only have one netlink socket */ in rops_pt_init_destroy_netlink()
495 lwsl_cx_info(context, "creating netlink skt"); in rops_pt_init_destroy_netlink()
498 * We want a netlink socket per pt as well in rops_pt_init_destroy_netlink()
510 lwsl_cx_err(context, "unable to open netlink"); in rops_pt_init_destroy_netlink()
517 "netlink"); in rops_pt_init_destroy_netlink()
[all …]
/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_breakns.sh15 # * COMM_TYPE (netlink|ioctl)
18 # to the virtual ethernet devices. (Uses 'ip' command for netlink
21 # Tests communication with ip (uses netlink) and ifconfig (uses ioctl)
26 # 1. using netlink (ip command).
Dnetns_netlink.c10 * Tests a netlink interface inside a new network namespace.
14 * - Forks a child which creates a NETLINK_ROUTE netlink socket
19 * removes it (which should generate some data in child's netlink socket).
22 * detect the new interface creation/deletion (by reading data from netlink
30 #include <linux/netlink.h>
Dnetns_comm.sh15 # * COMM_TYPE (netlink|ioctl)
18 # to the virtual ethernet devices. (Uses 'ip' command for netlink
22 # over the devices it sees. Tests are done using netlink(7) ('ip' command)
58 netlink)

1234567