aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:13:06 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:21 -0500
commit1a908358d8fe92b1e73073a16696a9ba86441c1a (patch)
treea30e40662ab4fbb496a0864cefd3175695b54476
parentbf73f39649a12e03e8aa0c49b193ab78ef253b5c (diff)
downloadslirp-1a908358d8fe92b1e73073a16696a9ba86441c1a.zip
slirp-1a908358d8fe92b1e73073a16696a9ba86441c1a.tar.gz
slirp-1a908358d8fe92b1e73073a16696a9ba86441c1a.tar.bz2
rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--ip.h6
-rw-r--r--slirp_config.h2
-rw-r--r--tcp.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/ip.h b/ip.h
index e14a633..84080fa 100644
--- a/ip.h
+++ b/ip.h
@@ -33,7 +33,7 @@
#ifndef _IP_H_
#define _IP_H_
-#ifdef WORDS_BIGENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
#ifndef NTOHL
#define NTOHL(d)
#endif
@@ -73,7 +73,7 @@ typedef u_int32_t n_long; /* long as received from the net */
* Structure of an internet header, naked of options.
*/
struct ip {
-#ifdef WORDS_BIGENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
u_int ip_v : 4, /* version */
ip_hl : 4; /* header length */
#else
@@ -139,7 +139,7 @@ struct ip_timestamp {
u_int8_t ipt_code; /* IPOPT_TS */
u_int8_t ipt_len; /* size of structure (variable) */
u_int8_t ipt_ptr; /* index of current entry */
-#ifdef WORDS_BIGENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
u_int ipt_oflw : 4, /* overflow counter */
ipt_flg : 4; /* flags, see below */
#else
diff --git a/slirp_config.h b/slirp_config.h
index bc2dfd9..f97c3f9 100644
--- a/slirp_config.h
+++ b/slirp_config.h
@@ -84,7 +84,7 @@
#undef HAVE_SYS_BITYPES_H
/* Define if the machine is big endian */
-//#undef WORDS_BIGENDIAN
+//#undef HOST_WORDS_BIGENDIAN
/* Define if your sprintf returns char * instead of int */
#undef BAD_SPRINTF
diff --git a/tcp.h b/tcp.h
index 7a5880a..2f994e2 100644
--- a/tcp.h
+++ b/tcp.h
@@ -50,7 +50,7 @@ struct tcphdr {
u_int16_t th_dport; /* destination port */
tcp_seq th_seq; /* sequence number */
tcp_seq th_ack; /* acknowledgement number */
-#ifdef WORDS_BIGENDIAN
+#ifdef HOST_WORDS_BIGENDIAN
u_int th_off : 4, /* data offset */
th_x2 : 4; /* (unused) */
#else