search for: brname

Displaying 20 results from an estimated 20 matches for "brname".

Did you mean: br_name
2007 Jul 31
1
[Bridge] brctl uses incorrect sysfs path
...t;, bridge, name); f = fopen(path, "w"); if (f) { diff --git a/libbridge/libbridge_init.c b/libbridge/libbridge_init.c index e2eab77..f31addc 100644 --- a/libbridge/libbridge_init.c +++ b/libbridge/libbridge_init.c @@ -185,13 +185,18 @@ int br_foreach_port(const char *brname, int i, count; struct dirent **namelist; char path[SYSFS_PATH_MAX]; + struct stat st; - snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/brport", brname); + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/brif", brname);...
2015 Sep 10
1
[PATCH] launch: libvirt: Better error when bridge / virbr0 doesn't exist (RHBZ#1262127).
...virt.c @@ -181,6 +181,7 @@ static int is_blk (const char *path); static void ignore_errors (void *ignore, virErrorPtr ignore2); static void set_socket_create_context (guestfs_h *g); static void clear_socket_create_context (guestfs_h *g); +static int check_bridge_exists (guestfs_h *g, const char *brname); #if HAVE_LIBSELINUX static void selinux_warning (guestfs_h *g, const char *func, const char *selinux_op, const char *data); @@ -393,6 +394,9 @@ launch_libvirt (guestfs_h *g, void *datav, const char *libvirt_uri) } guestfs_pop_error_handler (g); + if (g->enable_network && c...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...err, "expect on/off for argument\n"); + return 1; + } + + err = br_set_vepa_mode(argv[1], vepa); + if (err) + fprintf(stderr, "set vepa mode failed: %s\n", + strerror(errno)); + return err != 0; +} + +static int br_cmd_vepauplink(int argc, char *const* argv) +{ + const char *brname = *++argv; + const char *ifname = *++argv; + int err; + + if (if_nametoindex(ifname) == 0) { + fprintf(stderr, "interface %s does not exist!\n", + ifname); + return 1; + } else if (if_nametoindex(brname) == 0) { + fprintf(stderr, "bridge %s does not exist!\n", + brname);...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...err, "expect on/off for argument\n"); + return 1; + } + + err = br_set_vepa_mode(argv[1], vepa); + if (err) + fprintf(stderr, "set vepa mode failed: %s\n", + strerror(errno)); + return err != 0; +} + +static int br_cmd_vepauplink(int argc, char *const* argv) +{ + const char *brname = *++argv; + const char *ifname = *++argv; + int err; + + if (if_nametoindex(ifname) == 0) { + fprintf(stderr, "interface %s does not exist!\n", + ifname); + return 1; + } else if (if_nametoindex(brname) == 0) { + fprintf(stderr, "bridge %s does not exist!\n", + brname);...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...err, "expect on/off for argument\n"); + return 1; + } + + err = br_set_vepa_mode(argv[1], vepa); + if (err) + fprintf(stderr, "set vepa mode failed: %s\n", + strerror(errno)); + return err != 0; +} + +static int br_cmd_vepauplink(int argc, char *const* argv) +{ + const char *brname = *++argv; + const char *ifname = *++argv; + int err; + + if (if_nametoindex(ifname) == 0) { + fprintf(stderr, "interface %s does not exist!\n", + ifname); + return 1; + } else if (if_nametoindex(brname) == 0) { + fprintf(stderr, "bridge %s does not exist!\n", + brname);...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...tl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..d37e99c 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -395,6 +395,42 @@ static int br_cmd_showmacs(int argc, char *const* argv) return 0; } +static int br_cmd_hairpin(int argc, char *const* argv) +{ + int hairpin, err; + const char *brname = *++argv; + const char *ifname = *++argv; + const char *hpmode = *++argv; + + if (!strcmp(hpmode, "on") || !strcmp(hpmode, "yes") + || !strcmp(hpmode, "1")) + hairpin = 1; + else if (!strcmp(hpmode, "off") || !strcmp(hpmode, "no") + || !strc...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...tl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..d37e99c 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -395,6 +395,42 @@ static int br_cmd_showmacs(int argc, char *const* argv) return 0; } +static int br_cmd_hairpin(int argc, char *const* argv) +{ + int hairpin, err; + const char *brname = *++argv; + const char *ifname = *++argv; + const char *hpmode = *++argv; + + if (!strcmp(hpmode, "on") || !strcmp(hpmode, "yes") + || !strcmp(hpmode, "1")) + hairpin = 1; + else if (!strcmp(hpmode, "off") || !strcmp(hpmode, "no") + || !strc...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...tl/brctl_cmd.c b/brctl/brctl_cmd.c index c93dd55..d37e99c 100644 --- a/brctl/brctl_cmd.c +++ b/brctl/brctl_cmd.c @@ -395,6 +395,42 @@ static int br_cmd_showmacs(int argc, char *const* argv) return 0; } +static int br_cmd_hairpin(int argc, char *const* argv) +{ + int hairpin, err; + const char *brname = *++argv; + const char *ifname = *++argv; + const char *hpmode = *++argv; + + if (!strcmp(hpmode, "on") || !strcmp(hpmode, "yes") + || !strcmp(hpmode, "1")) + hairpin = 1; + else if (!strcmp(hpmode, "off") || !strcmp(hpmode, "no") + || !strc...
2007 Apr 18
5
[Bridge] RFC: [PATCH] bridge vlan integration
Hi, The attached patches enables the bridge to filter and forward packets according to their IEEE 802.1q headers. The goals behind this change include : - Enable running STP on 802.1q tagged networks. STP packets must be untagged. It isn't obvious how else to enable STP with the current bridge and vlan code. - Add native support for an untagged vlan. Currently an untagged vlan can
2007 Apr 18
0
[Bridge] libbridge<->sysfs interface - some bugs
...000000000 +0300 +++ /Arrow75/CN3XXX-SDK/linux/embedded_rootfs/build/bridge-utils-1.2/libbrid ge/libbridge_init.c 2007-01-01 07:35:25.610075300 +0200 @@ -186,7 +186,7 @@ struct dirent **namelist; char path[SYSFS_PATH_MAX]; - snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/brport", brname); + snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/brif", brname); count = scandir(path, &namelist, 0, alphasort); if (count < 0) return old_foreach_port(brname, iterator, arg);
2007 Apr 18
1
[Bridge] patch for a message bug
...19:31:23.000000000 +0200 +++ bridge-utils-1.1/brctl/brctl_cmd.c 2006-08-26 19:31:49.000000000 +0200 @@ -99,7 +99,7 @@ if (if_nametoindex(ifname) == 0) fprintf(stderr, "interface %s does not exist!\n", ifname); else - fprintf(stderr, "bridge %s does not exist\n", brname); + fprintf(stderr, "bridge %s does not exist!\n", brname); break; case EBUSY: @@ -139,8 +139,10 @@ continue; case ENODEV: - fprintf(stderr, "interface %s does not exist!\n", - ifname); + if (if_nametoindex(ifname) == 0) + fprintf(stderr, "in...
2018 Dec 06
0
[PATCH v2] Revert "launch: libvirt: Use qemu-bridge-helper to implement a full network (RHBZ#1148012)."
...ion */ @@ -167,7 +166,6 @@ static int is_blk (const char *path); static void ignore_errors (void *ignore, virErrorPtr ignore2); static void set_socket_create_context (guestfs_h *g); static void clear_socket_create_context (guestfs_h *g); -static int check_bridge_exists (guestfs_h *g, const char *brname); #if HAVE_LIBSELINUX static void selinux_warning (guestfs_h *g, const char *func, const char *selinux_op, const char *data); @@ -448,17 +446,8 @@ launch_libvirt (guestfs_h *g, void *datav, const char *libvirt_uri) guestfs_get_backend_setting (g, "internal_libvirt_imagelabel");...
2015 Mar 03
1
Re: QEMU interface type=ethernet
2015-03-02 23:41 GMT+03:00 Brian Rak <brak@gameservers.com>: > In IRC, I was directed to this patch: > https://www.redhat.com/archives/libvir-list/2015-February/msg01212.html ... > which does exactly what I was looking for. It doesn't build cleanly in that > state, but it's pretty trivial fix (needs actualType added to the function > definition for
2018 Dec 06
2
[PATCH v2] Revert "launch: libvirt: Use qemu-bridge-helper to implement a full network (RHBZ#1148012)."
Let's actually compile and test the patch this time, rather than trusting the RHEL 7.6 patch to apply directly to head ... Rich.
2014 May 28
1
problem with bond/team network interfaces
Hello, I have VM attached to bridge br0. VM can see the network (ping works) when the bridge has ethernet interfaces. But when I create bond or team device and attach it to a bridge instead of eth interface, VM does not ping anymore. Any ideas why? Thanks, Nerijus
2016 Aug 02
0
[PATCH] launch: libvirt: Autodetect backing format for drive overlays (RHBZ#1354335).
...+++++++-------------------- 1 file changed, 56 insertions(+), 34 deletions(-) diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c index e8b6e27..3b53a3a 100644 --- a/src/launch-libvirt.c +++ b/src/launch-libvirt.c @@ -162,6 +162,50 @@ static int check_bridge_exists (guestfs_h *g, const char *brname); static void selinux_warning (guestfs_h *g, const char *func, const char *selinux_op, const char *data); #endif +/* Return drv->src.format, but if it is NULL, autodetect the format. + * + * libvirt has disabled the feature of detecting the disk format, + * unless the administrator sets allo...
2015 Apr 26
3
How does the libvirt deal with the vnet mac address
...d the ethX device in the VM will totally different . so I think that libvirt must do something about the mac address handling, could you please kindly tell me something about this ? I have found a function in libvirt-0.10.2.8\src\util\ virnetdevtap.c int virNetDevTapCreateInBridgePort(const char *brname, char **ifname, const virMacAddrPtr macaddr, const unsigned char *vmuuid, int *tapfd, virNetDevVPortProfilePtr virtPortProfi...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...perrorf (g, _("%s:%d: error constructing libvirt XML near call to \"%s\""), \ + __FILE__, __LINE__, (fn)); static xmlChar * construct_libvirt_xml (guestfs_h *g, const struct libvirt_xml_params *params) @@ -2023,7 +2023,7 @@ check_bridge_exists (guestfs_h *g, const char *brname) "\n" "You may also need to allow the bridge in /etc/qemu/bridge.conf.\n" "For further information see guestfs(3)."), - brname); + brname); return -1; } diff --git a/src/launch-uml.c b/src/launch-uml.c index 8171ff0....
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...th: could not convert '%s' to absolute path"), + perrorf (g, _("realpath: could not convert ‘%s’ to absolute path"), drv->src.u.path); return -1; } @@ -2036,7 +2036,7 @@ check_bridge_exists (guestfs_h *g, const char *brname) return 0; error (g, - _("bridge '%s' not found. Try running:\n" + _("bridge ‘%s’ not found. Try running:\n" "\n" " brctl show\n" "\n" diff --git a/lib/launch-uml.c b/lib/launc...