函数源码 |
Source File:include\uapi\linux\dccp.h |
Create Date:2022-07-27 20:20:25 |
首页 | Copyright©Brick |
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | #define DCCP_NR_PKT_TYPES DCCP_PKT_INVALID static inline unsigned int dccp_packet_hdr_len( const __u8 type) { if (type == DCCP_PKT_DATA) return 0; 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) return sizeof ( struct dccp_hdr_ack_bits); if (type == DCCP_PKT_REQUEST) return sizeof ( struct dccp_hdr_request); if (type == DCCP_PKT_RESPONSE) return sizeof ( struct dccp_hdr_response); return sizeof ( struct dccp_hdr_reset); } |