• Home
  • Raw
  • Download

Lines Matching refs:mvi_macaddr

50 	struct nl_addr          **mvi_macaddr;  member
72 nl_addr_put(mvi->mvi_macaddr[i]); in macvlan_alloc()
73 free(mvi->mvi_macaddr); in macvlan_alloc()
124 mvi->mvi_macaddr = calloc(mvi->mvi_maccount, in macvlan_parse()
125 sizeof(*(mvi->mvi_macaddr))); in macvlan_parse()
134 mvi->mvi_macaddr[i] = nl_addr_alloc_attr(nla, AF_LLC); in macvlan_parse()
154 nl_addr_put(mvi->mvi_macaddr[i]); in macvlan_free()
155 free(mvi->mvi_macaddr); in macvlan_free()
184 nl_dump(p, " %s", nl_addr2str(mvi->mvi_macaddr[i], buf, in macvlan_dump_details()
209 vdst->mvi_macaddr = calloc(vdst->mvi_maccount, in macvlan_clone()
210 sizeof(*(vdst->mvi_macaddr))); in macvlan_clone()
212 vdst->mvi_macaddr[i] = nl_addr_clone(vsrc->mvi_macaddr[i]); in macvlan_clone()
214 vdst->mvi_macaddr = NULL; in macvlan_clone()
244 mvi->mvi_macaddr[i]); in macvlan_put_attrs()
353 nl_addr_put(mvi->mvi_macaddr[i]); in rtnl_link_macvlan_set_mode()
354 free(mvi->mvi_macaddr); in rtnl_link_macvlan_set_mode()
356 mvi->mvi_macaddr = NULL; in rtnl_link_macvlan_set_mode()
543 *out_addr = mvi->mvi_macaddr[idx]; in rtnl_link_macvlan_get_macaddr()
559 struct nl_addr **mvi_macaddr; in rtnl_link_macvlan_add_macaddr() local
577 newsize = (mvi->mvi_maccount + 1) * sizeof(*(mvi->mvi_macaddr)); in rtnl_link_macvlan_add_macaddr()
578 mvi_macaddr = realloc(mvi->mvi_macaddr, newsize); in rtnl_link_macvlan_add_macaddr()
579 if (!mvi_macaddr) in rtnl_link_macvlan_add_macaddr()
582 mvi->mvi_macaddr = mvi_macaddr; in rtnl_link_macvlan_add_macaddr()
583 mvi->mvi_macaddr[mvi->mvi_maccount] = nl_addr_clone(addr); in rtnl_link_macvlan_add_macaddr()
622 mvi->mvi_macaddr[i] = mvi->mvi_macaddr[i + found]; in rtnl_link_macvlan_del_macaddr()
624 mvi->mvi_macaddr[i + found] = NULL; in rtnl_link_macvlan_del_macaddr()
625 if (nl_addr_cmp(addr, mvi->mvi_macaddr[i]) == 0) { in rtnl_link_macvlan_del_macaddr()
626 nl_addr_put(mvi->mvi_macaddr[i]); in rtnl_link_macvlan_del_macaddr()
627 mvi->mvi_macaddr[i] = NULL; in rtnl_link_macvlan_del_macaddr()