Searched defs:nic (Results 1 - 2 of 2) sorted by relevance
/lxc/src/lxc/ |
H A D | lxc_user_nic.c | 388 static bool nic_exists(char *nic) argument 394 if (!strcmp(nic, "none")) 397 ret = snprintf(path, MAXPATHLEN, "/sys/class/net/%s", nic); 414 usernic_error("%s\n", "Could not create nic name."); 444 static bool create_nic(char *nic, char *br, int pid, char **cnic) argument 456 ret = snprintf(veth1buf, IFNAMSIZ, "%s", nic); 458 usernic_error("%s", "Could not create nic name.\n"); 514 * Get a new nic. 534 static bool get_nic_from_line(char *p, char **nic) argument 539 ret = sscanf(p, "%99[^ \t\n] %99[^ \t\n] %99[^ \t\n] %99[^ \t\n]", user, type, br, *nic); 556 char *buf, *p, *e, *nic; local [all...] |
H A D | network.c | 1408 * Called from a background thread - when nic goes away, remove 1411 static void ovs_cleanup_nic(const char *lxcpath, const char *name, const char *bridge, const char *nic) argument 1417 execlp("ovs-vsctl", "ovs-vsctl", "del-port", bridge, nic, (char *)NULL); 1421 static int attach_to_ovs_bridge(const char *lxcpath, const char *name, const char *bridge, const char *nic) argument 1444 ovs_cleanup_nic(lxcpath, name, bridge, nic); 1448 if (execlp("ovs-vsctl", "ovs-vsctl", "add-port", bridge, nic, (char *)NULL))
|
Completed in 11 milliseconds