Chinaunix首页 | 论坛 | 博客
  • 博客访问: 53521
  • 博文数量: 13
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 115
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-07 14:12
文章分类

全部博文(13)

文章存档

2015年(2)

2014年(11)

我的朋友

发布时间:2015-01-26 11:22:53

IP 地址转换(字符串 -> 数值)#include <linux/inet.h>iph->saddr = in_aton("1.1.1.1");#include <arpa/inet.h>char ipaddr[64]="172.0.0.1";lan_ip->addr.addr4.s_addr =inet_addr(ipadd.........【阅读全文】

阅读(1689) | 评论(0) | 转发(0)

发布时间:2014-12-30 13:34:53

struct ethhdr、ether_header、iphdr、tcphdr、udphdr 结构************************eth的结构**************************************struct ethhdr {unsigned char h_dest[ETH_ALEN];unsigned char h_source[ETH_ALEN];__be16 h_proto;} __attribute__((packed));struct ether_header{u_int8_t ether.........【阅读全文】

阅读(2232) | 评论(0) | 转发(0)

发布时间:2014-12-11 11:10:11

 1) net_ratelimit()用于保护内核网络调试信息的打印, 当它返回(TRUE)时则可以打印调试信息,返回零则禁止信息打印. 它的特性为当"极快地"调用net_ratelimit()时,它最多只允许连续打印前10条信息, 后继信息每隔5秒允许打印一次.这样可防止攻击者使内核不断产生调试信息来使系统过载的拒绝服务攻击.2) net_ratelimit.........【阅读全文】

阅读(5316) | 评论(0) | 转发(0)

发布时间:2014-11-07 15:58:38

 《转自http://www.live-in.org/archives/885.html》Linux中vi、vim操作Linux中文本编辑常用vi、vim编辑器。它们功能强大,非常适合全键盘操作,有必要整理一下。现在多使用vim,因为它编辑文本有显示不同颜色区分。vim有三种模式:Command Mode(命令模式),.........【阅读全文】

阅读(1735) | 评论(0) | 转发(0)

发布时间:2014-11-07 14:50:23

......【阅读全文】

阅读(1107) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册