一个skb结构应该填充哪些必要的字段 (转)
2012-12-26 11:18:41| 分类:
netfilter
| 标签:
|举报
|字号大中小 订阅
如果是一个ip包的话,要填充下面几个字段:
skb->mac_header
skb->network_header
skb->transport_header
这 三个字段分别是以太网头,ip头和传输层头部
skb->protocol
This is the protocol used at the next-higher layer from the perspective of the device driver at L2.
skb->pkt_type
This field classifies the type of frame based on its L2 destination address.
评论这张
转发至微博
转发至微博
评论