Lines Matching refs:sd_netlink_message

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);
76 int sd_netlink_message_append_strv(sd_netlink_message *m, unsigned short type, char * const *data);
77 int sd_netlink_message_append_flag(sd_netlink_message *m, unsigned short type);
78 int sd_netlink_message_append_u8(sd_netlink_message *m, unsigned short type, uint8_t data);
79 int sd_netlink_message_append_u16(sd_netlink_message *m, unsigned short type, uint16_t data);
80 int sd_netlink_message_append_u32(sd_netlink_message *m, unsigned short type, uint32_t data);
81 int sd_netlink_message_append_u64(sd_netlink_message *m, unsigned short type, uint64_t data);
82 int sd_netlink_message_append_s8(sd_netlink_message *m, unsigned short type, int8_t data);
83 int sd_netlink_message_append_s16(sd_netlink_message *m, unsigned short type, int16_t data);
84 int sd_netlink_message_append_s32(sd_netlink_message *m, unsigned short type, int32_t data);
85 int sd_netlink_message_append_s64(sd_netlink_message *m, unsigned short type, int64_t data);
86 int sd_netlink_message_append_data(sd_netlink_message *m, unsigned short type, const void *data, si…
87 int sd_netlink_message_append_in_addr(sd_netlink_message *m, unsigned short type, const struct in_a…
88 int sd_netlink_message_append_in6_addr(sd_netlink_message *m, unsigned short type, const struct in6…
89 int sd_netlink_message_append_sockaddr_in(sd_netlink_message *m, unsigned short type, const struct …
90 int sd_netlink_message_append_sockaddr_in6(sd_netlink_message *m, unsigned short type, const struct…
91 int sd_netlink_message_append_ether_addr(sd_netlink_message *m, unsigned short type, const struct e…
92 int sd_netlink_message_append_cache_info(sd_netlink_message *m, unsigned short type, const struct i…
94 int sd_netlink_message_open_container(sd_netlink_message *m, unsigned short type);
95 int sd_netlink_message_open_container_union(sd_netlink_message *m, unsigned short type, const char …
96 int sd_netlink_message_close_container(sd_netlink_message *m);
98 int sd_netlink_message_read(sd_netlink_message *m, unsigned short type, size_t size, void *data);
99 int sd_netlink_message_read_data(sd_netlink_message *m, unsigned short type, size_t *ret_size, void…
100 int sd_netlink_message_read_data_suffix0(sd_netlink_message *m, unsigned short type, size_t *ret_si…
101 int sd_netlink_message_read_string_strdup(sd_netlink_message *m, unsigned short type, char **data);
102 int sd_netlink_message_read_string(sd_netlink_message *m, unsigned short type, const char **data);
103 int sd_netlink_message_read_strv(sd_netlink_message *m, unsigned short container_type, unsigned sho…
104 int sd_netlink_message_read_u8(sd_netlink_message *m, unsigned short type, uint8_t *data);
105 int sd_netlink_message_read_u16(sd_netlink_message *m, unsigned short type, uint16_t *data);
106 int sd_netlink_message_read_u32(sd_netlink_message *m, unsigned short type, uint32_t *data);
107 int sd_netlink_message_read_ether_addr(sd_netlink_message *m, unsigned short type, struct ether_add…
108 int sd_netlink_message_read_cache_info(sd_netlink_message *m, unsigned short type, struct ifa_cache…
109 int sd_netlink_message_read_in_addr(sd_netlink_message *m, unsigned short type, struct in_addr *dat…
110 int sd_netlink_message_read_in6_addr(sd_netlink_message *m, unsigned short type, struct in6_addr *d…
111 int sd_netlink_message_has_flag(sd_netlink_message *m, unsigned short type);
112 int sd_netlink_message_enter_container(sd_netlink_message *m, unsigned short type);
113 int sd_netlink_message_enter_array(sd_netlink_message *m, unsigned short type);
114 int sd_netlink_message_exit_container(sd_netlink_message *m);
116 int sd_netlink_message_open_array(sd_netlink_message *m, uint16_t type);
117 int sd_netlink_message_cancel_array(sd_netlink_message *m);
119 int sd_netlink_message_rewind(sd_netlink_message *m, sd_netlink *nl);
121 sd_netlink_message *sd_netlink_message_next(sd_netlink_message *m);
123 sd_netlink_message *sd_netlink_message_ref(sd_netlink_message *m);
124 sd_netlink_message *sd_netlink_message_unref(sd_netlink_message *m);
126 int sd_netlink_message_request_dump(sd_netlink_message *m, int dump);
127 int sd_netlink_message_is_error(sd_netlink_message *m);
128 int sd_netlink_message_get_errno(sd_netlink_message *m);
129 int sd_netlink_message_get_type(sd_netlink_message *m, uint16_t *type);
130 int sd_netlink_message_set_flags(sd_netlink_message *m, uint16_t flags);
131 int sd_netlink_message_is_broadcast(sd_netlink_message *m);
132 int sd_netlink_message_get_max_attribute(sd_netlink_message *m, uint16_t *ret);
135 int sd_rtnl_message_get_family(sd_netlink_message *m, int *family);
137 int sd_rtnl_message_new_addr(sd_netlink *nl, sd_netlink_message **ret, uint16_t msg_type, int index…
138 int sd_rtnl_message_new_addr_update(sd_netlink *nl, sd_netlink_message **ret, int index, int family…
139 int sd_rtnl_message_addr_set_prefixlen(sd_netlink_message *m, unsigned char prefixlen);
140 int sd_rtnl_message_addr_set_scope(sd_netlink_message *m, unsigned char scope);
141 int sd_rtnl_message_addr_set_flags(sd_netlink_message *m, unsigned char flags);
142 int sd_rtnl_message_addr_get_family(sd_netlink_message *m, int *family);
143 int sd_rtnl_message_addr_get_prefixlen(sd_netlink_message *m, unsigned char *prefixlen);
144 int sd_rtnl_message_addr_get_scope(sd_netlink_message *m, unsigned char *scope);
145 int sd_rtnl_message_addr_get_flags(sd_netlink_message *m, unsigned char *flags);
146 int sd_rtnl_message_addr_get_ifindex(sd_netlink_message *m, int *ifindex);
148 int sd_rtnl_message_new_link(sd_netlink *nl, sd_netlink_message **ret, uint16_t msg_type, int index…
149 int sd_rtnl_message_link_set_flags(sd_netlink_message *m, unsigned flags, unsigned change);
150 int sd_rtnl_message_link_set_type(sd_netlink_message *m, unsigned type);
151 int sd_rtnl_message_link_set_family(sd_netlink_message *m, unsigned family);
152 int sd_rtnl_message_link_get_ifindex(sd_netlink_message *m, int *ifindex);
153 int sd_rtnl_message_link_get_flags(sd_netlink_message *m, unsigned *flags);
154 int sd_rtnl_message_link_get_type(sd_netlink_message *m, unsigned short *type);
156 int sd_rtnl_message_new_route(sd_netlink *nl, sd_netlink_message **ret, uint16_t nlmsg_type, int rt…
157 int sd_rtnl_message_route_set_dst_prefixlen(sd_netlink_message *m, unsigned char prefixlen);
158 int sd_rtnl_message_route_set_src_prefixlen(sd_netlink_message *m, unsigned char prefixlen);
159 int sd_rtnl_message_route_set_scope(sd_netlink_message *m, unsigned char scope);
160 int sd_rtnl_message_route_set_flags(sd_netlink_message *m, unsigned flags);
161 int sd_rtnl_message_route_set_table(sd_netlink_message *m, unsigned char table);
162 int sd_rtnl_message_route_set_type(sd_netlink_message *m, unsigned char type);
163 int sd_rtnl_message_route_get_flags(sd_netlink_message *m, unsigned *flags);
164 int sd_rtnl_message_route_get_family(sd_netlink_message *m, int *family);
165 int sd_rtnl_message_route_get_protocol(sd_netlink_message *m, unsigned char *protocol);
166 int sd_rtnl_message_route_get_scope(sd_netlink_message *m, unsigned char *scope);
167 int sd_rtnl_message_route_get_tos(sd_netlink_message *m, unsigned char *tos);
168 int sd_rtnl_message_route_get_table(sd_netlink_message *m, unsigned char *table);
169 int sd_rtnl_message_route_get_dst_prefixlen(sd_netlink_message *m, unsigned char *dst_len);
170 int sd_rtnl_message_route_get_src_prefixlen(sd_netlink_message *m, unsigned char *src_len);
171 int sd_rtnl_message_route_get_type(sd_netlink_message *m, unsigned char *type);
173 int sd_rtnl_message_new_nexthop(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, in…
174 int sd_rtnl_message_nexthop_set_flags(sd_netlink_message *m, uint8_t flags);
175 int sd_rtnl_message_nexthop_get_flags(sd_netlink_message *m, uint8_t *ret);
176 int sd_rtnl_message_nexthop_get_family(sd_netlink_message *m, uint8_t *family);
177 int sd_rtnl_message_nexthop_get_protocol(sd_netlink_message *m, uint8_t *protocol);
179 int sd_rtnl_message_new_neigh(sd_netlink *nl, sd_netlink_message **ret, uint16_t nlmsg_type, int in…
180 int sd_rtnl_message_neigh_set_flags(sd_netlink_message *m, uint8_t flags);
181 int sd_rtnl_message_neigh_set_state(sd_netlink_message *m, uint16_t state);
182 int sd_rtnl_message_neigh_get_family(sd_netlink_message *m, int *family);
183 int sd_rtnl_message_neigh_get_ifindex(sd_netlink_message *m, int *index);
184 int sd_rtnl_message_neigh_get_state(sd_netlink_message *m, uint16_t *state);
185 int sd_rtnl_message_neigh_get_flags(sd_netlink_message *m, uint8_t *flags);
187 int sd_rtnl_message_new_addrlabel(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, …
188 int sd_rtnl_message_addrlabel_set_prefixlen(sd_netlink_message *m, unsigned char prefixlen);
189 int sd_rtnl_message_addrlabel_get_prefixlen(sd_netlink_message *m, unsigned char *prefixlen);
191 int sd_rtnl_message_new_routing_policy_rule(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nl…
192 int sd_rtnl_message_routing_policy_rule_set_tos(sd_netlink_message *m, uint8_t tos);
193 int sd_rtnl_message_routing_policy_rule_get_tos(sd_netlink_message *m, uint8_t *tos);
194 int sd_rtnl_message_routing_policy_rule_set_table(sd_netlink_message *m, uint8_t table);
195 int sd_rtnl_message_routing_policy_rule_get_table(sd_netlink_message *m, uint8_t *table);
196 int sd_rtnl_message_routing_policy_rule_set_fib_src_prefixlen(sd_netlink_message *m, uint8_t len);
197 int sd_rtnl_message_routing_policy_rule_get_fib_src_prefixlen(sd_netlink_message *m, uint8_t *len);
198 int sd_rtnl_message_routing_policy_rule_set_fib_dst_prefixlen(sd_netlink_message *m, uint8_t len);
199 int sd_rtnl_message_routing_policy_rule_get_fib_dst_prefixlen(sd_netlink_message *m, uint8_t *len);
200 int sd_rtnl_message_routing_policy_rule_set_fib_type(sd_netlink_message *m, uint8_t type);
201 int sd_rtnl_message_routing_policy_rule_get_fib_type(sd_netlink_message *m, uint8_t *type);
202 int sd_rtnl_message_routing_policy_rule_set_flags(sd_netlink_message *m, uint32_t flags);
203 int sd_rtnl_message_routing_policy_rule_get_flags(sd_netlink_message *m, uint32_t *flags);
205 int sd_rtnl_message_new_traffic_control(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_…
207 int sd_rtnl_message_traffic_control_get_ifindex(sd_netlink_message *m, int *ret);
208 int sd_rtnl_message_traffic_control_get_handle(sd_netlink_message *m, uint32_t *ret);
209 int sd_rtnl_message_traffic_control_get_parent(sd_netlink_message *m, uint32_t *ret);
211 int sd_rtnl_message_new_mdb(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, int md…
215 int sd_nfnl_message_batch_begin(sd_netlink *nfnl, sd_netlink_message **ret);
216 int sd_nfnl_message_batch_end(sd_netlink *nfnl, sd_netlink_message **ret);
217 int sd_nfnl_nft_message_del_table(sd_netlink *nfnl, sd_netlink_message **ret,
219 int sd_nfnl_nft_message_new_table(sd_netlink *nfnl, sd_netlink_message **ret,
221 int sd_nfnl_nft_message_new_basechain(sd_netlink *nfnl, sd_netlink_message **ret,
224 int sd_nfnl_nft_message_new_rule(sd_netlink *nfnl, sd_netlink_message **ret,
226 int sd_nfnl_nft_message_new_set(sd_netlink *nfnl, sd_netlink_message **ret,
229 int sd_nfnl_nft_message_new_setelems_begin(sd_netlink *nfnl, sd_netlink_message **ret,
231 int sd_nfnl_nft_message_del_setelems_begin(sd_netlink *nfnl, sd_netlink_message **ret,
233 int sd_nfnl_nft_message_add_setelem(sd_netlink_message *m,
237 int sd_nfnl_nft_message_add_setelem_end(sd_netlink_message *m);
241 int sd_genl_message_new(sd_netlink *genl, const char *family_name, uint8_t cmd, sd_netlink_message
242 int sd_genl_message_get_family_name(sd_netlink *genl, sd_netlink_message *m, const char **ret);
243 int sd_genl_message_get_command(sd_netlink *genl, sd_netlink_message *m, uint8_t *ret);
265 _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_netlink_message, sd_netlink_message_unref);