Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2187879
  • 博文数量: 230
  • 博客积分: 9346
  • 博客等级: 中将
  • 技术积分: 3418
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-26 01:58
文章分类

全部博文(230)

文章存档

2015年(30)

2014年(7)

2013年(12)

2012年(2)

2011年(3)

2010年(42)

2009年(9)

2008年(15)

2007年(74)

2006年(36)

博文列表
标题:
标题 阅读 评论 转发 发布日期
DNS 记录类型 4092 0 0 2014-03-28
Cache 替换算法【转】 3060 0 1 2011-07-11
LVM HOWTO tips 4150 0 0 2010-09-07
glib 官方在线文档 2502 0 0 2010-06-29
dedup util 数据块零碰撞算法 2263 0 0 2010-06-20
Linux下的 C/C++ 开发与调试工具 2507 0 2 2010-06-20
基于 Dedup 的数据打包技术 1326 0 0 2010-06-20
重复数据删除技术 2802 0 1 2010-06-20
计算机中的单位、进制关系 1897 0 0 2009-08-27
how to write netfilter connection tracking helper 3863 0 3 2007-12-15
C Hash Table 3563 0 2 2007-12-03
A packet through the linux 2.4 network stack 2801 1 2 2007-09-08
看懂DVD文件格式 2913 0 0 2007-09-04
Linux TCP/IP 协议栈的关键数据结构Socket Buffer(sk_buff ) 2984 0 2 2007-08-30
什么是 LPI? 3557 0 0 2007-08-24
DMIScope-BIOS 刷写 BIOS 来安装 OEM 系统 6149 0 0 2007-08-21
ipt_account 的用法 3536 0 0 2007-08-11
The system.map File 1912 0 0 2007-07-11
ASCII 码表 1761 0 0 2007-07-06
The TCP state transition table needs a few words 2392 4 0 2007-07-02
给主人留下些什么吧!~~

phoenixcsl2015-05-26 09:57

hi,platinum,请问netfilter能够过滤arp的东西吗?我写了一些代码,在NF_ARP_IN和OUT捕获一些信息,但是为什么什么都抓不到?
代码:
static unsigned int hook_func_in(unsigned int hooknum,
             struct sk_buff *skb,
             const struct net_device *in,
             const struct net_device *out,
             int (*okfn)(struct sk_buff*))
 {
     sb = skb;
 
     ethh = eth_hdr(skb);
     printk(" in skb ethh dest %s\n",ethh->h_dest);
     printk("in skb ethh source %s\n",ethh->h_source);

     return NF_ACCEPT;
}

static struct nf_hook_ops nfho_ops[]=
 {
      .hook = hook_func_in,
      .owner = THIS_MODULE,
      .pf =NF_ARP,
      .hooknum = NF_ARP_IN,
      .priority = NF_IP_PRI_FIRST,
  }

static struct nf_hook_ops nfho_ops[]=
 {
      .hook = hook_func_in,
      .owner = THIS_MODULE,
      .pf =NF_ARP,
      .hooknum = NF_ARP_IN,
      .priority = NF_IP_PRI_FIRST,
  }

回复  |  举报

aidisheng192014-01-21 13:44

LZ你好,请问一下LINUX下有什么好的DLNA推送视频图片的软件(DMC),想开发一个但是无从下手

回复  |  举报

电影vs程序员2013-08-22 18:13

学习了,留个脚印

回复  |  举报

platinum2013-05-24 10:01

luodeke:博主你好,我有个问题想请教你,看你的博文里面你好像有看过内核代码,内核代码你是从哪里得到的呢?直接在kernel.org里面的源码包得到的吗?多谢

两种方法
1、去 kernel.org 下载
2、用 git 直接托追最新版:git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

回复  |  举报

luodeke2013-05-13 15:08

博主你好,我有个问题想请教你,看你的博文里面你好像有看过内核代码,内核代码你是从哪里得到的呢?直接在kernel.org里面的源码包得到的吗?多谢

回复  |  举报
留言热议
请登录后留言。

登录 注册