| To: | "YOSHIFUJI Hideaki / _$B5HF#1QL@" <yoshfuji@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] IPV6: inappropriate usage of inet{,6}_sk() |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Tue, 28 Oct 2003 01:04:18 -0800 |
| Cc: | netdev@xxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx |
| In-reply-to: | <20031027.232700.97608602.yoshfuji@xxxxxxxxxxxxxx> |
| References: | <20031027.232700.97608602.yoshfuji@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Mon, 27 Oct 2003 23:27:00 +0900 (JST)
YOSHIFUJI Hideaki / _$B5HF#1QL@ <yoshfuji@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> I found other inappropriate usages of inet{,6}_sk() for
> tcp_tw_bucket:
> - inet6_sk(sk)->ipv6only
> - inet6_sk(sk)->rcv_saddr
> - inet_sk(sk)->rcv_saddr
>
> Patch is against my previous patch.
Thank you for working on a fix for this. Patch need some
small fixes before I can apply it.
> +static inline const struct in6_addr *__tcp_v6_rcv_saddr(const struct sock
> *sk)
> +{
> + return likely(sk->sk_state != TCP_TIME_WAIT) ?
> + &inet6_sk(sk)->rcv_saddr : &tcptw_sk(sk)->tw_v6_rcv_saddr;
> +}
Cannot reference inet6_sk() or tw->tw_v6_rcv_saddr outside of
CONFIG_IPV6 || CONFIG_IPV6_MODULE since these things do not exist when
those configs are both disabled.
Please verify the build of your new patch with IPV6 fully disabled.
Thank you.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Windows XP zero initial timestamps, David S. Miller |
|---|---|
| Next by Date: | Re: Announce: NetKeeper Firewall For Linux, David S. Miller |
| Previous by Thread: | Re: [PATCH] IPV6: inappropriate usage of inet{,6}_sk(), Arnaldo Carvalho de Melo |
| Next by Thread: | Re: [PATCH] IPV6: inappropriate usage of inet{,6}_sk(), YOSHIFUJI Hideaki / 吉藤英明 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |