login
Header Space

 
 

Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kernels.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <netdev@...>, <netdev-owner@...>, <yoshfuji@...>
Date: Saturday, April 26, 2008 - 3:13 am

> If you're going to use callbacks, and I'd be also asking you to

        Well, I didn't want to make 2 copies of completely identical
code and then just change the protocol setsockopt code we call at
the end of it. If we did this:

compat_ipv6_setsockopt()
{
        if (got an MCAST* optval)
                return compat_mc_setsockopt(....optval, optlen, 
ipv6_setsockopt);
}

and in compat_mc_setsockopt:

int compat_mc_setsockopt(...., func decl) {
        ...all common code that twiddles args for both IPv6 and IPv4
        return func(....);
}

        Then there are no cross references to anything else in the
compat code and we can't get there with func==ipv6_setsockopt unless
we were called from compat_ipv6_setsockopt(), which means we must have
ipv6_setsockopt(). Right? The protocol setsockopt functions are already
external, so I'd expect compat would need any CONFIG guarding. Am I
missing something?

                                                        +-DLS

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kern..., YOSHIFUJI Hideaki / , (Thu Apr 24, 4:02 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 2:37 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 2:59 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 3:24 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 1:14 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 11:33 pm)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 1:09 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 12:53 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Sat Apr 26, 1:56 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., David Stevens, (Sat Apr 26, 3:13 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Fri Apr 25, 1:38 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 4:16 am)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 2:46 pm)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 4:43 pm)
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ..., YOSHIFUJI Hideaki / , (Thu Apr 24, 5:28 am)
speck-geostationary