[PATCH] owner-socketlookup update for 2.6.10

Jonas Berlin xkr47 at outerspace.dyndns.org
Mon Nov 7 11:03:37 CET 2005


Norman Rasmussen wrote:
> I tried changing (in udp.h):
>
> extern struct sock *udp_v4_lookup
>
> to
>
> extern static struct sock *udp_v4_lookup
>
> but now gcc tells me:
>
> include/net/udp.h:77: error: multiple storage classes in declaration
specifiers
>
> :-(
>
> any tips on getting an __inline__ function to be recognised
> externally, or are they mutually exclusive?

In udp.c you should change

static __inline__ struct ...

to

extern __inline__ struct ...

And in udp.h you should have

extern struct ...

I hope it works out. Sorry for the late reply :(

- xkr47



More information about the netfilter-devel mailing list