函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ipv6_get_dsfield

函数原型:static inline __u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h)

返回类型:__u8

参数:

类型参数名称
const struct ipv6hdr *ipv6h
24  返回:ntohs( * (const__be16 * )ipv6h)右移4位
调用者
名称描述
IP6_ECN_set_ceNote:* IP_ECN_set_ce() has to tweak IPV4 checksum when setting CE,* meaning both changes have no effect on skb->csum if/when CHECKSUM_COMPLETE* In IPv6 case, no checksum compensates the change in IPv6 header,* so we have to update skb->csum.
IP_ECN_decapsulate
IP6_ECN_decapsulate