diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-05 18:11:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-04-05 18:11:38 +0200 |
commit | db085424d91624a3f01bf7e76ce7e30a02857e88 (patch) | |
tree | c1d6c06a12866ec8afa2dbdd86f2530caf40cf8b /src | |
parent | 3ece3d60f41b65470ec5ce6c9a0b830e32a84422 (diff) | |
download | libmnl-db085424d91624a3f01bf7e76ce7e30a02857e88.tar.gz libmnl-db085424d91624a3f01bf7e76ce7e30a02857e88.zip |
rename msg.c to nlmsg.c
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/nlmsg.c (renamed from src/msg.c) | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 7a41d1e..4fdfa27 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -6,4 +6,4 @@ LIBS= lib_LTLIBRARIES = libmnl.la libmnl_la_LDFLAGS = -Wc,-nostartfiles -version-info $(LIBVERSION) -libmnl_la_SOURCES = socket.c callback.c msg.c attr.c +libmnl_la_SOURCES = socket.c callback.c nlmsg.c attr.c @@ -131,6 +131,9 @@ void *mnl_nlmsg_get_data_offset(const struct nlmsghdr *nlh, int offset) * function can be used to verify that a netlink message is not malformed nor * truncated. * + * This function does not set errno in case of error since it is intended + * for iterations. Thus, it returns 1 on success and 0 on error. + * * The @len parameter may become negative in malformed messages during message * iteration, that is why we use a signed integer. */ |