diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/tcp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/ipxe/tcp.h b/src/include/ipxe/tcp.h index 197712b11..7084af60e 100644 --- a/src/include/ipxe/tcp.h +++ b/src/include/ipxe/tcp.h @@ -309,6 +309,16 @@ struct tcp_options { #define TCP_MSL ( 2 * 60 * TICKS_PER_SEC ) /** + * TCP maximum header length + * + */ +#define TCP_MAX_HEADER_LEN \ + ( MAX_LL_NET_HEADER_LEN + \ + sizeof ( struct tcp_header ) + \ + sizeof ( struct tcp_mss_option ) + \ + sizeof ( struct tcp_timestamp_padded_option ) ) + +/** * Compare TCP sequence numbers * * @v seq1 Sequence number 1 |
