From: Mateusz Berezecki <mateuszb@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: include/linux/ipv6.h error?
Date: Thu, 30 Dec 2004 01:38:46 +0100 [thread overview]
Message-ID: <41D34E16.2040503@gmail.com> (raw)
inet_sk(__sk) returns pointer to inet_sock structure which has pinet6
field defined
or not defined depending on kernel configuration during compilation time
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
struct ipv6_pinfo *pinet6;
#endif
the function below causes compilation error in kernel configs with
neither CONFIG_IPV6 nor
CONFIG_IPV6_MODULE defined.
should these functions be included between
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
static inline struct ipv6_pinfo * inet6_sk(const struct sock *__sk)
{
return inet_sk(__sk)->pinet6;
}
static inline struct raw6_opt * raw6_sk(const struct sock *__sk)
{
return &((struct raw6_sock *)__sk)->raw6;
}
#endif
?? or should the #ifdef directive be removed from ipv6.h header file?
regards
-mb
next reply other threads:[~2004-12-30 0:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-30 0:38 Mateusz Berezecki [this message]
2004-12-30 3:12 ` include/linux/ipv6.h error? Arnaldo Carvalho de Melo
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=41D34E16.2040503@gmail.com \
--to=mateuszb@gmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox