Netlink 基于事件的信号机制
Event-based signaling mechanisms: they allow to deliver events so that user-space processes do not have to poll for data to make sure that have up-to-date...
Event-based signaling mechanisms: they allow to deliver events so that user-space processes do not have to poll for data to make sure that have up-to-date...
整理一些例子,备忘!
上一篇《Netlink 监听 XFRM 状态消息》学习了抓包和解包,本文来学习构造包和发包
XFRM是 Linux 2.6 内核为安全处理引入的一个可扩展功能框架,用来在数据包经过路由路径的过程中对其进行修改,包含 3 种数据结构:策略(xfrm policy),模板(template)和状态(xfrm state)。策略是通过模板和状态发生联系的。 ——http://goo.gl/ek9dJM
绑定NETLINK_ROUTE协议,加入内核提供的RTMGRP_IPV4_ROUTE 广播组,接收监听路由变化消息。