Skip to contentSkip to conversation

libnfnetlink

PATCH In review Maik Hentsche 2 participants 2 messages Oct 9, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

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
diff -U 3 -b -B -d -i -r -N -x .svn -- libnfnetlink-0.0.16-pablo-r1/src/libnfnetlink.c libnfnetlink-0.0.16-pablo-r1.new/src/libnfnetlink.c
@@ -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)
 {
#1 lore raw

Maik,

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_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.

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