summaryrefslogtreecommitdiffstats
path: root/src/socket.c
Commit message (Collapse)AuthorAgeFilesLines
* doc: documentation updatesJan Engelhardt2010-10-221-9/+9
| | | | | | Spelling, grammer, and synchronization of the readme. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* socket: remove statement with no effectJan Engelhardt2010-10-221-1/+0
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* src: remove redundant castsJan Engelhardt2010-10-221-1/+1
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* doc: git tree update (now at netfilter.org) and fix listing in doxygenPablo Neira Ayuso2010-10-211-7/+7
| | | | | | | | This patch update the git tree address (now at netfilter.org) and it also fixes a minor problem with the doxygen output in one of the socket helpers. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: define MNL_SOCKET_BUFFER_SIZE to 8192ULPablo Neira Ayuso2010-10-211-2/+5
| | | | | | | | | | | | | | | | Davem spotted during the Netfilter Workshop that user-space applications should use 8KB buffers for recv(). I accidentally found that NFLOG is not following this approach (in this case we're using 131072 bytes messages), we have to document this. Anyway, according to linux/netlink.h (and to complete this log message): "skb should fit one page. This choice is good for headerless malloc. But we should limit to 8K so that userspace does not have to use enormous buffer sizes on recvmsg() calls just to avoid MSG_TRUNC when PAGE_SIZE is very large." Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* add quote from Thoureau to documentationPablo Neira Ayuso2010-10-101-0/+4
| | | | | | I like this quote. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* doxygen documentationPablo Neira Ayuso2010-09-081-21/+73
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* socket: remove mnl_socket_sendmsg() and mnl_socket_recvmsg()Pablo Neira Ayuso2010-06-251-30/+0
| | | | | | | | These functions are too simple wrappers that bloat the library. We can use mnl_socket_get_fd() to obtain the file descriptor and invoke message-oriented system call instead. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* update socket helper documentationPablo Neira Ayuso2010-04-121-5/+6
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* constify several mnl_socket_* parameters and use size_t instead of intPablo Neira Ayuso2010-04-031-8/+8
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* fix mnl_socket_bind() to support the selection of the netlink portIDPablo Neira Ayuso2010-03-281-0/+1
|
* 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 leak in mnl_socket_open()Pablo Neira Ayuso2010-03-191-1/+3
|
* initial libmnl importPablo Neira Ayuso2010-03-191-0/+255