summaryrefslogtreecommitdiffstats
path: root/src/include/tcp.h
diff options
context:
space:
mode:
authorMichael Brown2005-05-02 14:07:47 +0200
committerMichael Brown2005-05-02 14:07:47 +0200
commita918abc036044c265f310a08677c4cfc67fb8227 (patch)
tree041c3fcb87a82d158b3a4c9551a4342e816480c2 /src/include/tcp.h
parentMoved DOWNLOAD_PROTO_XXX options to config.h (diff)
downloadipxe-a918abc036044c265f310a08677c4cfc67fb8227.tar.gz
ipxe-a918abc036044c265f310a08677c4cfc67fb8227.tar.xz
ipxe-a918abc036044c265f310a08677c4cfc67fb8227.zip
Split TCP code out into proto/tcp.c
Diffstat (limited to 'src/include/tcp.h')
-rw-r--r--src/include/tcp.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/tcp.h b/src/include/tcp.h
index f570d8ef..93e1485e 100644
--- a/src/include/tcp.h
+++ b/src/include/tcp.h
@@ -9,10 +9,6 @@
#define TCP_MIN_WINDOW (1500-TCP_MAX_HEADER)
#define TCP_MAX_WINDOW (65535-TCP_MAX_HEADER)
-
-#define MAX_URL 80
-
-
#define FIN 1
#define SYN 2
#define RST 4
@@ -32,4 +28,10 @@ struct tcphdr {
uint16_t urgent;
};
+extern int tcp_transaction ( unsigned long destip, unsigned int destsock,
+ void *ptr,
+ int (*send)(int len, void *buf, void *ptr),
+ int (*recv)(int len, const void *buf, void *ptr));
+
+
#endif /* _TCP_H */