Searched refs:sd_netlink_message (Results 1 - 25 of 44) sorted by relevance

12

/systemd/src/systemd/
H A Dsd-netlink.h36 typedef struct sd_netlink_message sd_netlink_message; typedef in typeref:struct:sd_netlink_message
40 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_call_async(sd_netlink *nl, sd_netlink_message *message,
56 int sd_netlink_call(sd_netlink *nl, sd_netlink_message *message, uint64_t timeout,
57 sd_netlink_message **reply);
61 int sd_netlink_process(sd_netlink *nl, sd_netlink_message **ret);
70 int sd_netlink_message_append_string(sd_netlink_message *m, unsigned short type, const char *data);
71 int sd_netlink_message_append_flag(sd_netlink_message *
[all...]
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-util.h26 int rtnl_message_new_synthetic_error(int error, uint32_t serial, sd_netlink_message **ret);
27 uint32_t rtnl_message_get_serial(sd_netlink_message *m);
28 void rtnl_message_seal(sd_netlink_message *m);
H A Dnetlink-internal.h67 sd_netlink_message **rqueue;
71 sd_netlink_message **rqueue_partial;
108 struct sd_netlink_message { struct
119 sd_netlink_message *next; /* next in a chain of multi-part messages */
122 int message_new(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t type);
123 int message_new_empty(sd_netlink *rtnl, sd_netlink_message **ret);
129 int socket_write_message(sd_netlink *nl, sd_netlink_message *m);
H A Drtnl-message.c35 int sd_rtnl_message_route_set_dst_prefixlen(sd_netlink_message *m, unsigned char prefixlen) {
53 int sd_rtnl_message_route_set_src_prefixlen(sd_netlink_message *m, unsigned char prefixlen) {
71 int sd_rtnl_message_route_set_scope(sd_netlink_message *m, unsigned char scope) {
85 int sd_rtnl_message_route_set_flags(sd_netlink_message *m, unsigned flags) {
99 int sd_rtnl_message_route_get_flags(sd_netlink_message *m, unsigned *flags) {
114 int sd_rtnl_message_route_get_family(sd_netlink_message *m, int *family) {
129 int sd_rtnl_message_route_get_protocol(sd_netlink_message *m, unsigned char *protocol) {
144 int sd_rtnl_message_route_get_scope(sd_netlink_message *m, unsigned char *scope) {
159 int sd_rtnl_message_route_get_tos(sd_netlink_message *m, unsigned char *tos) {
174 int sd_rtnl_message_route_get_table(sd_netlink_message *
[all...]
H A Dnetlink-message.c42 int message_new_empty(sd_netlink *rtnl, sd_netlink_message **ret) {
43 sd_netlink_message *m;
52 m = new0(sd_netlink_message, 1);
65 int message_new(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t type) {
66 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
101 int sd_netlink_message_request_dump(sd_netlink_message *m, int dump) {
118 sd_netlink_message *sd_netlink_message_ref(sd_netlink_message *m) {
125 sd_netlink_message *sd_netlink_message_unref(sd_netlink_message *
[all...]
H A Dtest-netlink.c34 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL;
52 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL;
79 sd_netlink_message *m;
80 sd_netlink_message *r;
124 sd_netlink_message *m;
125 sd_netlink_message *r;
146 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req;
192 static int link_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) {
211 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
233 static int pipe_handler(sd_netlink *rtnl, sd_netlink_message *
[all...]
H A Dnetlink-util.c26 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL;
56 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *message = NULL;
100 int rtnl_message_new_synthetic_error(int error, uint32_t serial, sd_netlink_message **ret) {
H A Dlocal-addresses.c57 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
61 sd_netlink_message *m;
168 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
171 sd_netlink_message *m = NULL;
H A Dsd-netlink.c201 static void rtnl_seal_message(sd_netlink *rtnl, sd_netlink_message *m) {
217 sd_netlink_message *message,
267 static int dispatch_rqueue(sd_netlink *rtnl, sd_netlink_message **message) {
283 memmove(rtnl->rqueue, rtnl->rqueue + 1, sizeof(sd_netlink_message*) * rtnl->rqueue_size);
289 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
320 static int process_reply(sd_netlink *rtnl, sd_netlink_message *m) {
351 static int process_match(sd_netlink *rtnl, sd_netlink_message *m) {
378 static int process_running(sd_netlink *rtnl, sd_netlink_message **ret) {
379 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
420 int sd_netlink_process(sd_netlink *rtnl, sd_netlink_message **re
[all...]
H A Dnetlink-socket.c237 int socket_write_message(sd_netlink *nl, sd_netlink_message *m) {
324 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *first = NULL;
377 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
453 sizeof(sd_netlink_message*) * (rtnl->rqueue_partial_size - i - 1));
/systemd/src/network/
H A Dnetworkd-wait-online-link.h40 int link_update_rtnl(Link *l, sd_netlink_message *m);
H A Dnetworkd-netdev-bridge.c28 static int netdev_bridge_set_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) {
46 static int netdev_bridge_post_create(NetDev *netdev, Link *link, sd_netlink_message *m) {
47 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
H A Dnetworkd.h85 int manager_rtnl_process_address(sd_netlink *nl, sd_netlink_message *message, void *userdata);
86 int manager_rtnl_process_route(sd_netlink *nl, sd_netlink_message *message, void *userdata);
H A Dnetworkd-netdev-ipvlan.c34 static int netdev_ipvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) {
H A Dnetworkd-link.h124 int link_add(Manager *manager, sd_netlink_message *message, Link **ret);
127 int link_address_remove_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata);
128 int link_route_remove_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata);
136 int link_update(Link *link, sd_netlink_message *message);
H A Dnetworkd-netdev-macvlan.c36 static int netdev_macvlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) {
H A Dnetworkd-netdev-vlan.c24 static int netdev_vlan_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *req) {
H A Dnetworkd-wait-online-manager.c99 static int manager_process_link(sd_netlink *rtnl, sd_netlink_message *mm, void *userdata) {
161 static int on_rtnl_event(sd_netlink *rtnl, sd_netlink_message *mm, void *userdata) {
176 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
177 sd_netlink_message *i;
H A Dnetworkd-fdb.c83 static int set_fdb_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userdata) {
98 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
H A Dnetworkd-netdev-veth.c27 static int netdev_veth_fill_message_create(NetDev *netdev, Link *link, sd_netlink_message *m) {
H A Dnetworkd-netdev.h134 int (*fill_message_create)(NetDev *netdev, Link *link, sd_netlink_message *message);
143 int (*post_create)(NetDev *netdev, Link *link, sd_netlink_message *message);
196 int netdev_set_ifindex(NetDev *netdev, sd_netlink_message *newlink);
/systemd/src/core/
H A Dloopback-setup.c30 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
49 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
/systemd/src/resolve/
H A Dresolved-link.h88 int link_update_rtnl(Link *l, sd_netlink_message *m);
107 int link_address_update_rtnl(LinkAddress *a, sd_netlink_message *m);
/systemd/src/libsystemd-network/
H A Dtest-acd.c78 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL, *reply = NULL;
/systemd/src/nspawn/
H A Dnspawn-network.c95 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
242 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
322 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
366 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
453 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;

Completed in 193 milliseconds

12