Lines Matching full:bridge
2 * QEMU Bridge Helper
51 #define DEFAULT_ACL_FILE CONFIG_QEMU_CONFDIR "/bridge.conf"
71 "Usage: qemu-bridge-helper [--use-vnet] --br=bridge --fd=unixfd\n"); in usage()
242 const char *bridge = NULL; in main() local
269 bridge = &argv[index][5]; in main()
278 if (bridge == NULL || unixfd == -1) { in main()
282 if (strlen(bridge) >= IFNAMSIZ) { in main()
283 fprintf(stderr, "name `%s' too long: %zu\n", bridge, strlen(bridge)); in main()
297 /* validate bridge against acl -- default policy is to deny in main()
309 if (strcmp(bridge, acl_rule->iface) == 0) { in main()
317 if (strcmp(bridge, acl_rule->iface) == 0) { in main()
363 /* get the mtu of the bridge */ in main()
364 prep_ifreq(&ifr, bridge); in main()
366 fprintf(stderr, "failed to get mtu of bridge `%s': %s\n", in main()
367 bridge, strerror(errno)); in main()
375 /* set the mtu of the interface based on the bridge */ in main()
386 * the bridge. Set MAC address to a high value so that it doesn't in main()
387 * affect the MAC address of the bridge. in main()
403 /* add the interface to the bridge */ in main()
404 prep_ifreq(&ifr, bridge); in main()
418 fprintf(stderr, "failed to add interface `%s' to bridge `%s': %s\n", in main()
419 iface, bridge, strerror(errno)); in main()