patch-2.1.34 linux/include/linux/atalk.h
Next file: linux/include/linux/binfmts.h
Previous file: linux/include/asm-sparc64/winmacro.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Apr 14 11:43:06 1997
- Orig file:
v2.1.33/linux/include/linux/atalk.h
- Orig date:
Sun Jan 19 05:47:26 1997
diff -u --recursive --new-file v2.1.33/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