Home
last modified time | relevance | path

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

123456789

/freebsd/contrib/wpa/src/drivers/
H A 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 …]
/freebsd/sys/netlink/
H A Dnetlink_module.c39 #include <netlink/netlink.h>
40 #include <netlink/netlink_ctl.h>
41 #include <netlink/netlink_var.h>
42 #include <netlink/route/route_var.h>
46 FEATURE(netlink, "Netlink support");
50 #include <netlink/netlink_debug.h>
67 MTX_SYSINIT(nl_global_mtx, &nl_global_mtx, "global netlink lock", MTX_DEF);
77 rm_init(&V_nl_ctl.ctl_lock, "netlink lock"); in vnet_nl_init()
123 KASSERT((nl_handlers[proto].cb == NULL), ("netlink handler %d is already set", proto)); in netlink_register_proto()
127 NL_LOG(LOG_DEBUG2, "Registered netlink %s(%d) handler", proto_name, proto); in netlink_register_proto()
[all …]
H A Dnetlink_glue.c47 #include <netlink/netlink.h>
48 #include <netlink/netlink_ctl.h>
49 #include <netlink/netlink_var.h>
50 #include <netlink/route/route_var.h>
53 SYSCTL_NODE(_net, OID_AUTO, netlink, CTLFLAG_RD, 0,
54 "RFC3549 Netlink network state socket family");
56 "Netlink per-subsystem debug levels");
58 MALLOC_DEFINE(M_NETLINK, "netlink", "Memory used for netlink packets");
60 /* Netlink-related callbacks needed to glue rtsock, netlink and linuxolator */
109 #ifndef NETLINK
[all …]
H A Dnetlink_route.h36 #include <netlink/netlink_bitset.h>
37 #include <netlink/route/common.h>
38 #include <netlink/route/ifaddrs.h>
39 #include <netlink/route/interface.h>
40 #include <netlink/route/neigh.h>
41 #include <netlink/route/route.h>
42 #include <netlink/route/nexthop.h>
H A Dktest_netlink_message_writer.c32 #include <netlink/netlink.h>
33 #include <netlink/netlink_ctl.h>
34 #include <netlink/netlink_var.h>
35 #include <netlink/netlink_message_writer.h>
38 #include <netlink/ktest_netlink_message_writer.h>
103 .desc = "test different buffer sizes in the netlink writer",
H A Dnetlink_route.c37 #include <netlink/netlink.h>
38 #include <netlink/netlink_ctl.h>
39 #include <netlink/netlink_route.h>
40 #include <netlink/route/route_var.h>
44 #include <netlink/netlink_debug.h>
64 * Handler called by netlink subsystem when matching netlink message is received
/freebsd/share/man/man4/
H A Dnetlink.429 .Nm Netlink
37 Netlink is a user-kernel message-based communication protocol primarily used
39 Netlink is easily extendable and supports large dumps and event
43 Netlink consists of multiple families, which commonly group the commands
65 This approach allows using a single netlink socket to interact with
66 multiple netlink families at once.
70 Netlink has its own sockaddr structure:
74 sa_family_t nl_family; /* netlink family */
234 Netlink supports a number of custom socket options, which can be set with
259 Additionally, netlink overrides the following socket options from the
[all …]
H A Dnlsysevent.411 .Nd Netlink-based kernel event notification module
27 .Xr netlink 4
28 Generic Netlink interface for receiving kernel device events.
31 notification system and re-publishes all kernel events as Generic Netlink
42 .Ss Generic Netlink Family
43 The module registers a Generic Netlink family named
121 .Xr netlink 4 ,
H A Dgenetlink.430 .Nd Generic Netlink
44 functions provided by that subsystem via netlink.
50 All generic netlink families share a common header:
60 of the base netlink header.
68 The generic Netlink framework provides the base family,
135 .Xr netlink 4
142 The netlink was implemented by
/freebsd/lib/libifconfig/
H A Dlibifconfig_carp.c36 #include <netlink/netlink.h>
37 #include <netlink/netlink_generic.h>
38 #include <netlink/netlink_snl.h>
39 #include <netlink/netlink_snl_generic.h>
40 #include <netlink/netlink_snl_route.h>
84 ifconfig_error(h, NETLINK, ENOTSUP); in _ifconfig_carp_get()
92 ifconfig_error(h, NETLINK, EPROTONOSUPPORT); in _ifconfig_carp_get()
106 ifconfig_error(h, NETLINK, ENOMEM); in _ifconfig_carp_get()
111 ifconfig_error(h, NETLINK, EIO); in _ifconfig_carp_get()
117 ifconfig_error(h, NETLINK, e.error); in _ifconfig_carp_get()
[all …]
H A Dlibifconfig_nl.c7 #include <netlink/netlink.h>
8 #include <netlink/netlink_snl.h>
9 #include <netlink/route/common.h>
10 #include <netlink/route/interface.h>
30 ifconfig_error(h, NETLINK, ENOTSUP); in ifconfig_modify_flags()
44 ifconfig_error(h, NETLINK, ENOMEM); in ifconfig_modify_flags()
50 ifconfig_error(h, NETLINK, EIO); in ifconfig_modify_flags()
56 ifconfig_error(h, NETLINK, e.error); in ifconfig_modify_flags()
/freebsd/tests/atf_python/sys/netlink/
H A Dnetlink_generic.py9 from atf_python.sys.netlink.attrs import NlAttr
10 from atf_python.sys.netlink.attrs import NlAttrIp4
11 from atf_python.sys.netlink.attrs import NlAttrIp6
12 from atf_python.sys.netlink.attrs import NlAttrNested
13 from atf_python.sys.netlink.attrs import NlAttrS32
14 from atf_python.sys.netlink.attrs import NlAttrStr
15 from atf_python.sys.netlink.attrs import NlAttrU16
16 from atf_python.sys.netlink.attrs import NlAttrU32
17 from atf_python.sys.netlink.attrs import NlAttrU8
18 from atf_python.sys.netlink.base_headers import GenlMsgHdr
[all …]
H A Dnetlink.py14 from atf_python.sys.netlink.attrs import NlAttr
15 from atf_python.sys.netlink.attrs import NlAttrStr
16 from atf_python.sys.netlink.attrs import NlAttrU32
17 from atf_python.sys.netlink.base_headers import GenlMsgHdr
18 from atf_python.sys.netlink.base_headers import NlmBaseFlags
19 from atf_python.sys.netlink.base_headers import Nlmsghdr
20 from atf_python.sys.netlink.base_headers import NlMsgType
21 from atf_python.sys.netlink.message import BaseNetlinkMessage
22 from atf_python.sys.netlink.message import NlMsgCategory
23 from atf_python.sys.netlink.message import NlMsgProps
[all …]
H A Dmessage.py8 from atf_python.sys.netlink.attrs import NlAttr
9 from atf_python.sys.netlink.attrs import NlAttrNested
10 from atf_python.sys.netlink.base_headers import NlmAckFlags
11 from atf_python.sys.netlink.base_headers import NlmNewFlags
12 from atf_python.sys.netlink.base_headers import NlmGetFlags
13 from atf_python.sys.netlink.base_headers import NlmDeleteFlags
14 from atf_python.sys.netlink.base_headers import NlmBaseFlags
15 from atf_python.sys.netlink.base_headers import Nlmsghdr
16 from atf_python.sys.netlink.base_headers import NlMsgType
17 from atf_python.sys.netlink.utils import align4
[all …]
/freebsd/tests/atf_python/
H A Dktest.py6 from atf_python.sys.netlink.attrs import NlAttrNested
7 from atf_python.sys.netlink.attrs import NlAttrStr
8 from atf_python.sys.netlink.netlink import NetlinkMultipartIterator
9 from atf_python.sys.netlink.netlink import NlHelper
10 from atf_python.sys.netlink.netlink import Nlsock
11 from atf_python.sys.netlink.netlink_generic import KtestAttrType
12 from atf_python.sys.netlink.netlink_generic import KtestInfoMessage
13 from atf_python.sys.netlink.netlink_generic import KtestLogMsgType
14 from atf_python.sys.netlink.netlink_generic import KtestMsgAttrType
15 from atf_python.sys.netlink.netlink_generic import KtestMsgType
[all …]
/freebsd/tests/sys/netlink/
H A Dtest_rtnl_route.py8 from atf_python.sys.netlink.attrs import NlAttrIp
9 from atf_python.sys.netlink.attrs import NlAttrU32
10 from atf_python.sys.netlink.base_headers import NlmBaseFlags
11 from atf_python.sys.netlink.base_headers import NlmGetFlags
12 from atf_python.sys.netlink.base_headers import NlmNewFlags
13 from atf_python.sys.netlink.base_headers import NlMsgType
14 from atf_python.sys.netlink.netlink import NetlinkTestTemplate
15 from atf_python.sys.netlink.netlink_route import NetlinkRtMessage
16 from atf_python.sys.netlink.netlink_route import NlRtMsgType
17 from atf_python.sys.netlink.netlink_route import RtattrType
[all …]
H A Dtest_rtnl_iface.py5 from atf_python.sys.netlink.netlink_route import IflattrType
6 from atf_python.sys.netlink.netlink_route import IflinkInfo
7 from atf_python.sys.netlink.netlink_route import IfLinkInfoDataVlan
8 from atf_python.sys.netlink.netlink_route import NetlinkIflaMessage
9 from atf_python.sys.netlink.netlink import NetlinkTestTemplate
10 from atf_python.sys.netlink.attrs import NlAttrNested
11 from atf_python.sys.netlink.attrs import NlAttrStr
12 from atf_python.sys.netlink.attrs import NlAttrStrn
13 from atf_python.sys.netlink.attrs import NlAttrU16
14 from atf_python.sys.netlink.attrs import NlAttrU32
[all …]
H A Dtest_snl_generic.c8 #include <netlink/netlink.h>
9 #include "netlink/netlink_snl.h"
10 #include "netlink/netlink_snl_generic.h"
34 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
51 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
68 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
H A Dtest_rtnl_neigh.py5 from atf_python.sys.netlink.netlink import NetlinkTestTemplate
6 from atf_python.sys.netlink.netlink_route import NdAttrType
7 from atf_python.sys.netlink.netlink_route import NetlinkNdMessage
8 from atf_python.sys.netlink.netlink_route import NlRtMsgType
9 from atf_python.sys.netlink.utils import NlConst
H A Dtest_rtnl_gif.c15 #include <netlink/netlink.h>
16 #include <netlink/netlink_route.h>
17 #include <netlink/netlink_snl.h>
18 #include <netlink/netlink_snl_route.h>
19 #include <netlink/netlink_snl_route_compat.h>
20 #include <netlink/netlink_snl_route_parsers.h>
75 atf_tc_set_md_var(tc, "descr", "test gif interface using netlink"); in ATF_TC_HEAD()
77 atf_tc_set_md_var(tc, "require.kmods", "netlink if_gif"); in ATF_TC_HEAD()
H A Dtest_rtnl_gre.c15 #include <netlink/netlink.h>
16 #include <netlink/netlink_route.h>
17 #include "netlink/netlink_snl.h"
18 #include <netlink/netlink_snl_route.h>
19 #include <netlink/netlink_snl_route_compat.h>
20 #include <netlink/netlink_snl_route_parsers.h>
81 atf_tc_set_md_var(tc, "descr", "test gre interface using netlink"); in ATF_TC_HEAD()
83 atf_tc_set_md_var(tc, "require.kmods", "netlink if_gre"); in ATF_TC_HEAD()
H A Dtest_snl.c8 #include <netlink/netlink.h>
9 #include <netlink/netlink_route.h>
10 #include "netlink/netlink_snl.h"
11 #include "netlink/netlink_snl_route.h"
12 #include "netlink/netlink_snl_route_parsers.h"
45 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
120 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
161 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
203 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
242 atf_tc_set_md_var(tc, "require.kmods", "netlink"); in ATF_TC_HEAD()
/freebsd/sbin/ifconfig/
H A Difconfig_netlink.h31 #include <netlink/netlink.h>
32 #include <netlink/netlink_route.h>
33 #include <netlink/netlink_snl.h>
34 #include <netlink/netlink_snl_route.h>
35 #include <netlink/netlink_snl_route_compat.h>
36 #include <netlink/netlink_snl_route_parsers.h>
/freebsd/sys/rpc/
H A Dclnt_nl.c45 #include <netlink/netlink.h>
46 #include <netlink/netlink_ctl.h>
47 #include <netlink/netlink_generic.h>
50 * Kernel RPC client over netlink(4), where kernel is RPC client and an
53 * The module registers itself within generic netlink families list under name
56 * potential netlink listeners and sleep/retry until receiving a result. The
59 * [netlink message header, type = "rpc" ID, seq == xid]
60 * [generic netlink header, cmd = RPCNL_REQUEST]
61 * [netlink attribute RPCNL_REQUEST_GROUP]
63 * [netlink attribute RPCNL_REQUEST_BODY]
[all …]
/freebsd/share/man/man3/
H A Dsnl.349 .Nd "simple netlink library"
96 library provides an easy way of sending and receiving Netlink messages,
103 and the desired Netlink family to initialise the library instance.
119 The library does not currently offer any wrappers for writing netlink messages.
231 using netlink.
235 #include <netlink/netlink.h>
236 #include <netlink/netlink_route.h>
237 #include "netlink/netlink_snl.h"
238 #include "netlink/netlink_snl_route.h"
299 .Xr netlink 4 ,

123456789