summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
diff options
context:
space:
mode:
authorNikhil Chandru Rao2006-08-08 05:42:30 +0200
committerNikhil Chandru Rao2006-08-08 05:42:30 +0200
commitd2bdf815050ce7f394ef7f860f746ccf894fe787 (patch)
treec70c89af6c574b8ac4f62d768d1c114325424791 /src/include/gpxe
parentAdded retransmissions to TCP (diff)
downloadipxe-d2bdf815050ce7f394ef7f860f746ccf894fe787.tar.gz
ipxe-d2bdf815050ce7f394ef7f860f746ccf894fe787.tar.xz
ipxe-d2bdf815050ce7f394ef7f860f746ccf894fe787.zip
Removed some bugs in TCP
Diffstat (limited to 'src/include/gpxe')
-rw-r--r--src/include/gpxe/ip6.h3
-rw-r--r--src/include/gpxe/tcp.h5
2 files changed, 4 insertions, 4 deletions
diff --git a/src/include/gpxe/ip6.h b/src/include/gpxe/ip6.h
index 1ddba0a95..69cbd81bb 100644
--- a/src/include/gpxe/ip6.h
+++ b/src/include/gpxe/ip6.h
@@ -11,7 +11,8 @@
/* IP6 constants */
-#define IP6_VER 6
+#define IP6_VERSION 0x6
+#define IP6_HOP_LIMIT 64
/* IP6 header */
diff --git a/src/include/gpxe/tcp.h b/src/include/gpxe/tcp.h
index ca926a5c2..b7f0accaa 100644
--- a/src/include/gpxe/tcp.h
+++ b/src/include/gpxe/tcp.h
@@ -159,7 +159,6 @@ struct tcp_connection {
struct list_head list; /* List of TCP connections */
struct pk_buff *tx_pkb; /* Transmit packet buffer */
struct retry_timer timer; /* Retransmission timer */
- int retransmits; /* Number of retransmits */
struct tcp_operations *tcp_op; /* Operations table for connection */
};
@@ -198,10 +197,10 @@ struct tcp_header {
/**
* TCP flags
*/
-#define TCP_RST 0x20
+#define TCP_URG 0x20
#define TCP_ACK 0x10
#define TCP_PSH 0x08
-#define TCP_URG 0x04
+#define TCP_RST 0x04
#define TCP_SYN 0x02
#define TCP_FIN 0x01