iPXE
Data Structures | Defines | Functions
old_tcp.h File Reference

Go to the source code of this file.

Data Structures

struct  tcphdr

Defines

#define TCP_INITIAL_TIMEOUT   (3*TICKS_PER_SEC)
#define TCP_MAX_TIMEOUT   (60*TICKS_PER_SEC)
#define TCP_MIN_TIMEOUT   (TICKS_PER_SEC)
#define TCP_MAX_RETRY   10
#define TCP_MAX_HEADER   ((int)sizeof(struct iphdr)+64)
#define TCP_MIN_WINDOW   (1500-TCP_MAX_HEADER)
#define TCP_MAX_WINDOW   (65535-TCP_MAX_HEADER)
#define FIN   1
#define SYN   2
#define RST   4
#define PSH   8
#define ACK   16
#define URG   32

Functions

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))

Define Documentation

Definition at line 4 of file old_tcp.h.

#define TCP_MAX_TIMEOUT   (60*TICKS_PER_SEC)

Definition at line 5 of file old_tcp.h.

Definition at line 6 of file old_tcp.h.

#define TCP_MAX_RETRY   10

Definition at line 7 of file old_tcp.h.

#define TCP_MAX_HEADER   ((int)sizeof(struct iphdr)+64)

Definition at line 8 of file old_tcp.h.

#define TCP_MIN_WINDOW   (1500-TCP_MAX_HEADER)

Definition at line 9 of file old_tcp.h.

#define TCP_MAX_WINDOW   (65535-TCP_MAX_HEADER)

Definition at line 10 of file old_tcp.h.

#define FIN   1

Definition at line 12 of file old_tcp.h.

#define SYN   2

Definition at line 13 of file old_tcp.h.

#define RST   4

Definition at line 14 of file old_tcp.h.

#define PSH   8

Definition at line 15 of file old_tcp.h.

#define ACK   16

Definition at line 16 of file old_tcp.h.

#define URG   32

Definition at line 17 of file old_tcp.h.


Function Documentation

int tcp_transaction ( unsigned long  destip,
unsigned int  destsock,
void *  ptr,
int(*)(int len, void *buf, void *ptr)  send,
int(*)(int len, const void *buf, void *ptr)  recv 
)