linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.18+IPv6+IPV6_ADDRFORM
@ 2002-10-01 16:32 Steve G
  2002-10-02  9:20 ` 2.4.18+IPv6+IPV6_ADDRFORM YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 3+ messages in thread
From: Steve G @ 2002-10-01 16:32 UTC (permalink / raw)
  To: linux-kernel

Hello,

I am using a 2.4.18 kernel and ran across something I
thought was odd and need to understand better. I'm
writing a test suite to verify xinetd and I'm trying
to check a socket via getsockopt() to see if the
IPV6_ADDRFORM socket option has been set. I cannot
find IPV6_ADDRFORM in the Single Unix Standard or man
pages, so I am going by what is in Richard Steven's
book, Network Programming vol 1.

According to it, calling getsockopt() with level
IPPROTO_IPV6 and option IPV6_ADDRFORM should get the
option value. However, I get a socket error. I changed
the level to IPPROTO_IP and the call goes through, but
Richard Stevens' book states that AF_INET or AF_INET6
should be returned rather than 0 or 1.

1) should the level really be IPPROTO_IPV6?
2) do other platforms use IPPROTO_IP to retrieve this
option or said another way, is the behavior observed
in Linux portable?
3) should the returned value be 0 & 1 or AF_INET &
AF_INET6?
4) Is this a deprecated option and likely to be
dropped?

Also, the Sus v3, states there is a socket option:
level IPPROTO_IPV6, option IPV6_V6ONLY...will this be
supported in 2.4 or 2.6? A grep -r doesn't get any
hits from /usr/include.

Thanks,
Steve Grubb

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.4.18+IPv6+IPV6_ADDRFORM
  2002-10-01 16:32 2.4.18+IPv6+IPV6_ADDRFORM Steve G
@ 2002-10-02  9:20 ` YOSHIFUJI Hideaki / 吉藤英明
  2002-10-02 12:37   ` 2.4.18+IPv6+IPV6_ADDRFORM Steve G
  0 siblings, 1 reply; 3+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2002-10-02  9:20 UTC (permalink / raw)
  To: linux_4ever; +Cc: linux-kernel

In article <20021001163221.73061.qmail@web9607.mail.yahoo.com> (at Tue, 1 Oct 2002 09:32:21 -0700 (PDT)), Steve G <linux_4ever@yahoo.com> says:

> According to it, calling getsockopt() with level
> IPPROTO_IPV6 and option IPV6_ADDRFORM should get the
> option value. However, I get a socket error. I changed
> the level to IPPROTO_IP and the call goes through, but
> Richard Stevens' book states that AF_INET or AF_INET6
> should be returned rather than 0 or 1.
> 
> 1) should the level really be IPPROTO_IPV6?
> 2) do other platforms use IPPROTO_IP to retrieve this
> option or said another way, is the behavior observed
> in Linux portable?
> 3) should the returned value be 0 & 1 or AF_INET &
> AF_INET6?
> 4) Is this a deprecated option and likely to be
> dropped?

IPV6_ADDRFORM is deprecated.
I believe that it should be removed.


> Also, the Sus v3, states there is a socket option:
> level IPPROTO_IPV6, option IPV6_V6ONLY...will this be
> supported in 2.4 or 2.6? A grep -r doesn't get any
> hits from /usr/include.

We, USAGI Project, have implementation for it,
and we are about to contribute it here.

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.4.18+IPv6+IPV6_ADDRFORM
  2002-10-02  9:20 ` 2.4.18+IPv6+IPV6_ADDRFORM YOSHIFUJI Hideaki / 吉藤英明
@ 2002-10-02 12:37   ` Steve G
  0 siblings, 0 replies; 3+ messages in thread
From: Steve G @ 2002-10-02 12:37 UTC (permalink / raw)
  To: linux-kernel

>IPV6_ADDRFORM is deprecated.
>I believe that it should be removed.

Shouldn't we correct it in 2.4 and drop it in 2.5 ? 

If the above assumption is correct...

>1) should the level really be IPPROTO_IPV6?
>2) do other platforms use IPPROTO_IP to retrieve this
>option or said another way, is the behavior observed
>in Linux portable?
>3) should the returned value be 0 & 1 or AF_INET &
>AF_INET6?

>>Also, the Sus v3, states there is a socket option:
>>level IPPROTO_IPV6, option IPV6_V6ONLY.
>
>We, USAGI Project, have implementation for it,
>and we are about to contribute it here.

Great.

Thanks,
Steve Grubb


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-02 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01 16:32 2.4.18+IPv6+IPV6_ADDRFORM Steve G
2002-10-02  9:20 ` 2.4.18+IPv6+IPV6_ADDRFORM YOSHIFUJI Hideaki / 吉藤英明
2002-10-02 12:37   ` 2.4.18+IPv6+IPV6_ADDRFORM Steve G

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).