mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
07ffed16e3
Port changes: * Add license * Group USEx section * Remove CONFIGURE_ARGS * Use option helpers instead of .if/.else PR: 226885 Submitted by: Artyom Davidov <ard_1@mail.ru>
15 lines
787 B
Plaintext
15 lines
787 B
Plaintext
# 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 *) (void *) 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]"),
|