summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-03-05 17:35:09 +0000
committerobrien <obrien@FreeBSD.org>2000-03-05 17:35:09 +0000
commit188f7072d6f7cbe26582e79324c82667fee4b9b2 (patch)
tree854dc9e78aa0219ec14bcf928dd7c6d4e39cb57c /net
parent9010b6b7334045ae1d4f03577428369772ec7ea8 (diff)
downloadFreeBSD-ports-188f7072d6f7cbe26582e79324c82667fee4b9b2.zip
FreeBSD-ports-188f7072d6f7cbe26582e79324c82667fee4b9b2.tar.gz
Apply patch from http://world.std.com/~bdc/projects/vaxen/VAX-netboot-HOWTO
(reworked by me) PR: 17086 Submitted by: Joel Sutton <jsutton@bbcon.com.au>
Diffstat (limited to 'net')
-rw-r--r--net/mopd/files/patch-put.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/net/mopd/files/patch-put.c b/net/mopd/files/patch-put.c
new file mode 100644
index 0000000..e797bb1
--- /dev/null
+++ b/net/mopd/files/patch-put.c
@@ -0,0 +1,50 @@
+--- common/put.c.orig Fri Aug 16 15:43:15 1996
++++ common/put.c Sun Mar 5 09:32:05 2000
+@@ -35,6 +35,9 @@
+ #include <sys/types.h>
+ #include <time.h>
+ #include "common/mopdef.h"
++#ifdef __FreeBSD__
++#include <osreldate.h>
++#endif
+
+ void
+ mopPutChar(pkt, index, value)
+@@ -137,10 +140,7 @@
+ mopPutChar (pkt, index, 0x00);
+ mopPutChar (pkt, index, 0x2b);
+ }
+-#if !defined(__FreeBSD__)
+- mopPutChar(pkt, index, (proto / 256));
+- mopPutChar(pkt, index, (proto % 256));
+-#else
++#if defined(__FreeBSD__) && __FreeBSD_version < 220000
+ if (trans == TRANS_8023) {
+ mopPutChar(pkt, index, (proto / 256));
+ mopPutChar(pkt, index, (proto % 256));
+@@ -148,6 +148,9 @@
+ mopPutChar(pkt, index, (proto % 256));
+ mopPutChar(pkt, index, (proto / 256));
+ }
++#else
++ mopPutChar(pkt, index, (proto / 256));
++ mopPutChar(pkt, index, (proto % 256));
+ #endif
+ if (trans == TRANS_ETHER)
+ mopPutShort(pkt, index, 0);
+@@ -170,12 +173,12 @@
+ break;
+ case TRANS_8023:
+ index = 12;
+-#if !defined(__FreeBSD__)
+- mopPutChar(pkt, &index, ((len - 14) / 256));
++#if defined(__FreeBSD__) && __FreeBSD_version < 220000
+ mopPutChar(pkt, &index, ((len - 14) % 256));
++ mopPutChar(pkt, &index, ((len - 14) / 256));
+ #else
+- mopPutChar(pkt, &index, ((len - 14) % 256));
+ mopPutChar(pkt, &index, ((len - 14) / 256));
++ mopPutChar(pkt, &index, ((len - 14) % 256));
+ #endif
+ break;
+ }
OpenPOWER on IntegriCloud