libnfnetlink
PATCH 1/1 libnfnetlink
Hallo pablo, hello readers of the list,
attached is a patch, that corrects another error in the comments of libnfnetlink. nfnl_send uses send_to and thus returns the number of send bytes instead of 0 in case of success. Pardon me for bothering you with such trivial patches, but I think, as long as the sgml-documentation isn't finished (I'm working on it), developers using the lib might need those comments.
so long
Maik
src/libnfnetlink.c +2 -2
@@ -330,8 +330,8 @@* @nfnlh: nfnetlink handler * @n: netlink message * -* On success, 0 is returned. On error, -1 is returned and errno is set -* appropiately. +* On success, the number of send bytes is returned. On error, -1 is +* returned and errno is set appropiately. */ int nfnl_send (struct nfnl_handle *nfnlh,struct nlmsghdr *n) {
Pablo Neira Ayuso
maintainerMaik,
Quoted 7 lines · Maik Hentsche
Hallo pablo, hello readers of the list,
attached is a patch, that corrects another error in the comments of libnfnetlink.nfnl_sendusessend_toand thus returns the number of send bytes instead of 0 in case of success. Pardon me for bothering you with such trivial patches, but I think, as long as the sgml-documentation isn't finished (I'm working on it), developers using the lib might need those comments.
Thanks it is worth the fix, I'll add it to my patchlet for libnfnetlink.
--
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris