summaryrefslogtreecommitdiffstats
path: root/src/callback.c
Commit message (Collapse)AuthorAgeFilesLines
* more consistency name issues: rename get_data*() to get_payload*()Pablo Neira Ayuso2010-04-051-1/+1
| | | | | | This includes renaming get_tail() to get_payload_tail() Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* check source of the netlink message and fix sequence tracking logicPablo Neira Ayuso2010-04-041-5/+12
| | | | | | | | | | | | 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>
* partially revert previous commitPablo Neira Ayuso2010-03-281-2/+2
| | | | | the use of unsigned int in the number of bytes affects other message handling helper function, hold on with this.
* use `unsigned int' for number of bytes and array size in callback APIPablo Neira Ayuso2010-03-281-3/+3
|
* add COPYING filePablo Neira Ayuso2010-03-261-2/+4
| | | | | | This library is distributed under GPLv2+. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* fix mnl_cb_run() and mnl_cb_run2() return value logicPablo Neira Ayuso2010-03-261-5/+13
|
* finish API documentationPablo Neira Ayuso2010-03-221-1/+0
| | | | | | This patch may contain errors but we can review them and fix them later, better to have it in the tree (to allow others to contribute) to keep it in my local tree.
* initial libmnl importPablo Neira Ayuso2010-03-191-0/+119