ports/net/ucarp/files/patch-l2vlan
Stefan Walter 73b9d6ba84 - Fix error with VLAN interfaces on recent FreeBSD versions [1]
- Update port's infrastructure to new OPTIONS [2]
- Make portlint happy with filenames in "files/" [2]

PR:		173543
Submitted by:	Ingo Flaschberger <if@FreeBSD.org>
Patch by:	Ingo Flaschberger <if@FreeBSD.org> [1]
		"Alexey V. Degtyarev" <alexey@renatasystems.org> (maintainer) [2]
2013-04-28 22:31:32 +00:00

14 lines
778 B
Text

# http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/164060
# http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173543
--- 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]"),