Home | History | Annotate | Download | only in ap

Lines Matching defs:rlink

37 	struct rtnl_link *rlink = NULL;
83 if ((rlink = rtnl_link_get_by_name(cache, vlan_if_name))) {
85 rtnl_link_put(rlink);
86 rlink = NULL;
93 rlink = rtnl_link_alloc();
94 if (!rlink) {
99 err = rtnl_link_set_type(rlink, "vlan");
106 rtnl_link_set_link(rlink, if_idx);
107 rtnl_link_set_name(rlink, vlan_if_name);
109 err = rtnl_link_vlan_set_id(rlink, vid);
116 err = rtnl_link_add(handle, rlink, NLM_F_CREATE);
128 if (rlink)
129 rtnl_link_put(rlink);
143 struct rtnl_link *rlink = NULL;
168 if (!(rlink = rtnl_link_get_by_name(cache, if_name))) {
175 err = rtnl_link_delete(handle, rlink);
185 if (rlink)
186 rtnl_link_put(rlink);