blob: 3d7ce87d7271bb7bc747f0b4ff0cd31543d4007a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
--- src/sdr.h.orig Wed May 21 22:06:02 1997
+++ src/sdr.h Wed May 21 22:10:05 1997
@@ -8,9 +8,6 @@
#include <winsock.h>
#else
#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <net/if.h>
#include <sys/ioctl.h>
#include <netdb.h>
#include <pwd.h>
@@ -18,6 +15,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
+#include <netinet/in.h>
+#include <net/if.h>
+#include <arpa/inet.h>
#include <arpa/nameser.h>
#include <resolv.h>
#ifdef AIX41
@@ -146,10 +146,17 @@
};
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;
|