socket type
socket 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 kinds of proto. such as inet(ipv4)/stream, netlink/(xfrm, rt).
ensure the universe components is enabled.
martin@PC:~/git/blog/_posts$ cat /etc/apt/sources.list
deb http://ubuntu.cn99.com/ubuntu/ quantal main
deb-src http://ubuntu.cn99.com/ubuntu/ quantal main
deb http://ubuntu.cn99.com/ubuntu/ quantal universe
deb-src http://ubuntu.cn99.com/ubuntu/ quantal universe
martin@PC:~/git/blog/_posts$ sudo apt-get update
martin@PC:~/git/blog/_posts$ sudo apt-get install python-html2text^C
martin@PC:~/git/blog/_posts$ html2markdown –version
html2markdown 3.200.3
xfrm_get_policy first locate the xfrm policy by policy index(from user space) or policy selector.
xfrm_audit_policy_delete to delete the plolicy, and call km_policy_notify to notify.xfrm policy del/get 使用的是同一个函数 xfrm_get_policy.
xfrm policy add/del/update 是通过netlink消息进行的。 其中xfrm_add_policy 用来添加 xfrm policy。
When 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 routed by this route entry. The route still is valid, even the related interface is shut down.
【local table】 10.10.2.9/32 dev eth0
a connected route is added to main table.
It is used to forward the packet to the hosts in the same sub network, it will disappear when interface down
【main table】 10.10.2.0/24 dev eth0
two broad cast routes entry also added.
x86_64 Memory Map When Boot
1 | [martin@fc17 git_study]$ git log --oneline |
1 | [martin@fc17 git_study]$ git reset HEAD^ --hard |
1 | [martin@fc17 git_study]$ cat readme |
1 | [martin@fc17 git_study]$ git reflog |
有了commit ID, 一切就OK了。想干啥都行了 cherry-pick, checkout …
1 | [martin@fc17 git_study]$ git checkout -b try_recover 83e7d89 |
原文地址:LFS中Binutils,GCC,Glibc三者之间的关系
[http://blog.chinaunix.net/uid-20431728-id-2752867.html]