summaryrefslogtreecommitdiffstats
path: root/examples/rtnl-link-set.c
Commit message (Collapse)AuthorAgeFilesLines
* check source of the netlink message and fix sequence tracking logicPablo Neira Ayuso2010-04-041-2/+3
| | | | | | | | | | | | This patch changes the callback handlers to include netlink portID checking. Thus, we avoid that any malicious process can spoof messages. If portid, sequence number of the message is != 0, we check if the message is what we expect. This allows to use the same netlink channel for dumps (portid, seq != 0) and event-based notifications (portid, seq == 0). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* initial libmnl importPablo Neira Ayuso2010-03-191-0/+76