iPXE
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
b
d
i
p
s
t
u
v
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
include
old_tcp.h
Go to the documentation of this file.
1
#ifndef _TCP_H
2
#define _TCP_H
3
4
#define TCP_INITIAL_TIMEOUT (3*TICKS_PER_SEC)
5
#define TCP_MAX_TIMEOUT (60*TICKS_PER_SEC)
6
#define TCP_MIN_TIMEOUT (TICKS_PER_SEC)
7
#define TCP_MAX_RETRY 10
8
#define TCP_MAX_HEADER ((int)sizeof(struct iphdr)+64)
9
#define TCP_MIN_WINDOW (1500-TCP_MAX_HEADER)
10
#define TCP_MAX_WINDOW (65535-TCP_MAX_HEADER)
11
12
#define FIN 1
13
#define SYN 2
14
#define RST 4
15
#define PSH 8
16
#define ACK 16
17
#define URG 32
18
19
20
struct
tcphdr
{
21
uint16_t
src
;
22
uint16_t
dst
;
23
int32_t
seq
;
24
int32_t
ack
;
25
uint16_t
ctrl
;
26
uint16_t
window
;
27
uint16_t
chksum
;
28
uint16_t
urgent
;
29
};
30
31
extern
int
tcp_transaction
(
unsigned
long
destip,
unsigned
int
destsock,
32
void
*ptr,
33
int
(*
send
)(
int
len
,
void
*buf,
void
*ptr),
34
int
(*
recv
)(
int
len
,
const
void
*buf,
void
*ptr));
35
36
37
#endif
/* _TCP_H */
tcphdr::window
uint16_t window
Definition:
old_tcp.h:26
uint16_t
unsigned short uint16_t
Definition:
stdint.h:11
tcphdr::ctrl
uint16_t ctrl
Definition:
old_tcp.h:25
tcphdr::chksum
uint16_t chksum
Definition:
old_tcp.h:27
tcphdr::urgent
uint16_t urgent
Definition:
old_tcp.h:28
recv
struct arbelprm_recv_wqe recv
Definition:
arbel.h:11
tcphdr::seq
int32_t seq
Definition:
old_tcp.h:23
tcphdr
Definition:
old_tcp.h:20
tcphdr::src
uint16_t src
Definition:
old_tcp.h:21
tcp_transaction
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))
int32_t
signed int int32_t
Definition:
stdint.h:17
tcphdr::dst
uint16_t dst
Definition:
old_tcp.h:22
tcphdr::ack
int32_t ack
Definition:
old_tcp.h:24
len
uint32_t len
Length.
Definition:
ena.h:14
send
struct arbelprm_send_doorbell send
Definition:
arbel.h:11
Generated by
1.8.15