aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/docsis/files
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-07-18 05:02:57 +0000
committerPatrick Li <pat@FreeBSD.org>2002-07-18 05:02:57 +0000
commiteb50c3560f883e6cf0ca2f044cf7fbf48af27ea9 (patch)
tree4cfa1eadec2b8c864525d0b9fad91c5026090b70 /net-mgmt/docsis/files
parent6d933eea414383a7d22a731347e1abb41cade5fa (diff)
downloadports-eb50c3560f883e6cf0ca2f044cf7fbf48af27ea9.tar.gz
ports-eb50c3560f883e6cf0ca2f044cf7fbf48af27ea9.zip
Add new port net/docsis: DOCSIS(tm) binary configuration file encoder/decoder
PR: ports/40233 Submitted by: James E. Flemer <jflemer@acm.jhu.edu>
Notes
Notes: svn path=/head/; revision=63167
Diffstat (limited to 'net-mgmt/docsis/files')
-rw-r--r--net-mgmt/docsis/files/patch-Makefile20
-rw-r--r--net-mgmt/docsis/files/patch-docsis_decode.c11
-rw-r--r--net-mgmt/docsis/files/patch-docsis_snmp.c10
3 files changed, 41 insertions, 0 deletions
diff --git a/net-mgmt/docsis/files/patch-Makefile b/net-mgmt/docsis/files/patch-Makefile
new file mode 100644
index 000000000000..b57482e32afc
--- /dev/null
+++ b/net-mgmt/docsis/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- Makefile.orig Wed Feb 13 14:09:52 2002
++++ Makefile Thu Jul 18 00:11:49 2002
+@@ -1,4 +1,3 @@
+-CC = gcc
+ DEFS = -DYY_NO_UNPUT -DDEBUG
+ #
+ # We assume ucd-snmp is installed in /opt/ucd-snmp-4.2. If not, replace with
+@@ -7,8 +6,10 @@
+ # -lcrypto is OpenSSL.
+ #
+ # CFLAGS = -g -Wall -I/usr/local/include
+-CFLAGS = -g -Wall -I/opt/ucd-snmp-4.2/include
+-LIBS = -L/opt/ucd-snmp-4.2/lib -lsnmp -lcrypto -lnsl -lfl -lm
++CFLAGS += -g -Wall -I${LOCALBASE}/include
++LIBS += -L${LOCALBASE}/lib -lsnmp -lcrypto -lfl -lm
++
++all: docsis
+
+ docsis: Makefile docsis_decode.o docsis_yy.o docsis_main.o md5.o hmac_md5.o docsis_snmp.o ethermac.h ethermac.o version.h docsis_encode.o
+ $(CC) $(CFLAGS) $(DEFS) -g -o docsis docsis_main.o docsis_encode.o docsis_decode.o docsis_yy.o md5.o hmac_md5.o docsis_snmp.o ethermac.o $(LIBS)
diff --git a/net-mgmt/docsis/files/patch-docsis_decode.c b/net-mgmt/docsis/files/patch-docsis_decode.c
new file mode 100644
index 000000000000..ea2184c0fa84
--- /dev/null
+++ b/net-mgmt/docsis/files/patch-docsis_decode.c
@@ -0,0 +1,11 @@
+--- docsis_decode.c.orig Fri Jul 5 14:54:11 2002
++++ docsis_decode.c Fri Jul 5 14:55:31 2002
+@@ -47,7 +47,7 @@
+ memset( &helper, 0,sizeof(unsigned int));
+ memcpy( &helper, tlvbuf+2, sizeof(unsigned int));
+
+- printf ( "%s %u;\n", sym->sym_ident, ntohl(helper));
++ printf ( "%s %u;\n", sym->sym_ident, (unsigned int)ntohl(helper));
+ }
+
+ void decode_ushort (unsigned char *tlvbuf, symbol_type *sym)
diff --git a/net-mgmt/docsis/files/patch-docsis_snmp.c b/net-mgmt/docsis/files/patch-docsis_snmp.c
new file mode 100644
index 000000000000..d7c6b08942fc
--- /dev/null
+++ b/net-mgmt/docsis/files/patch-docsis_snmp.c
@@ -0,0 +1,10 @@
+--- docsis_snmp.c.orig Fri Jul 5 14:56:11 2002
++++ docsis_snmp.c Fri Jul 5 14:56:53 2002
+@@ -165,6 +165,7 @@
+ if (snmp_set_var_objid(vp, objid, vp->name_length))
+ return -1;
+
++ badtype = 0;
+ len = PACKET_LENGTH;
+ switch((short)vp->type){
+ case ASN_INTEGER: