skb_reset_mac_header(skb); skb->nh.raw = skb->data; skb->protocol = __constant_htons(ETH_P_AOE); skb->priority = 0; skb->next = skb->prev = NULL;2 changes: 1 addition & 1 deletion 2 drivers/ieee1394/eth1394.c Original file line numberDiff line numberDiff line change @@ ...
skb->network_header = skb->data - skb->head;} 这个一般是在skb_pull/skb_push后做的,重新复位sk_buf网络头部地址。
*/vlan_get_tag(skb, &tci);switch(tci &0x0f00) {case0x0000:/* VLAN ID 0 - 255 *//* verify that datagram is IPv4 or IPv6 */skb_reset_mac_header(skb);switch(eth_hdr(skb)->h_proto) {casehtons(ETH_P_IP):casehtons(ETH_P_IPV6):break;default:gotoerror; } c = (u8 *)&sig...