summaryrefslogtreecommitdiffstats
path: root/src/conntrack/api.c
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org>2007-02-12 02:02:27 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org>2007-02-12 02:02:27 +0000
commit0e610525d877a67c2dd59118aa90e01fb83ce99e (patch)
tree1fd2e81ea91bfdfefcd9912303c7058e9786daca /src/conntrack/api.c
parentd6d8132504ec4edf8988ebace8309f4b41e72a47 (diff)
fix wrong documentation in nfct_attr_get_u[*] functions
Diffstat (limited to 'src/conntrack/api.c')
-rw-r--r--src/conntrack/api.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/conntrack/api.c b/src/conntrack/api.c
index f008f49..19aca5e 100644
--- a/src/conntrack/api.c
+++ b/src/conntrack/api.c
@@ -278,8 +278,9 @@ const void *nfct_get_attr(const struct nf_conntrack *ct,
* @ct: pointer to a valid conntrack
* @type: attribute type
*
- * On error, -1 is returned and errno is set appropiately, otherwise
- * the value of the attribute is returned.
+ * Returns the value of the requested attribute, if the attribute is not
+ * set, 0 is returned. In order to check if the attribute is set or not,
+ * use nfct_attr_is_set.
*/
u_int8_t nfct_get_attr_u8(const struct nf_conntrack *ct,
const enum nf_conntrack_attr type)
@@ -293,8 +294,9 @@ u_int8_t nfct_get_attr_u8(const struct nf_conntrack *ct,
* @ct: pointer to a valid conntrack
* @type: attribute type
*
- * On error, -1 is returned and errno is set appropiately, otherwise
- * the value of the attribute is returned.
+ * Returns the value of the requested attribute, if the attribute is not
+ * set, 0 is returned. In order to check if the attribute is set or not,
+ * use nfct_attr_is_set.
*/
u_int16_t nfct_get_attr_u16(const struct nf_conntrack *ct,
const enum nf_conntrack_attr type)
@@ -308,8 +310,9 @@ u_int16_t nfct_get_attr_u16(const struct nf_conntrack *ct,
* @ct: pointer to a valid conntrack
* @type: attribute type
*
- * On error, -1 is returned and errno is set appropiately, otherwise
- * the value of the attribute is returned.
+ * Returns the value of the requested attribute, if the attribute is not
+ * set, 0 is returned. In order to check if the attribute is set or not,
+ * use nfct_attr_is_set.
*/
u_int32_t nfct_get_attr_u32(const struct nf_conntrack *ct,
const enum nf_conntrack_attr type)