函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\tcp.h Create Date:2022-07-27 07:40:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Bound MSS / TSO packet size with the half of the window

函数原型:static inline int tcp_bound_to_half_wnd(struct tcp_sock *tp, int pktsize)

返回类型:int

参数:

类型参数名称
struct tcp_sock *tp
intpktsize
635  如果 Maximal window ever seen from peer 大于IPv4 (RFC1122, RFC2581) cutoff等于 Maximal window ever seen from peer 右移1位
637  否则cutoff等于 Maximal window ever seen from peer
640  如果cutoffpktsize大于cutoff则返回: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  否则返回:pktsize