Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\tcp.h Create Date:2022-07-28 06:42:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Bound MSS / TSO packet size with the half of the window

Proto:static inline int tcp_bound_to_half_wnd(struct tcp_sock *tp, int pktsize)

Type:int

Parameter:

TypeParameterName
struct tcp_sock *tp
intpktsize
635  If Maximal window ever seen from peer > IPv4 (RFC1122, RFC2581) Then cutoff = Maximal window ever seen from peer >> 1
637  Else cutoff = Maximal window ever seen from peer
640  If cutoff && pktsize > cutoff Then Return max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, cutoff, 68U - Bytes of tcp header to send )
642  Else Return pktsize