Lines Matching refs:peer

46 	struct rtnl_link *peer = link->l_info;  in veth_parse()  local
61 peer->l_family = ifi->ifi_family; in veth_parse()
62 peer->l_arptype = ifi->ifi_type; in veth_parse()
63 peer->l_index = ifi->ifi_index; in veth_parse()
64 peer->l_flags = ifi->ifi_flags; in veth_parse()
65 peer->l_change = ifi->ifi_change; in veth_parse()
73 err = rtnl_link_info_parse(peer, peer_tb); in veth_parse()
90 struct rtnl_link *peer = link->l_info; in veth_dump_details() local
92 name = rtnl_link_get_name(peer); in veth_dump_details()
97 nl_dump_line(p, "%u\n", peer->l_index); in veth_dump_details()
120 struct rtnl_link *peer = link->l_info; in veth_put_attrs() local
125 ifi.ifi_family = peer->l_family; in veth_put_attrs()
126 ifi.ifi_type = peer->l_arptype; in veth_put_attrs()
127 ifi.ifi_index = peer->l_index; in veth_put_attrs()
128 ifi.ifi_flags = peer->l_flags; in veth_put_attrs()
129 ifi.ifi_change = peer->l_change; in veth_put_attrs()
137 rtnl_link_fill_info(msg, peer); in veth_put_attrs()
146 struct rtnl_link *peer; in veth_alloc() local
153 if (!(peer = rtnl_link_alloc())) in veth_alloc()
159 peer->l_info = link; in veth_alloc()
160 if ((err = rtnl_link_set_type(peer, "veth")) < 0) { in veth_alloc()
161 rtnl_link_put(peer); in veth_alloc()
165 link->l_info = peer; in veth_alloc()
171 struct rtnl_link *peer = link->l_info; in veth_free() local
172 if (peer) { in veth_free()
175 peer->l_info = NULL; in veth_free()
176 rtnl_link_put(peer); in veth_free()
278 struct rtnl_link *link, *peer; in rtnl_link_veth_add() local
283 peer = link->l_info; in rtnl_link_veth_add()
288 rtnl_link_set_name(peer, peer_name); in rtnl_link_veth_add()
290 rtnl_link_set_ns_pid(peer, pid); in rtnl_link_veth_add()