Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
fcoe-utils
0033-fipvlan-suppress-warning-interface-already...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0033-fipvlan-suppress-warning-interface-already-exists.patch of Package fcoe-utils
From 798a5ff4a205fa26d37447ff77fc27861103440a Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Mon, 12 May 2014 14:59:13 +0200 Subject: fipvlan: suppress warning 'interface already exists' When fipvlan is called for just the parent interface we should not select the vlan interface, too, otherwise we'll be getting those annoying warning messages. Signed-off-by: Hannes Reinecke <hare@suse.de> --- fipvlan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fipvlan.c b/fipvlan.c index 7202f03..163d21e 100644 --- a/fipvlan.c +++ b/fipvlan.c @@ -451,7 +451,8 @@ static void rtnl_recv_newlink(struct nlmsghdr *nh) int i, iff_selected = 0; for (i = 0; i < config.namec; i++) { - if (!strcmp(iff->ifname, config.namev[i])) + if (!strncmp(iff->ifname, config.namev[i], + strlen(config.namev[i]))) iff_selected = 1; } if (!iff_selected) { -- 1.7.12.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor