svn commit: r392296 - in head/net/dhcprelay: . files
Thomas Zander
riggs at FreeBSD.org
Thu Jul 16 14:52:13 UTC 2015
Author: riggs
Date: Thu Jul 16 14:52:11 2015
New Revision: 392296
URL: https://svnweb.freebsd.org/changeset/ports/392296
Log:
Fix runtime error: Packet type identification on big-endian
machines which prevented it from working correctly on e.g.
MIPS-based routers.
PR: 201382
Submitted by: kp at freebsd.org
Approved by: edwin at mavetju.org (maintainer)
MFH: 2015Q3
Added:
head/net/dhcprelay/files/patch-dhcprelay.c (contents, props changed)
Modified:
head/net/dhcprelay/Makefile
head/net/dhcprelay/files/patch-Makefile
Modified: head/net/dhcprelay/Makefile
==============================================================================
--- head/net/dhcprelay/Makefile Thu Jul 16 12:31:22 2015 (r392295)
+++ head/net/dhcprelay/Makefile Thu Jul 16 14:52:11 2015 (r392296)
@@ -3,7 +3,7 @@
PORTNAME= dhcprelay
PORTVERSION= 1.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= http://www.mavetju.org/download/
Modified: head/net/dhcprelay/files/patch-Makefile
==============================================================================
--- head/net/dhcprelay/files/patch-Makefile Thu Jul 16 12:31:22 2015 (r392295)
+++ head/net/dhcprelay/files/patch-Makefile Thu Jul 16 14:52:11 2015 (r392296)
@@ -1,5 +1,5 @@
---- Makefile.orig Tue Nov 15 18:25:30 2005
-+++ Makefile Tue Nov 15 18:25:59 2005
+--- Makefile.orig 2006-03-21 02:46:28 UTC
++++ Makefile
@@ -1,8 +1,10 @@
+all: dhcprelay
+
Added: head/net/dhcprelay/files/patch-dhcprelay.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/dhcprelay/files/patch-dhcprelay.c Thu Jul 16 14:52:11 2015 (r392296)
@@ -0,0 +1,11 @@
+--- dhcprelay.c.orig 2006-03-21 02:46:28 UTC
++++ dhcprelay.c
+@@ -186,7 +186,7 @@ void pcap_callback(u_char *user, const s
+ printf(" %d",eh->ether_type);
+ }
+ // check for IPv4 packets
+- if (eh->ether_type!=8) {
++ if (eh->ether_type != htons(0x800)) {
+ if (DEBUG>1) printf("\n");
+ return;
+ }
More information about the svn-ports-head
mailing list