Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2012 01:02:26 GMT
From:      Ingo Flaschberger <if@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173543: ucarp / vlan interfaces
Message-ID:  <201211110102.qAB12Q9f060325@red.freebsd.org>
Resent-Message-ID: <201211110110.qAB1A04R060796@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211110102.qAB12Q9f060325>