patch-2.0.30 linux/include/linux/atalk.h
Next file: linux/include/linux/blk.h
Previous file: linux/include/asm-i386/string.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Tue Apr 8 08:47:46 1997
- Orig file:
v2.0.29/linux/include/linux/atalk.h
- Orig date:
Sun Mar 24 22:58:21 1996
diff -u --recursive --new-file v2.0.29/linux/include/linux/atalk.h linux/include/linux/atalk.h
@@ -72,11 +72,15 @@
#ifdef __KERNEL__
+#include <asm/byteorder.h>
+
struct ddpehdr
{
- /* FIXME for bigendians */
- /*__u16 deh_pad:2,deh_hops:4,deh_len:10;*/
- __u16 deh_len:10,deh_hops:4,deh_pad:2;
+#ifdef __LITTLE_ENDIAN_BITFIELD
+ __u16 deh_len:10, deh_hops:4, deh_pad:2;
+#else
+ __u16 deh_pad:2, deh_hops:4, deh_len:10;
+#endif
__u16 deh_sum;
__u16 deh_dnet;
__u16 deh_snet;
@@ -93,8 +97,11 @@
struct ddpshdr
{
- /* FIXME for bigendians */
+#ifdef __LITTLE_ENDIAN_BITFIELD
__u16 dsh_len:10, dsh_pad:6;
+#else
+ __u16 dsh_pad:6, dsh_len:10;
+#endif
__u8 dsh_dport;
__u8 dsh_sport;
/* And netatalk apps expect to stick the type in themselves */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov