git://git.onelab.eu
/
ipfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
integrated
[ipfw.git]
/
dummynet2
/
include
/
netinet
/
ip.h
diff --git
a/dummynet2/include/netinet/ip.h
b/dummynet2/include/netinet/ip.h
index
e88551f
..
c9da4d8
100644
(file)
--- a/
dummynet2/include/netinet/ip.h
+++ b/
dummynet2/include/netinet/ip.h
@@
-4,7
+4,8
@@
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#if defined(__BIG_ENDIAN)
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321
#if defined(__BIG_ENDIAN)
-#error we are in bigendian
+#define BYTE_ORDER BIG_ENDIAN
+//#warning we are in bigendian
#elif defined(__LITTLE_ENDIAN)
//#warning we are in littleendian
#define BYTE_ORDER LITTLE_ENDIAN
#elif defined(__LITTLE_ENDIAN)
//#warning we are in littleendian
#define BYTE_ORDER LITTLE_ENDIAN
@@
-43,4
+44,6
@@
struct ip {
struct in_addr ip_src,ip_dst; /* source and dest address */
} __packed __aligned(4);
struct in_addr ip_src,ip_dst; /* source and dest address */
} __packed __aligned(4);
+#define IPTOS_LOWDELAY 0x10
+
#endif /* _NETINET_IP_H_ */
#endif /* _NETINET_IP_H_ */