From 0e610525d877a67c2dd59118aa90e01fb83ce99e Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org" Date: Mon, 12 Feb 2007 02:02:27 +0000 Subject: fix wrong documentation in nfct_attr_get_u[*] functions --- src/conntrack/api.c | 15 +++++++++------ 1 file 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) -- cgit v1.2.3