svn commit: r305275 - in head/net/ptpd2: . files
Steven Kreuzer
skreuzer at FreeBSD.org
Thu Oct 4 19:38:05 UTC 2012
Author: skreuzer
Date: Thu Oct 4 19:38:04 2012
New Revision: 305275
URL: http://svn.freebsd.org/changeset/ports/305275
Log:
Patch binary so that Layer 2 Virtual LAN using 802.1Q are
recognized as valid interface types
Added:
head/net/ptpd2/files/patch-src-dep-net.c (contents, props changed)
Modified:
head/net/ptpd2/Makefile
Modified: head/net/ptpd2/Makefile
==============================================================================
--- head/net/ptpd2/Makefile Thu Oct 4 18:47:53 2012 (r305274)
+++ head/net/ptpd2/Makefile Thu Oct 4 19:38:04 2012 (r305275)
@@ -7,6 +7,7 @@
PORTNAME= ptpd
DISTVERSION= 2.2.2
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF
Added: head/net/ptpd2/files/patch-src-dep-net.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/ptpd2/files/patch-src-dep-net.c Thu Oct 4 19:38:04 2012 (r305275)
@@ -0,0 +1,21 @@
+--- dep/net.c.orig
++++ dep/net.c
+@@ -322,10 +322,14 @@
+ return FALSE;
+ }
+ /* check that the interface TYPE is OK */
+- if (((struct sockaddr_dl *)ifh->ifa_addr)->sdl_type != IFT_ETHER) {
+- ERROR("\"%s\" is not an ethernet interface!\n", ifh->ifa_name);
+- return FALSE;
+- }
++ switch (((struct sockaddr_dl *)ifh->ifa_addr)->sdl_type) {
++ case IFT_ETHER:
++ case IFT_L2VLAN:
++ break;
++ default:
++ ERROR("\"%s\" is not an ethernet interface!\n", ifh->ifa_name);
++ return FALSE;
++ }
+ DBG("==> %s %s %s\n", ifv4->ifa_name,
+ inet_ntoa(((struct sockaddr_in *)ifv4->ifa_addr)->sin_addr),
+ ether_ntoa((struct ether_addr *)
More information about the svn-ports-head
mailing list