/systemd-251/src/systemd/ |
D | sd-netlink.h | 35 typedef struct sd_netlink_message sd_netlink_message; typedef 39 typedef int (*sd_netlink_message_handler_t)(sd_netlink *nl, sd_netlink_message *m, void *userdata); 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… 53 int sd_netlink_call_async(sd_netlink *nl, sd_netlink_slot **ret_slot, sd_netlink_message *message, 56 int sd_netlink_call(sd_netlink *nl, sd_netlink_message *message, uint64_t timeout, 57 sd_netlink_message **reply); 58 int sd_netlink_read(sd_netlink *nl, uint32_t serial, uint64_t timeout, sd_netlink_message **reply); 62 int sd_netlink_process(sd_netlink *nl, sd_netlink_message **ret); 75 int sd_netlink_message_append_string(sd_netlink_message *m, unsigned short type, const char *data); [all …]
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-message.c | 23 int message_new_empty(sd_netlink *nl, sd_netlink_message **ret) { in message_new_empty() 24 sd_netlink_message *m; in message_new_empty() 32 m = new(sd_netlink_message, 1); in message_new_empty() 36 *m = (sd_netlink_message) { in message_new_empty() 51 sd_netlink_message **ret) { in message_new_full() 53 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in message_new_full() 82 int message_new(sd_netlink *nl, sd_netlink_message **ret, uint16_t type) { in message_new() 97 int message_new_synthetic_error(sd_netlink *nl, int error, uint32_t serial, sd_netlink_message **re… in message_new_synthetic_error() 116 int sd_netlink_message_request_dump(sd_netlink_message *m, int dump) { in sd_netlink_message_request_dump() 130 DEFINE_TRIVIAL_REF_FUNC(sd_netlink_message, sd_netlink_message); [all …]
|
D | netlink-message-rtnl.c | 20 int sd_rtnl_message_route_set_dst_prefixlen(sd_netlink_message *m, unsigned char prefixlen) { in sd_rtnl_message_route_set_dst_prefixlen() 38 int sd_rtnl_message_route_set_src_prefixlen(sd_netlink_message *m, unsigned char prefixlen) { in sd_rtnl_message_route_set_src_prefixlen() 56 int sd_rtnl_message_route_set_scope(sd_netlink_message *m, unsigned char scope) { in sd_rtnl_message_route_set_scope() 70 int sd_rtnl_message_route_set_flags(sd_netlink_message *m, unsigned flags) { in sd_rtnl_message_route_set_flags() 84 int sd_rtnl_message_route_get_flags(sd_netlink_message *m, unsigned *flags) { in sd_rtnl_message_route_get_flags() 99 int sd_rtnl_message_route_set_table(sd_netlink_message *m, unsigned char table) { in sd_rtnl_message_route_set_table() 113 int sd_rtnl_message_route_get_family(sd_netlink_message *m, int *family) { in sd_rtnl_message_route_get_family() 128 int sd_rtnl_message_route_get_type(sd_netlink_message *m, unsigned char *type) { in sd_rtnl_message_route_get_type() 143 int sd_rtnl_message_route_set_type(sd_netlink_message *m, unsigned char type) { in sd_rtnl_message_route_set_type() 157 int sd_rtnl_message_route_get_protocol(sd_netlink_message *m, unsigned char *protocol) { in sd_rtnl_message_route_get_protocol() [all …]
|
D | netlink-message-nfnl.c | 18 static int nft_message_new(sd_netlink *nfnl, sd_netlink_message **ret, int family, uint16_t msg_typ… in nft_message_new() 19 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; 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() 42 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; 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() 69 sd_netlink_message **ret, in sd_nfnl_nft_message_new_basechain() 77 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in sd_nfnl_nft_message_new_basechain() 118 sd_netlink_message **ret, in sd_nfnl_nft_message_del_table() 122 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in sd_nfnl_nft_message_del_table() [all …]
|
D | netlink-internal.h | 75 sd_netlink_message **rqueue; 78 sd_netlink_message **rqueue_partial; 118 struct sd_netlink_message { struct 129 sd_netlink_message *next; /* next in a chain of multi-part messages */ argument 132 int message_new_empty(sd_netlink *nl, sd_netlink_message **ret); 138 sd_netlink_message **ret); 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… 141 uint32_t message_get_serial(sd_netlink_message *m); 142 void message_seal(sd_netlink_message *m); [all …]
|
D | test-netlink.c | 27 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL; in test_message_link_bridge() 47 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL, *reply = NULL; in test_link_configure() 65 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL, *r = NULL; in test_link_get() 94 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL, *r = NULL; in test_address_get() 113 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in test_route() 163 static int link_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) { in link_handler() 183 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in test_event_loop() 212 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL, *r = NULL; in test_async() 245 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL, *r = NULL; in test_slot_set() 299 static int link_handler2(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) { in link_handler2() [all …]
|
D | netlink-util.h | 106 … int (*_callback_)(sd_netlink *, sd_netlink_message *, typeof(userdata)) = callback; \ 116 … int (*_callback_)(sd_netlink *, sd_netlink_message *, typeof(userdata)) = callback; \ 126 … int (*_callback_)(sd_netlink *, sd_netlink_message *, typeof(userdata)) = callback; \ 134 int netlink_message_append_hw_addr(sd_netlink_message *m, unsigned short type, const struct hw_addr… 135 int netlink_message_append_in_addr_union(sd_netlink_message *m, unsigned short type, int family, co… 136 int netlink_message_append_sockaddr_union(sd_netlink_message *m, unsigned short type, const union s… 138 int netlink_message_read_hw_addr(sd_netlink_message *m, unsigned short type, struct hw_addr_data *d… 139 int netlink_message_read_in_addr_union(sd_netlink_message *m, unsigned short type, int family, unio…
|
D | sd-netlink.c | 207 static void netlink_seal_message(sd_netlink *nl, sd_netlink_message *m) { in netlink_seal_message() 231 sd_netlink_message *message, in sd_netlink_send() 255 sd_netlink_message **messages, in sd_netlink_sendv() 319 static int dispatch_rqueue(sd_netlink *nl, sd_netlink_message **message) { in dispatch_rqueue() 339 memmove(nl->rqueue, nl->rqueue + 1, sizeof(sd_netlink_message*) * nl->rqueue_size); in dispatch_rqueue() 345 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in process_timeout() 384 static int process_reply(sd_netlink *nl, sd_netlink_message *m) { in process_reply() 426 static int process_match(sd_netlink *nl, sd_netlink_message *m) { in process_match() 478 static int process_running(sd_netlink *nl, sd_netlink_message **ret) { in process_running() 479 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in process_running() [all …]
|
D | netlink-genl.c | 96 sd_netlink_message *message, in genl_family_new() 221 sd_netlink_message **ret) { in genl_message_new() 223 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in genl_message_new() 256 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL; in genl_family_get_by_name_internal() 368 int sd_genl_message_new(sd_netlink *nl, const char *family_name, uint8_t cmd, sd_netlink_message **… in sd_genl_message_new() 384 int sd_genl_message_get_family_name(sd_netlink *nl, sd_netlink_message *m, const char **ret) { in sd_genl_message_get_family_name() 406 int sd_genl_message_get_command(sd_netlink *nl, sd_netlink_message *m, uint8_t *ret) { in sd_genl_message_get_command()
|
D | netlink-util.c | 13 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL; in rtnl_set_link_name() 74 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL; in rtnl_set_link_properties() 156 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL, *reply = NULL; in rtnl_get_link_alternative_names() 188 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL; in rtnl_update_link_alternative_names() 236 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL; in rtnl_set_link_alternative_names_by_ifname() 280 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL, *reply = NULL; in rtnl_resolve_link_alternative_name() 373 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL, *reply = NULL; in rtnl_get_link_info()
|
D | netlink-socket.c | 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() 279 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *first = NULL; in socket_read_message() 327 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in socket_read_message() 400 sizeof(sd_netlink_message*) * (nl->rqueue_partial_size - i - 1)); in socket_read_message()
|
/systemd-251/src/shared/ |
D | firewall-util-nft.c | 34 sd_netlink_message *messages[static 1], in nfnl_netlink_sendv() 61 static int nfnl_add_open_expr_container(sd_netlink_message *m, const char *name) { in nfnl_add_open_expr_container() 75 static int nfnl_add_expr_fib(sd_netlink_message *m, uint32_t nft_fib_flags, in nfnl_add_expr_fib() 101 static int nfnl_add_expr_meta(sd_netlink_message *m, enum nft_meta_keys key, in nfnl_add_expr_meta() 124 static int nfnl_add_expr_payload(sd_netlink_message *m, enum nft_payload_bases pb, in nfnl_add_expr_payload() 151 static int nfnl_add_expr_lookup_set_data(sd_netlink_message *m, const char *set_name, in nfnl_add_expr_lookup_set_data() 166 static int nfnl_add_expr_lookup_set(sd_netlink_message *m, const char *set_name, in nfnl_add_expr_lookup_set() 180 static int nfnl_add_expr_lookup_map(sd_netlink_message *m, const char *set_name, in nfnl_add_expr_lookup_map() 199 static int nfnl_add_expr_data(sd_netlink_message *m, int attr, const void *data, uint32_t dlen) { in nfnl_add_expr_data() 212 static int nfnl_add_expr_cmp_data(sd_netlink_message *m, const void *data, uint32_t dlen) { in nfnl_add_expr_cmp_data() [all …]
|
D | loopback-setup.c | 23 static int generic_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) { in generic_handler() 46 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in start_loopback() 69 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in add_ipv4_address() 104 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in add_ipv6_address() 139 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL; in check_loopback()
|
/systemd-251/src/network/ |
D | networkd-setlink.c | 18 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() 39 sd_netlink_message *m, 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 …]
|
D | networkd-manager.c | 651 sd_netlink_message *req, in manager_enumerate_internal() argument 652 int (*process)(sd_netlink *, sd_netlink_message *, Manager *)) { in manager_enumerate_internal() 654 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *reply = NULL; in manager_enumerate_internal() 671 …for (sd_netlink_message *reply_one = reply; reply_one; reply_one = sd_netlink_message_next(reply_o… in manager_enumerate_internal() 682 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in manager_enumerate_links() 696 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in manager_enumerate_qdisc() 710 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in manager_enumerate_tclass() 724 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in manager_enumerate_addresses() 738 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in manager_enumerate_neighbors() 752 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; in manager_enumerate_routes() [all …]
|
D | networkd-speed-meter.c | 13 static int process_message(Manager *manager, sd_netlink_message *message) { in process_message() 45 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL; in speed_meter_handler() 86 for (sd_netlink_message *i = reply; i; i = sd_netlink_message_next(i)) in speed_meter_handler()
|
D | networkd-route.h | 20 sd_netlink_message *m, 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);
|
D | networkd-wifi.h | 8 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…
|
D | networkd-queue.h | 16 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);
|
D | networkd-address.h | 23 sd_netlink_message *m, 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);
|
D | networkd-ipv6ll.h | 28 int ipv6ll_addrgen_mode_fill_message(sd_netlink_message *message, IPv6LinkLocalAddressGenMode mode); 29 int link_update_ipv6ll_addrgen_mode(Link *link, sd_netlink_message *message);
|
/systemd-251/src/network/netdev/ |
D | fou-tunnel.c | 27 static int netdev_fill_fou_tunnel_message(NetDev *netdev, sd_netlink_message *m) { in netdev_fill_fou_tunnel_message() 90 static int netdev_create_fou_tunnel_message(NetDev *netdev, sd_netlink_message **ret) { in netdev_create_fou_tunnel_message() 91 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_create_fou_tunnel_message() 108 static int fou_tunnel_create_handler(sd_netlink *rtnl, sd_netlink_message *m, NetDev *netdev) { in fou_tunnel_create_handler() 129 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_fou_tunnel_create()
|
D | batadv.c | 100 static int netdev_batman_set_handler(sd_netlink *rtnl, sd_netlink_message *m, NetDev *netdev) { in netdev_batman_set_handler() 117 static int netdev_batadv_post_create_message(NetDev *netdev, sd_netlink_message *message) { in netdev_batadv_post_create_message() 167 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL; in netdev_batadv_post_create() 190 static int netdev_batadv_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) { in netdev_batadv_fill_message_create()
|
D | l2tp-tunnel.c | 95 …eate_message_tunnel(NetDev *netdev, union in_addr_union *local_address, sd_netlink_message **ret) { in netdev_l2tp_create_message_tunnel() 96 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_l2tp_create_message_tunnel() 186 …etdev_l2tp_create_message_session(NetDev *netdev, L2tpSession *session, sd_netlink_message **ret) { in netdev_l2tp_create_message_session() 187 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_l2tp_create_message_session() 366 static int l2tp_create_session_handler(sd_netlink *rtnl, sd_netlink_message *m, L2tpSession *sessio… in l2tp_create_session_handler() 389 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *n = NULL; in l2tp_create_session() 405 static int l2tp_create_tunnel_handler(sd_netlink *rtnl, sd_netlink_message *m, NetDev *netdev) { in l2tp_create_tunnel_handler() 436 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in l2tp_create_tunnel()
|
D | macsec.c | 221 static int netdev_macsec_create_message(NetDev *netdev, int command, sd_netlink_message **ret) { in netdev_macsec_create_message() 222 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_macsec_create_message() 241 static int netdev_macsec_fill_message_sci(NetDev *netdev, MACsecSCI *sci, sd_netlink_message *m) { in netdev_macsec_fill_message_sci() 263 static int netdev_macsec_fill_message_sa(NetDev *netdev, SecurityAssociation *a, sd_netlink_message… in netdev_macsec_fill_message_sa() 307 static int macsec_receive_association_handler(sd_netlink *rtnl, sd_netlink_message *m, NetDev *netd… in macsec_receive_association_handler() 331 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_macsec_configure_receive_association() 359 static int macsec_receive_channel_handler(sd_netlink *rtnl, sd_netlink_message *m, ReceiveChannel *… in macsec_receive_channel_handler() 405 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_macsec_configure_receive_channel() 429 static int macsec_transmit_association_handler(sd_netlink *rtnl, sd_netlink_message *m, NetDev *net… in macsec_transmit_association_handler() 453 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL; in netdev_macsec_configure_transmit_association() [all …]
|