Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add mnl_nlmsg_fprintf() function for debugging purposes | Pablo Neira Ayuso | 2010-04-19 | 1 | -1/+1 |
| | | | | | | This function is still quite preliminary, comments welcome! Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | remove mnl_nlmsg_get_len() function | Pablo Neira Ayuso | 2010-04-12 | 1 | -1/+1 |
| | | | | | | | | | Remove mnl_nlmsg_get_len() since it returns a field of a structure that is public (struct nlmsghdr). We can directly access the header fields and they are not likely to change in the future (at least for this version of Netlink I think). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | check source of the netlink message and fix sequence tracking logic | Pablo Neira Ayuso | 2010-04-04 | 1 | -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 import | Pablo Neira Ayuso | 2010-03-19 | 1 | -0/+76 |