Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\uapi\linux\dccp.h Create Date:2022-07-28 18:47:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dccp_packet_hdr_len

Proto:static inline unsigned int dccp_packet_hdr_len(const __u8 type)

Type:unsigned int

Parameter:

TypeParameterName
const __u8type
120  If type == DCCP_PKT_DATA Then Return 0
122  If type == DCCP_PKT_DATAACK || type == DCCP_PKT_ACK || type == DCCP_PKT_SYNC || type == DCCP_PKT_SYNCACK || type == DCCP_PKT_CLOSE || type == DCCP_PKT_CLOSEREQ Then Return sizeof(structdccp_hdr_ack_bits)
129  If type == DCCP_PKT_REQUEST Then Return sizeof(structdccp_hdr_request)
131  If type == DCCP_PKT_RESPONSE Then Return sizeof(structdccp_hdr_response)
133  Return sizeof(structdccp_hdr_reset)