Lines Matching refs:rtnl_link
32 struct rtnl_link;
109 extern struct rtnl_link *rtnl_link_alloc(void);
110 extern void rtnl_link_put(struct rtnl_link *);
116 extern struct rtnl_link *rtnl_link_get(struct nl_cache *, int);
117 extern struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *, const char *);
120 extern int rtnl_link_build_add_request(struct rtnl_link *, int,
122 extern int rtnl_link_add(struct nl_sock *, struct rtnl_link *, int);
123 extern int rtnl_link_build_change_request(struct rtnl_link *,
124 struct rtnl_link *, int,
126 extern int rtnl_link_change(struct nl_sock *, struct rtnl_link *,
127 struct rtnl_link *, int);
129 extern int rtnl_link_build_delete_request(const struct rtnl_link *,
131 extern int rtnl_link_delete(struct nl_sock *, const struct rtnl_link *);
135 struct rtnl_link **);
160 extern void rtnl_link_set_qdisc(struct rtnl_link *, const char *);
161 extern char * rtnl_link_get_qdisc(struct rtnl_link *);
163 extern void rtnl_link_set_name(struct rtnl_link *, const char *);
164 extern char * rtnl_link_get_name(struct rtnl_link *);
166 extern void rtnl_link_set_group(struct rtnl_link *, uint32_t);
167 extern uint32_t rtnl_link_get_group(struct rtnl_link *);
169 extern void rtnl_link_set_flags(struct rtnl_link *, unsigned int);
170 extern void rtnl_link_unset_flags(struct rtnl_link *, unsigned int);
171 extern unsigned int rtnl_link_get_flags(struct rtnl_link *);
173 extern void rtnl_link_set_mtu(struct rtnl_link *, unsigned int);
174 extern unsigned int rtnl_link_get_mtu(struct rtnl_link *);
176 extern void rtnl_link_set_txqlen(struct rtnl_link *, unsigned int);
177 extern unsigned int rtnl_link_get_txqlen(struct rtnl_link *);
179 extern void rtnl_link_set_ifindex(struct rtnl_link *, int);
180 extern int rtnl_link_get_ifindex(struct rtnl_link *);
182 extern void rtnl_link_set_family(struct rtnl_link *, int);
183 extern int rtnl_link_get_family(struct rtnl_link *);
185 extern void rtnl_link_set_arptype(struct rtnl_link *, unsigned int);
186 extern unsigned int rtnl_link_get_arptype(struct rtnl_link *);
188 extern void rtnl_link_set_addr(struct rtnl_link *, struct nl_addr *);
189 extern struct nl_addr *rtnl_link_get_addr(struct rtnl_link *);
191 extern void rtnl_link_set_broadcast(struct rtnl_link *, struct nl_addr *);
192 extern struct nl_addr *rtnl_link_get_broadcast(struct rtnl_link *);
194 extern void rtnl_link_set_link(struct rtnl_link *, int);
195 extern int rtnl_link_get_link(struct rtnl_link *);
197 extern void rtnl_link_set_master(struct rtnl_link *, int);
198 extern int rtnl_link_get_master(struct rtnl_link *);
200 extern void rtnl_link_set_carrier(struct rtnl_link *, uint8_t);
201 extern uint8_t rtnl_link_get_carrier(struct rtnl_link *);
203 extern int rtnl_link_get_carrier_changes(struct rtnl_link *, uint32_t *);
205 extern void rtnl_link_set_operstate(struct rtnl_link *, uint8_t);
206 extern uint8_t rtnl_link_get_operstate(struct rtnl_link *);
208 extern void rtnl_link_set_linkmode(struct rtnl_link *, uint8_t);
209 extern uint8_t rtnl_link_get_linkmode(struct rtnl_link *);
211 int rtnl_link_set_link_netnsid(struct rtnl_link *link, int32_t link_netnsid);
212 int rtnl_link_get_link_netnsid(const struct rtnl_link *link, int32_t *out_link_netnsid);
214 extern const char * rtnl_link_get_ifalias(struct rtnl_link *);
215 extern void rtnl_link_set_ifalias(struct rtnl_link *, const char *);
217 extern int rtnl_link_get_num_vf(struct rtnl_link *, uint32_t *);
219 extern uint64_t rtnl_link_get_stat(struct rtnl_link *, rtnl_link_stat_id_t);
220 extern int rtnl_link_set_stat(struct rtnl_link *, rtnl_link_stat_id_t,
223 extern int rtnl_link_set_type(struct rtnl_link *, const char *);
224 extern char * rtnl_link_get_type(struct rtnl_link *);
226 extern int rtnl_link_set_slave_type(struct rtnl_link *, const char *);
227 extern const char * rtnl_link_get_slave_type(const struct rtnl_link *);
229 extern void rtnl_link_set_promiscuity(struct rtnl_link *, uint32_t);
230 extern uint32_t rtnl_link_get_promiscuity(struct rtnl_link *);
232 extern void rtnl_link_set_num_tx_queues(struct rtnl_link *, uint32_t);
233 extern uint32_t rtnl_link_get_num_tx_queues(struct rtnl_link *);
235 extern void rtnl_link_set_num_rx_queues(struct rtnl_link *, uint32_t);
236 extern uint32_t rtnl_link_get_num_rx_queues(struct rtnl_link *);
238 extern int rtnl_link_get_gso_max_segs(struct rtnl_link *, uint32_t *);
240 extern int rtnl_link_get_gso_max_size(struct rtnl_link *, uint32_t *);
242 extern struct nl_data * rtnl_link_get_phys_port_id(struct rtnl_link *);
244 extern char* rtnl_link_get_phys_port_name(struct rtnl_link *);
246 extern struct nl_data * rtnl_link_get_phys_switch_id(struct rtnl_link *);
248 extern void rtnl_link_set_ns_fd(struct rtnl_link *, int);
249 extern int rtnl_link_get_ns_fd(struct rtnl_link *);
250 extern void rtnl_link_set_ns_pid(struct rtnl_link *, pid_t);
251 extern pid_t rtnl_link_get_ns_pid(struct rtnl_link *);
254 extern int rtnl_link_enslave(struct nl_sock *, struct rtnl_link *,
255 struct rtnl_link *);
257 extern int rtnl_link_release(struct nl_sock *, struct rtnl_link *);
258 extern int rtnl_link_fill_info(struct nl_msg *, struct rtnl_link *);
259 extern int rtnl_link_info_parse(struct rtnl_link *, struct nlattr **);
261 extern int rtnl_link_has_vf_list(struct rtnl_link *);
262 extern void rtnl_link_set_vf_list(struct rtnl_link *);
263 extern void rtnl_link_unset_vf_list(struct rtnl_link *);
267 extern int rtnl_link_set_info_type(struct rtnl_link *, const char *) __attribute__((deprecated));
268 extern char * rtnl_link_get_info_type(struct rtnl_link *) __attribute__((deprecated));
269 extern void rtnl_link_set_weight(struct rtnl_link *, unsigned int) __attribute__((deprecated));
270 extern unsigned int rtnl_link_get_weight(struct rtnl_link *) __attribute__((deprecated));