patch-2.1.110 linux/include/linux/atalk.h

Next file: linux/include/linux/console.h
Previous file: linux/include/asm-sparc64/bitops.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/include/linux/atalk.h linux/include/linux/atalk.h
@@ -54,7 +54,7 @@
 {
 	struct device *dev;
 	struct at_addr address;		/* Our address */
-	int status;			/* What are we doing ?? */
+	int status;			/* What are we doing? */
 #define ATIF_PROBE	1		/* Probing for an address */
 #define ATIF_PROBE_FAIL	2		/* Probe collided */
 	struct netrange nets;		/* Associated direct netrange */
@@ -90,6 +90,20 @@
 	__u8	deh_dport;
 	__u8	deh_sport;
 	/* And netatalk apps expect to stick the type in themselves */
+};
+
+/*
+ *	Don't drop the struct into the struct above.  You'll get some
+ *	surprise padding.
+ */
+ 
+struct ddpebits
+{
+#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
 };
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov