登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

ideality

@linux c 编程@

 
 
 

日志

 
 
 
 

一个skb结构应该填充哪些必要的字段 (转)  

2012-12-26 11:18:41|  分类: netfilter |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
如果是一个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.
  评论这张
 
阅读(586)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018