Home
last modified time | relevance | path

Searched refs:sd_netlink (Results 1 – 25 of 102) sorted by relevance

12345

/systemd-251/src/systemd/
Dsd-netlink.h34 typedef struct sd_netlink sd_netlink; typedef
39 typedef int (*sd_netlink_message_handler_t)(sd_netlink *nl, sd_netlink_message *m, void *userdata);
43 int sd_netlink_new_from_fd(sd_netlink **nl, int fd);
44 int sd_netlink_open(sd_netlink **nl);
45 int sd_netlink_open_fd(sd_netlink **nl, int fd);
46 int sd_netlink_inc_rcvbuf(sd_netlink *nl, const size_t size);
48 sd_netlink *sd_netlink_ref(sd_netlink *nl);
49 sd_netlink *sd_netlink_unref(sd_netlink *nl);
51 int sd_netlink_send(sd_netlink *nl, sd_netlink_message *message, uint32_t *serial);
52 int sd_netlink_sendv(sd_netlink *nl, sd_netlink_message **messages, size_t msgcnt, uint32_t **ret_s…
[all …]
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-internal.h46 sd_netlink *netlink;
60 struct sd_netlink { struct
132 int message_new_empty(sd_netlink *nl, sd_netlink_message **ret);
134 sd_netlink *nl,
139 int message_new(sd_netlink *nl, sd_netlink_message **ret, uint16_t type);
140 int message_new_synthetic_error(sd_netlink *nl, int error, uint32_t serial, sd_netlink_message **re…
144 int netlink_open_family(sd_netlink **ret, int family);
145 bool netlink_pid_changed(sd_netlink *nl);
146 int netlink_rqueue_make_room(sd_netlink *nl);
147 int netlink_rqueue_partial_make_room(sd_netlink *nl);
[all …]
Dsd-netlink.c22 static int netlink_new(sd_netlink **ret) { in netlink_new()
23 _cleanup_(sd_netlink_unrefp) sd_netlink *nl = NULL; in netlink_new()
27 nl = new(sd_netlink, 1); in netlink_new()
31 *nl = (sd_netlink) { in netlink_new()
71 int sd_netlink_new_from_fd(sd_netlink **ret, int fd) { in sd_netlink_new_from_fd()
72 _cleanup_(sd_netlink_unrefp) sd_netlink *nl = NULL; in sd_netlink_new_from_fd()
96 int sd_netlink_open_fd(sd_netlink **ret, int fd) { in sd_netlink_open_fd()
97 _cleanup_(sd_netlink_unrefp) sd_netlink *nl = NULL; in sd_netlink_open_fd()
134 int netlink_open_family(sd_netlink **ret, int family) { in netlink_open_family()
150 int sd_netlink_open(sd_netlink **ret) { in sd_netlink_open()
[all …]
Dnetlink-util.h72 int rtnl_set_link_name(sd_netlink **rtnl, int ifindex, const char *name);
74 sd_netlink **rtnl,
84 int rtnl_get_link_alternative_names(sd_netlink **rtnl, int ifindex, char ***ret);
85 int rtnl_set_link_alternative_names(sd_netlink **rtnl, int ifindex, char * const *alternative_names…
86 int rtnl_set_link_alternative_names_by_ifname(sd_netlink **rtnl, const char *ifname, char * const *…
87 int rtnl_delete_link_alternative_names(sd_netlink **rtnl, int ifindex, char * const *alternative_na…
88 int rtnl_resolve_link_alternative_name(sd_netlink **rtnl, const char *name, char **ret);
89 int rtnl_resolve_ifname(sd_netlink **rtnl, const char *name);
90 int rtnl_resolve_interface(sd_netlink **rtnl, const char *name);
91 int rtnl_resolve_interface_or_warn(sd_netlink **rtnl, const char *name);
[all …]
Dnetlink-message-nfnl.c18 static int nft_message_new(sd_netlink *nfnl, sd_netlink_message **ret, int family, uint16_t msg_typ… in nft_message_new()
41 static int nfnl_message_batch(sd_netlink *nfnl, sd_netlink_message **ret, uint16_t msg_type) { in nfnl_message_batch()
59 int sd_nfnl_message_batch_begin(sd_netlink *nfnl, sd_netlink_message **ret) { in sd_nfnl_message_batch_begin()
63 int sd_nfnl_message_batch_end(sd_netlink *nfnl, sd_netlink_message **ret) { in sd_nfnl_message_batch_end()
68 sd_netlink *nfnl, in sd_nfnl_nft_message_new_basechain()
117 sd_netlink *nfnl, in sd_nfnl_nft_message_del_table()
138 sd_netlink *nfnl, in sd_nfnl_nft_message_new_table()
159 sd_netlink *nfnl, in sd_nfnl_nft_message_new_rule()
185 sd_netlink *nfnl, in sd_nfnl_nft_message_new_set()
221 sd_netlink *nfnl, in sd_nfnl_nft_message_new_setelems_begin()
[all …]
Dnetlink-genl.c13 sd_netlink *genl;
49 void genl_clear_family(sd_netlink *nl) { in genl_clear_family()
57 sd_netlink *nl, in genl_family_new_unsupported()
93 sd_netlink *nl, in genl_family_new()
218 sd_netlink *nl, in genl_message_new()
251 sd_netlink *nl, in genl_family_get_by_name_internal()
286 static int genl_family_get_by_name(sd_netlink *nl, const char *name, const GenericNetlinkFamily **r… in genl_family_get_by_name()
317 static int genl_family_get_by_id(sd_netlink *nl, uint16_t id, const GenericNetlinkFamily **ret) { in genl_family_get_by_id()
339 sd_netlink *nl, in genl_get_type_system_and_header_size()
368 int sd_genl_message_new(sd_netlink *nl, const char *family_name, uint8_t cmd, sd_netlink_message **… in sd_genl_message_new()
[all …]
Dtest-netlink.c26 static void test_message_link_bridge(sd_netlink *rtnl) { in test_message_link_bridge()
46 static void test_link_configure(sd_netlink *rtnl, int ifindex) { in test_link_configure()
64 static void test_link_get(sd_netlink *rtnl, int ifindex) { in test_link_get()
93 static void test_address_get(sd_netlink *rtnl, int ifindex) { in test_address_get()
112 static void test_route(sd_netlink *rtnl) { in test_route()
152 sd_netlink *rtnl1, *rtnl2; in test_multiple()
163 static int link_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) { in link_handler()
182 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in test_event_loop()
211 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in test_async()
244 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in test_slot_set()
[all …]
Dnetlink-socket.c30 static int broadcast_groups_get(sd_netlink *nl) { in broadcast_groups_get()
74 int socket_bind(sd_netlink *nl) { in socket_bind()
94 static unsigned broadcast_group_get_ref(sd_netlink *nl, unsigned group) { in broadcast_group_get_ref()
100 static int broadcast_group_set_ref(sd_netlink *nl, unsigned group, unsigned n_ref) { in broadcast_group_set_ref()
112 static int broadcast_group_join(sd_netlink *nl, unsigned group) { in broadcast_group_join()
121 int socket_broadcast_group_ref(sd_netlink *nl, unsigned group) { in socket_broadcast_group_ref()
142 static int broadcast_group_leave(sd_netlink *nl, unsigned group) { in broadcast_group_leave()
154 int socket_broadcast_group_unref(sd_netlink *nl, unsigned group) { in socket_broadcast_group_unref()
178 int socket_write_message(sd_netlink *nl, sd_netlink_message *m) { in socket_write_message()
195 int socket_writev_message(sd_netlink *nl, sd_netlink_message **m, size_t msgcount) { in socket_writev_message()
[all …]
Dnetlink-util.c12 int rtnl_set_link_name(sd_netlink **rtnl, int ifindex, const char *name) { in rtnl_set_link_name()
64 sd_netlink **rtnl, in rtnl_set_link_properties()
155 int rtnl_get_link_alternative_names(sd_netlink **rtnl, int ifindex, char ***ret) { in rtnl_get_link_alternative_names()
187 static int rtnl_update_link_alternative_names(sd_netlink **rtnl, uint16_t nlmsg_type, int ifindex, … in rtnl_update_link_alternative_names()
227 int rtnl_set_link_alternative_names(sd_netlink **rtnl, int ifindex, char * const *alternative_names… in rtnl_set_link_alternative_names()
231 int rtnl_delete_link_alternative_names(sd_netlink **rtnl, int ifindex, char * const *alternative_na… in rtnl_delete_link_alternative_names()
235 int rtnl_set_link_alternative_names_by_ifname(sd_netlink **rtnl, const char *ifname, char * const *… in rtnl_set_link_alternative_names_by_ifname()
278 int rtnl_resolve_link_alternative_name(sd_netlink **rtnl, const char *name, char **ret) { in rtnl_resolve_link_alternative_name()
279 _cleanup_(sd_netlink_unrefp) sd_netlink *our_rtnl = NULL; in rtnl_resolve_link_alternative_name()
326 int rtnl_resolve_ifname(sd_netlink **rtnl, const char *name) { in rtnl_resolve_ifname()
[all …]
Dnetlink-slot.c13 sd_netlink *nl, in netlink_slot_allocate()
53 sd_netlink *nl; in netlink_slot_disconnect()
108 sd_netlink *sd_netlink_slot_get_netlink(sd_netlink_slot *slot) { in sd_netlink_slot_get_netlink()
/systemd-251/src/shared/
Dloopback-setup.c23 static int generic_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) { in generic_handler()
45 static int start_loopback(sd_netlink *rtnl, struct state *s) { in start_loopback()
68 static int add_ipv4_address(sd_netlink *rtnl, struct state *s) { in add_ipv4_address()
103 static int add_ipv6_address(sd_netlink *rtnl, struct state *s) { in add_ipv6_address()
138 static bool check_loopback(sd_netlink *rtnl) { in check_loopback()
159 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in loopback_setup()
Dlocal-addresses.h15 int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);
17 int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);
19 int local_outbounds(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);
Dwifi-util.h11 int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_iftype, char **ret_s…
12 int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid);
Dfirewall-util-nft.c33 sd_netlink *nfnl, in nfnl_netlink_sendv()
321 static int sd_nfnl_message_new_masq_rule(sd_netlink *nfnl, sd_netlink_message **ret, int family, in sd_nfnl_message_new_masq_rule()
363 static int sd_nfnl_message_new_dnat_rule_pre(sd_netlink *nfnl, sd_netlink_message **ret, int family, in sd_nfnl_message_new_dnat_rule_pre()
420 static int sd_nfnl_message_new_dnat_rule_out(sd_netlink *nfnl, sd_netlink_message **ret, in sd_nfnl_message_new_dnat_rule_out()
509 static int nft_new_set(struct sd_netlink *nfnl, in nft_new_set()
535 static int nft_new_map(struct sd_netlink *nfnl, in nft_new_map()
557 static int nft_add_element(sd_netlink *nfnl, sd_netlink_message **ret, in nft_add_element()
593 static int nft_del_element(sd_netlink *nfnl, in nft_del_element()
640 static int fw_nftables_init_family(sd_netlink *nfnl, int family) { in fw_nftables_init_family()
751 _cleanup_(sd_netlink_unrefp) sd_netlink *nfnl = NULL; in fw_nftables_init()
Dlocal-addresses.c62 sd_netlink *context, in local_addresses()
68 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in local_addresses()
208 sd_netlink *context, in local_gateways()
214 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in local_gateways()
365 sd_netlink *context, in local_outbounds()
/systemd-251/src/network/
Dnetworkd-setlink.c18 static int get_link_default_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link) { in get_link_default_handler()
22 static int get_link_master_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link) { in get_link_master_handler()
28 static int get_link_update_flag_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link) { in get_link_update_flag_handler()
38 sd_netlink *rtnl, in set_link_handler_internal()
79 static int link_set_addrgen_mode_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Lin… in link_set_addrgen_mode_handler()
95 static int link_set_bond_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *link,… in link_set_bond_handler()
99 static int link_set_bridge_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *lin… in link_set_bridge_handler()
103 static int link_set_bridge_vlan_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link… in link_set_bridge_vlan_handler()
107 static int link_set_can_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *link, … in link_set_can_handler()
111 static int link_set_flags_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *link… in link_set_flags_handler()
[all …]
Dnetworkd-route.h19 sd_netlink *rtnl,
85 int route_configure_handler_internal(sd_netlink *rtnl, sd_netlink_message *m, Link *link, const cha…
104 int manager_rtnl_process_route(sd_netlink *rtnl, sd_netlink_message *message, Manager *m);
Dnetworkd-wifi.h8 int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *message, Manager *man…
9 int manager_genl_process_nl80211_mlme(sd_netlink *genl, sd_netlink_message *message, Manager *manag…
Dnetworkd-queue.h16 typedef int (*request_netlink_handler_t)(sd_netlink *nl, sd_netlink_message *m, Request *req, Link …
124 …int (*_n)(sd_netlink*, sd_netlink_message*, Request*, Link*, typeof(userdata)) = (netlink_handler)…
137 int request_call_netlink_async(sd_netlink *nl, sd_netlink_message *m, Request *req);
Dnetworkd-address.h22 sd_netlink *rtnl,
78 int address_configure_handler_internal(sd_netlink *rtnl, sd_netlink_message *m, Link *link, const c…
114 int manager_rtnl_process_address(sd_netlink *nl, sd_netlink_message *message, Manager *m);
Dnetworkd-link.h196 typedef int (*link_netlink_message_handler_t)(sd_netlink*, sd_netlink_message*, Link*);
212 int link_getlink_handler_internal(sd_netlink *rtnl, sd_netlink_message *m, Link *link, const char *…
241 int manager_rtnl_process_link(sd_netlink *rtnl, sd_netlink_message *message, Manager *m);
/systemd-251/src/nspawn/
Dnspawn-network.c37 static int remove_one_link(sd_netlink *rtnl, const char *name) { in remove_one_link()
106 static int set_alternative_ifname(sd_netlink *rtnl, const char *ifname, const char *altifname) { in set_alternative_ifname()
130 sd_netlink *rtnl, in add_veth()
242 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in setup_veth()
289 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in setup_veth_extra()
324 static int join_bridge(sd_netlink *rtnl, const char *veth_name, const char *bridge_name) { in join_bridge()
359 static int create_bridge(sd_netlink *rtnl, const char *bridge_name) { in create_bridge()
396 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in setup_bridge()
437 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in remove_bridge()
496 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in move_network_interfaces()
[all …]
Dnspawn-expose-ports.h23 …event *event, int recv_fd, sd_netlink_message_handler_t handler, void *userdata, sd_netlink **ret);
26 int expose_port_execute(sd_netlink *rtnl, FirewallContext **fw_ctx, ExposePort *l, int af, union in…
Dnspawn-expose-ports.c115 int expose_port_execute(sd_netlink *rtnl, FirewallContext **fw_ctx, ExposePort *l, int af, union in… in expose_port_execute()
192 sd_netlink **ret) { in expose_port_watch_rtnl()
193 _cleanup_(sd_netlink_unrefp) sd_netlink *rtnl = NULL; in expose_port_watch_rtnl()
/systemd-251/src/udev/
Dudev-netlink.h35 int link_info_get(sd_netlink **rtnl, int ifindex, LinkInfo *ret);
39 sd_netlink **rtnl,

12345