全部博文(230)
发布时间:2014-03-14 08:57:00
http://safe.it168.com/a2013/0906/1530/000001530886.shtml......【阅读全文】
发布时间:2014-03-13 23:37:37
Windows Performance Monitor: "Unable to add these counters"Today I have a discussion in This thread about how to fix the following error:"Unable to add these counters:\Memory\Available MBytes\Memory\% Committed Bytes In Use\Memory\Cache Faults/sec\Memory\Cache Faults/sec\Physi.........【阅读全文】
发布时间:2013-04-16 10:58:33
以太网最小数据包大小是 64 字节,这个毋庸置疑如果在发包设备上抓包看到比如 UDP 包小于这个数字也不要紧,发送出去时会自动添加 padding 信息每个数据包前面还有 12 字节帧间隙和 8 字节前导码,所以一个最小数据单元需要 12 + 8 + 64 = 84 字节,也就是 84 * 8 = 672bits对于一个 10G 网卡来说,10G = 10 * 1000 * .........【阅读全文】
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,
}