2、网络层所使用的协议类型有(常见的类型):其他协议请查看linux/if_ether.h #define ETH_P_IP 0x0800 //IP协议 #define ETH_P_ARP 0x0806 //地址解析协议(Address Resolution Protocol) #define ETH_P_RARP 0x8035 //返向地址解析协议(Reverse Address Resolution Protocol) #define ETH_P_IPV6 0x86DD /...
ip分片的逻辑在ip_fragment函数里实现。