ports/173543: ucarp / vlan interfaces

Ingo Flaschberger if at FreeBSD.org
Sun Nov 11 01:10:01 UTC 2012


>Number:         173543
>Category:       ports
>Synopsis:       ucarp / vlan interfaces
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 11 01:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ingo Flaschberger
>Release:        FreeBSD 9.1
>Organization:
crossip communications gmbh
>Environment:
9.1-PRERELEASE
>Description:
Using ucarp with a vlan interface results in followring problem:
[ERROR] Invalid media / hardware address for [vlan10]
[ERROR] Unable to find MAC address of [vlan10]
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- src/fillmac.c.orig	2007-07-04 15:34:59.000000000 +0200
+++ src/fillmac.c	2012-11-11 01:50:29.000000000 +0100
@@ -86,7 +86,8 @@
             if (strcmp(ifa->ifa_name, interface) == 0 &&
                 ifa->ifa_addr->sa_family == AF_LINK) {
                 sadl = (struct sockaddr_dl *) ifa->ifa_addr;
-                if (sadl == NULL || sadl->sdl_type != IFT_ETHER ||
+                if (sadl == NULL || ((sadl->sdl_type != IFT_ETHER) && 
+                    (sadl->sdl_type != IFT_L2VLAN)) ||
                     sadl->sdl_alen <= 0) {
                     logfile(LOG_ERR,
                             _("Invalid media / hardware address for [%s]"),


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list