* [PATCH] 2.4.18 IPV6_ADDRFORM
@ 2002-10-03 13:27 Steve G
2002-10-03 13:24 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Steve G @ 2002-10-03 13:27 UTC (permalink / raw)
To: linux-kernel, davem
The attached patch is created against 2.4.18 (but
2.4.19 seems very close). It adds support for
IPV6_ADDRFORM getsockopt. I sent a patch earlier
deleting IPV6_ADDRFORM from 2.5, but since 2.4 has
IPV6_ADDRFORM defined (and its shipped), it should be
supported rather than deleted.
Cheers,
Steve Grubb
-------
diff -ur linux-2.4.18/net/ipv6/ipv6_sockglue.c
linux-2.4.18a/net/ipv6/ipv6_sockglue.c
--- linux-2.4.18/net/ipv6/ipv6_sockglue.c Thu Sep 20
17:12:56 2001
+++ linux-2.4.18a/net/ipv6/ipv6_sockglue.c Thu Oct 3
09:23:55 2002
@@ -412,6 +412,16 @@
if (get_user(len, optlen))
return -EFAULT;
switch (optname) {
+ case IPV6_ADDRFORM:
+ if (sk->protocol != IPPROTO_UDP &&
+ sk->protocol != IPPROTO_TCP)
+ return -EINVAL;
+
+ if (sk->state != TCP_ESTABLISHED)
+ return -ENOTCONN;
+
+ val = sk->family;
+ break;
case IPV6_PKTOPTIONS:
{
struct msghdr msg;
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] 2.4.18 IPV6_ADDRFORM
2002-10-03 13:27 [PATCH] 2.4.18 IPV6_ADDRFORM Steve G
@ 2002-10-03 13:24 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-10-03 13:24 UTC (permalink / raw)
To: linux_4ever; +Cc: linux-kernel
From: Steve G <linux_4ever@yahoo.com>
Date: Thu, 3 Oct 2002 06:27:27 -0700 (PDT)
diff -ur linux-2.4.18/net/ipv6/ipv6_sockglue.c
linux-2.4.18a/net/ipv6/ipv6_sockglue.c
--- linux-2.4.18/net/ipv6/ipv6_sockglue.c Thu Sep 20
17:12:56 2001
+++ linux-2.4.18a/net/ipv6/ipv6_sockglue.c Thu Oct 3
09:23:55 2002
Your mail client adds line breaks to the patch making it
unapplyable, please fix your mail client not to do this
and resend the patch.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-03 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 13:27 [PATCH] 2.4.18 IPV6_ADDRFORM Steve G
2002-10-03 13:24 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®