华清远见 协议层包头1 2 3 4 5 6 7 8 */ 9 10 11 12 13 14 15 16 17 18 19 */ 20
Linux网络设备驱动— sk_buffunion{ struct tcphdr *th; /* TCP头部 */ struct udphdr *uh; /* UDP头部 */ struct icmphdr *icmph; /* ICMP头部 */ struct igmphdr *igmph; /* IGMP头部 */ struct iphdr *ipiph; /* IP头部 */ struct ipv6hdr *ipv6h; /* IPv6头部 */ unsigned char *raw; /* 数据链路层头部}h; union{ struct iphdr *iph; /* IP头部 */ struct ipv6hdr *ipv6h; /* IPv6头部 */ struct arphdr *arph; /*ARP头部 */ unsigned char *raw; /* 数据链路层头部 */}nh; union{ unsigned char *raw; /* 数据链路层头部} mac;链路层头部 skb>data skb>mac.raw skb>nh.raw skb>h.raw IP头部 UDP头部 payload数据链路层
链路层头部 skb>data skb>mac.raw skb>nh.raw skb>h.raw IP头部网络层 UDP头部 payload
链路层头部 skb>data skb>mac.raw skb>nh.raw skb>h.raw IP头部传输层 UDP头部 payload
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Liunx网络驱动编程(5)在线全文阅读。
相关推荐: