mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Split TCP code out into proto/tcp.c
This commit is contained in:
@@ -18,4 +18,6 @@ struct iphdr {
|
||||
struct in_addr dest;
|
||||
} PACKED;
|
||||
|
||||
extern uint16_t tcpudpchksum(struct iphdr *ip);
|
||||
|
||||
#endif /* _IP_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 */
|
||||
|
||||
Reference in New Issue
Block a user