Lines Matching refs:rtnl_link

184 static void release_link_info(struct rtnl_link *link)  in release_link_info()
197 struct rtnl_link *link = nl_object_priv(c); in link_free_data()
212 struct rtnl_link *dst = nl_object_priv(_dst); in link_clone()
213 struct rtnl_link *src = nl_object_priv(_src); in link_clone()
259 struct rtnl_link *link; in link_msg_parser()
434 struct rtnl_link *link = (struct rtnl_link *) obj; in link_dump_line()
443 struct rtnl_link *master = rtnl_link_get(cache, link->l_master); in link_dump_line()
454 struct rtnl_link *ll = rtnl_link_get(cache, link->l_link); in link_dump_line()
468 struct rtnl_link *link = (struct rtnl_link *) obj; in link_dump_details()
508 struct rtnl_link *link = (struct rtnl_link *) obj; in link_dump_stats()
571 struct rtnl_link *link = (struct rtnl_link *) obj; in link_dump_env()
597 struct rtnl_link *ll = rtnl_link_get(cache, link->l_link); in link_dump_env()
607 struct rtnl_link *master = rtnl_link_get(cache, link->l_master); in link_dump_env()
639 struct rtnl_link *l = (struct rtnl_link *) a;
654 struct rtnl_link *m = rtnl_link_get(c, l->l_master);
685 struct rtnl_link *a = (struct rtnl_link *) _a; in link_compare()
686 struct rtnl_link *b = (struct rtnl_link *) _b; in link_compare()
748 struct rtnl_link *rtnl_link_alloc(void) in rtnl_link_alloc()
750 return (struct rtnl_link *) nl_object_alloc(&link_obj_ops); in rtnl_link_alloc()
753 void rtnl_link_put(struct rtnl_link *link) in rtnl_link_put()
791 struct rtnl_link *rtnl_link_get(struct nl_cache *cache, int ifindex) in rtnl_link_get()
793 struct rtnl_link *link; in rtnl_link_get()
818 struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *cache, in rtnl_link_get_by_name()
821 struct rtnl_link *link; in rtnl_link_get_by_name()
861 int rtnl_link_build_change_request(struct rtnl_link *old, in rtnl_link_build_change_request()
862 struct rtnl_link *tmpl, int flags, in rtnl_link_build_change_request()
945 int rtnl_link_change(struct nl_sock *sk, struct rtnl_link *old, in rtnl_link_change()
946 struct rtnl_link *tmpl, int flags) in rtnl_link_change()
984 struct rtnl_link *link = rtnl_link_get(cache, ifindex); in rtnl_link_i2name()
1005 struct rtnl_link *link; in rtnl_link_name2i()
1157 void rtnl_link_set_qdisc(struct rtnl_link *link, const char *qdisc) in rtnl_link_set_qdisc()
1163 char *rtnl_link_get_qdisc(struct rtnl_link *link) in rtnl_link_get_qdisc()
1171 void rtnl_link_set_name(struct rtnl_link *link, const char *name) in rtnl_link_set_name()
1177 char *rtnl_link_get_name(struct rtnl_link *link) in rtnl_link_get_name()
1185 static inline void __assign_addr(struct rtnl_link *link, struct nl_addr **pos, in __assign_addr()
1197 void rtnl_link_set_addr(struct rtnl_link *link, struct nl_addr *addr) in rtnl_link_set_addr()
1202 struct nl_addr *rtnl_link_get_addr(struct rtnl_link *link) in rtnl_link_get_addr()
1210 void rtnl_link_set_broadcast(struct rtnl_link *link, struct nl_addr *brd) in rtnl_link_set_broadcast()
1215 struct nl_addr *rtnl_link_get_broadcast(struct rtnl_link *link) in rtnl_link_get_broadcast()
1223 void rtnl_link_set_flags(struct rtnl_link *link, unsigned int flags) in rtnl_link_set_flags()
1230 void rtnl_link_unset_flags(struct rtnl_link *link, unsigned int flags) in rtnl_link_unset_flags()
1237 unsigned int rtnl_link_get_flags(struct rtnl_link *link) in rtnl_link_get_flags()
1242 void rtnl_link_set_family(struct rtnl_link *link, int family) in rtnl_link_set_family()
1248 int rtnl_link_get_family(struct rtnl_link *link) in rtnl_link_get_family()
1256 void rtnl_link_set_arptype(struct rtnl_link *link, unsigned int arptype) in rtnl_link_set_arptype()
1261 unsigned int rtnl_link_get_arptype(struct rtnl_link *link) in rtnl_link_get_arptype()
1266 void rtnl_link_set_ifindex(struct rtnl_link *link, int ifindex) in rtnl_link_set_ifindex()
1272 int rtnl_link_get_ifindex(struct rtnl_link *link) in rtnl_link_get_ifindex()
1277 void rtnl_link_set_mtu(struct rtnl_link *link, unsigned int mtu) in rtnl_link_set_mtu()
1283 unsigned int rtnl_link_get_mtu(struct rtnl_link *link) in rtnl_link_get_mtu()
1291 void rtnl_link_set_txqlen(struct rtnl_link *link, unsigned int txqlen) in rtnl_link_set_txqlen()
1297 unsigned int rtnl_link_get_txqlen(struct rtnl_link *link) in rtnl_link_get_txqlen()
1305 void rtnl_link_set_weight(struct rtnl_link *link, unsigned int weight) in rtnl_link_set_weight()
1311 unsigned int rtnl_link_get_weight(struct rtnl_link *link) in rtnl_link_get_weight()
1319 void rtnl_link_set_link(struct rtnl_link *link, int ifindex) in rtnl_link_set_link()
1325 int rtnl_link_get_link(struct rtnl_link *link) in rtnl_link_get_link()
1330 void rtnl_link_set_master(struct rtnl_link *link, int ifindex) in rtnl_link_set_master()
1336 int rtnl_link_get_master(struct rtnl_link *link) in rtnl_link_get_master()
1341 void rtnl_link_set_operstate(struct rtnl_link *link, uint8_t operstate) in rtnl_link_set_operstate()
1347 uint8_t rtnl_link_get_operstate(struct rtnl_link *link) in rtnl_link_get_operstate()
1355 void rtnl_link_set_linkmode(struct rtnl_link *link, uint8_t linkmode) in rtnl_link_set_linkmode()
1361 uint8_t rtnl_link_get_linkmode(struct rtnl_link *link) in rtnl_link_get_linkmode()
1369 uint64_t rtnl_link_get_stat(struct rtnl_link *link, int id) in rtnl_link_get_stat()
1388 int rtnl_link_set_info_type(struct rtnl_link *link, const char *type) in rtnl_link_set_info_type()
1414 char *rtnl_link_get_info_type(struct rtnl_link *link) in rtnl_link_get_info_type()
1426 .oo_size = sizeof(struct rtnl_link),