netlink bulk dump 0.0.0.0.1. 需求有时候我们需要从内核输出大量的消息。 例如,dump interface, xfrm sa,sp(几千甚至几万条)等 这些信息显然无法放到一个skb里。 这是我们需要借助netlinkcallback机制。 原理: 0.0.0.1. DATA STRUCTURE0.0.0.1.1. netlink_callback1234567891011121314 93 struc 2013-03-07 Netlink #netlink
Netlink in kernel 1. netlink socket framework.1.1. netlink socket proto netlink socket is a kind of socket. There are many proto of netlink. There may have many groups under each proto. See example in following. Every 2013-02-16 Netlink #netlink
Socket Basic Framework 0.1. socket typesocket is a widely used in kernel/net. There are many kind of sockets with different ‘family/proto’. They can be divided by family, and under each family, there are many kind 2013-02-16 Socket #Socket
Install html2markdown in Ubuntu(12.10) 0.0.1. Edit source.listensure the universe components is enabled.martin@PC:~/git/blog/_posts$ cat /etc/apt/sources.listdeb http://ubuntu.cn99.com/ubuntu/ quantal mainde 2013-02-12 Tools #Tools
mmap in kernel 0.1. call trace1234567> vmalloc> > __vmalloc_node_flags> > > __vmalloc_node> > > > __vmalloc_node_range> > > > > get_vm_area_node> > > > > v 2013-01-23 Memory #memory
Get or Delete Xfrm Policy 0.1. summaryxfrm_get_policy first locate the xfrm policy by policy index(from user space) or policy selector. if get_policy, alloc a new skb, and encapsulate the xfrm policy to it, then sent it. if 2012-11-10 XFRM #XFRM
Add or Udpate Xfrm Policy xfrm policy add/del/update 是通过netlink消息进行的。 其中xfrm_add_policy 用来添加 xfrm policy。 2012-11-10 XFRM #XFRM
Add a Ip Address on a Interface 0.1. summaryWhen a ip addr is added, two unicat route entries are added to route table.ex: 10.10.2.9/24 dev eth0 a host route entry is added to local table. The packet to local host will be rou 2012-08-29 Route #address
通过git reflog 找回的commit 0.1. Prepare1234[martin@fc17 git_study]$ git log --oneline 83e7d89 add lineb in readme <== this commit will be reset hardly4fd6367 add line1 in readmebfd590e touch readme 12345[martin@fc17 git_st 2012-07-29 Tools #git