2019年7月18日

KDB调试命令

摘要: 转自:https://blog.csdn.net/oyangyufu/article/details/6245931 bp:设置断点 bc:清楚断点 go:继续执行 bt:显示调用栈 bl:显示断点 bd:disable 断点 be:enable 断点 阅读全文

posted @ 2019-07-18 14:18 laymond 阅读(215) 评论(0) 推荐(0) 编辑

2019年5月15日

shell 管道导致的变量重置问题

摘要: 测试脚本: 输出显示的flag=0! 参考:https://www.cnblogs.com/super119/archive/2010/12/18/1909829.html 阅读全文

posted @ 2019-05-15 13:40 laymond 阅读(275) 评论(0) 推荐(0) 编辑

2019年4月25日

命令行发送UDP

摘要: https://www.cnblogs.com/Dennis-mi/articles/6866762.html: 如果往本地UDP端口發送數據,那麼可以使用以下命令:echo “hello” > /dev/udp/192.168.1.81/5060 意思是往本地192.168.1.81的5060端口 阅读全文

posted @ 2019-04-25 15:41 laymond 阅读(3995) 评论(0) 推荐(0) 编辑

2019年4月23日

iptables IP流量统计

摘要: 最后是使用ipset进行流量统计,iptaccount资料太少而且还跟网上说明的操作情况不相符,继续看源码分析组长老大都不高兴。ipset使用帮助 1. 创建ipset集合:ipset create test hash:ip counters //counters,一定要加,不然不会计数,hash: 阅读全文

posted @ 2019-04-23 15:48 laymond 阅读(1565) 评论(0) 推荐(0) 编辑

吐槽

摘要: 2019-04-19 要求先找是否有开源替代方案,于是网上查找IP流量统计相关开源程序。 找到 iptaccount 和 nfacct,但是这两者资料很少很少。 1. nfacct从找到的资料看linux2.6.x还不支持,需要额外移植,先放弃。 2. iptaccount 下载了软件包,安装、测试 阅读全文

posted @ 2019-04-23 15:19 laymond 阅读(105) 评论(0) 推荐(0) 编辑

2019年4月16日

linux内核数据结构

摘要: https://blog.csdn.net/zhangskd/article/details/11225301 在看ip_acct.c相关代码时看到大量使用了 hlist_nulls_for_each_entry 和 hlist_nulls_add_head,很疑惑为啥搜索nulls??原来是种特殊 阅读全文

posted @ 2019-04-16 21:28 laymond 阅读(143) 评论(0) 推荐(0) 编辑

2019年4月15日

netfilter 和 iptables

摘要: http://blog.chinaunix.net/uid/23069658/cid--1-list-4.html 洞悉linux下的Netfilter&iptables 系列,有一到十六,牛掰。 https://blog.csdn.net/jasonchen_gbd/article/details 阅读全文

posted @ 2019-04-15 16:26 laymond 阅读(93) 评论(0) 推荐(0) 编辑

2019年4月2日

linux设备驱动程序 - 待解决问题记录

摘要: 1.每个模式都有自己的内存映射,也即自己的地址空间?(P26) http://www.cnblogs.com/wuchanming/p/4360277.html (不知道是不是,没时间看) 阅读全文

posted @ 2019-04-02 10:32 laymond 阅读(93) 评论(0) 推荐(0) 编辑

2019年3月1日

路由和交换机知识,收藏

摘要: 曹世宏的博客:https://blog.csdn.net/qq_38265137/article/category/7126126 life is wonderful的博客:https://blog.csdn.net/erlian1992/article/category/5684137/1? zq 阅读全文

posted @ 2019-03-01 11:02 laymond 阅读(123) 评论(0) 推荐(0) 编辑

2019年1月8日

文件所

摘要: Linux 2.6 中的文件锁 劝告锁和强制锁, 劝告锁靠进程自己约定和遵守规则 强制锁由内核来强制检查并执行规则 强制锁的条件、方法。 fcntl可以对纪录加锁、flock只能对整个文件加锁。 ... 其他资料:《UNIX环境高级编程》14章高级I/O,第3节-纪录锁 阅读全文

posted @ 2019-01-08 15:56 laymond 阅读(92) 评论(0) 推荐(0) 编辑

导航