函数名称:skb_postpull_rcsum - update checksum for received skb after pull*@skb: buffer to update*@start: start of data before pull*@len: length of data pulled* After doing a pull on a received packet, you need to call this to* update the CHECKSUM_COMPLETE 函数原型:static inline void...
skb_postpull_rcsum(skb, skb_network_header(skb), - skb->h.raw - skb->nh.raw); + skb_network_header_len(skb)); if (!csum_ipv6_magic(&ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr, skb->len, inet->num, skb->csum)) diff --git a/net/ipv6/reassembly.c b/net/ipv6/rea...
Expand Up@@ -2838,53 +2838,54 @@ EXPORT_SYMBOL_GPL(skb_pull_rcsum); /** * skb_segment - Perform protocol segmentation on skb. * @skb: buffer to segment * @head_skb: buffer to segment * @features: features for the output path (see dev->features) ...
skb_postpull_rcsum(skb, skb->data + (2 * ETH_ALEN), VLAN_HLEN);vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); *vlan_tci = ntohs(vhdr->h_vlan_TCI);memmove(skb->data + VLAN_HLEN, skb->data, 2 * ETH_ALEN); __skb_pull(skb, VLAN_HLEN);...
在eth_type_trans函数中,会将skb->data指针下移14字节skb_pull_inline(skb, ETH_HLEN),如果此时报文带vlan,vlan信息(4个字节)前两个字节为标签协议标识TPID (Tag Protocol ldentifer),值为0x8100,后两个字节为标签控制信息TCI (Tag Control lnformation),那么skb->data指针下移14字节就指向的是TCI控制信息。
skb_pull_rcsum(skb, nh_ofs);err = tcf_ct_handle_fragments(net, skb, family, p->zone);err = tcf_ct_handle_fragments(net, skb, family, p->zone, &defrag); if (err == -EINPROGRESS) { retval = TC_ACT_STOLEN; goto out;
Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Ca...
__netpoll_rx() doesnt properly handle skbs with small header pskb_may_pull() or pskb_trim_rcsum() can change skb->data, we must reload it. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>...
Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Ca...