Searched refs:ifname_map (Results 1 – 1 of 1) sorted by relevance
124 struct ifname_map { struct132 static struct ifname_map *ifname_map_alloc(const char *bus_name, in ifname_map_alloc() argument137 struct ifname_map *ifname_map; in ifname_map_alloc() local139 ifname_map = calloc(1, sizeof(*ifname_map)); in ifname_map_alloc()140 if (!ifname_map) in ifname_map_alloc()142 ifname_map->bus_name = strdup(bus_name); in ifname_map_alloc()143 ifname_map->dev_name = strdup(dev_name); in ifname_map_alloc()144 ifname_map->port_index = port_index; in ifname_map_alloc()145 ifname_map->ifname = strdup(ifname); in ifname_map_alloc()146 if (!ifname_map->bus_name || !ifname_map->dev_name || in ifname_map_alloc()[all …]