From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2005@gmx.net>
To: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: struct nf_sockopt_ops
Date: Sat, 16 Apr 2005 16:31:24 +0200 [thread overview]
Message-ID: <426121BC.2040808@gmx.net> (raw)
Forgive me if that has already been discussed.
I'm wondering why the get and set members of the struct take
some form of int as last parameter. Wouldn't be a long be the
more logical choice? I can see changing the type here wouldn't
help because nf_sockopt also accepting only an int for len.
struct nf_sockopt_ops
{
/* snip */
int (*set)(struct sock *sk, int optval, void __user *user, unsigned int len);
/* snip */
int (*get)(struct sock *sk, int optval, void __user *user, int *len);
/* snip */
};
Or at least the last parameter of the set member being a
signed int to match the parameter to nf_sockopt.
Any insight into why the parameters were chosen that way
would be truly appreciated.
Regards,
Carl-Daniel
next reply other threads:[~2005-04-16 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-16 14:31 Carl-Daniel Hailfinger [this message]
2005-04-17 22:05 ` struct nf_sockopt_ops Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=426121BC.2040808@gmx.net \
--to=c-d.hailfinger.devel.2005@gmx.net \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.