From a918abc036044c265f310a08677c4cfc67fb8227 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 May 2005 12:07:47 +0000 Subject: Split TCP code out into proto/tcp.c --- src/include/ip.h | 2 ++ src/include/tcp.h | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/ip.h b/src/include/ip.h index 85c299ba9..5c9b7271b 100644 --- a/src/include/ip.h +++ b/src/include/ip.h @@ -18,4 +18,6 @@ struct iphdr { struct in_addr dest; } PACKED; +extern uint16_t tcpudpchksum(struct iphdr *ip); + #endif /* _IP_H */ diff --git a/src/include/tcp.h b/src/include/tcp.h index f570d8ef5..93e1485e8 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 */ -- cgit v1.2.3-55-g7522