From 91f6b0a69aa81f0e522942cdcfc383cf8c66e2c8 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Tue, 12 Nov 1996 22:02:54 +0000 Subject: [PATCH] Fix endian-ness problem in bitfield. Pointed-out-by: Denis DeLaRoca --- mbone/sdr/files/patch-ac | 27 +++++++++++++++++++++++++++ net/sdr/files/patch-ac | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 mbone/sdr/files/patch-ac create mode 100644 net/sdr/files/patch-ac diff --git a/mbone/sdr/files/patch-ac b/mbone/sdr/files/patch-ac new file mode 100644 index 000000000000..d7a08664be82 --- /dev/null +++ b/mbone/sdr/files/patch-ac @@ -0,0 +1,27 @@ +Index: src/sdr.h +=================================================================== +RCS file: /tilde/fenner/conf/sdr/cvs/sdr/src/sdr.h,v +retrieving revision 1.7 +diff -c -r1.7 sdr.h +*** 1.7 1996/11/12 17:33:22 +--- sdr.h 1996/11/12 17:39:10 +*************** +*** 147,156 **** +--- 147,163 ---- + }; + + struct sap_header { ++ #if BYTE_ORDER == BIG_ENDIAN + u_int version:3; + u_int type:3; + u_int enc:1; + u_int compress:1; ++ #else ++ u_int compress:1; ++ u_int enc:1; ++ u_int type:3; ++ u_int version:3; ++ #endif + u_int authlen:8; + u_int msgid:16; + u_int src; diff --git a/net/sdr/files/patch-ac b/net/sdr/files/patch-ac new file mode 100644 index 000000000000..d7a08664be82 --- /dev/null +++ b/net/sdr/files/patch-ac @@ -0,0 +1,27 @@ +Index: src/sdr.h +=================================================================== +RCS file: /tilde/fenner/conf/sdr/cvs/sdr/src/sdr.h,v +retrieving revision 1.7 +diff -c -r1.7 sdr.h +*** 1.7 1996/11/12 17:33:22 +--- sdr.h 1996/11/12 17:39:10 +*************** +*** 147,156 **** +--- 147,163 ---- + }; + + struct sap_header { ++ #if BYTE_ORDER == BIG_ENDIAN + u_int version:3; + u_int type:3; + u_int enc:1; + u_int compress:1; ++ #else ++ u_int compress:1; ++ u_int enc:1; ++ u_int type:3; ++ u_int version:3; ++ #endif + u_int authlen:8; + u_int msgid:16; + u_int src;