svn commit: r417107 - in head/net/nload: . files

Emanuel Haupt ehaupt at FreeBSD.org
Sun Jun 19 09:44:22 UTC 2016


Author: ehaupt
Date: Sun Jun 19 09:44:21 2016
New Revision: 417107
URL: https://svnweb.freebsd.org/changeset/ports/417107

Log:
  Fix interface name fetching.
  
  PR:		210380
  Submitted by:	allanjude
  Obtained from:	OpenBSD ports

Added:
  head/net/nload/files/
  head/net/nload/files/patch-src_devreader-bsd.cpp   (contents, props changed)
Modified:
  head/net/nload/Makefile

Modified: head/net/nload/Makefile
==============================================================================
--- head/net/nload/Makefile	Sun Jun 19 09:13:51 2016	(r417106)
+++ head/net/nload/Makefile	Sun Jun 19 09:44:21 2016	(r417107)
@@ -3,6 +3,7 @@
 
 PORTNAME=	nload
 PORTVERSION=	0.7.4
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://www.roland-riegel.de/nload/ \
 		LOCAL/ehaupt

Added: head/net/nload/files/patch-src_devreader-bsd.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/nload/files/patch-src_devreader-bsd.cpp	Sun Jun 19 09:44:21 2016	(r417107)
@@ -0,0 +1,11 @@
+--- src/devreader-bsd.cpp.orig	2011-06-12 10:01:11 UTC
++++ src/devreader-bsd.cpp
+@@ -91,7 +91,7 @@ list<string> DevReaderBsd::findAllDevice
+         if(sdl->sdl_family != AF_LINK)
+             continue;
+         
+-        interfaceNames.push_back(string(sdl->sdl_data));
++        interfaceNames.push_back(string(sdl->sdl_data, sdl->sdl_nlen));
+     }
+ 
+     free(buf);


More information about the svn-ports-all mailing list