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