All of lore.kernel.org
 help / color / mirror / Atom feed
* EXPORT_SYMBOL(hash_conntrack)
@ 2005-05-18 21:47 Damon Gray
  2005-05-19  3:10 ` EXPORT_SYMBOL(hash_conntrack) Pablo Neira
  0 siblings, 1 reply; 4+ messages in thread
From: Damon Gray @ 2005-05-18 21:47 UTC (permalink / raw)
  To: netfilter-devel


I have a need to be able to use hash_conntrack in a kernel module. Does 
anyone see a problem if hash_conntrack was exported? I'd prefer to use the 
function instead of duplicating it with jhash_3words just so I don't have 
to keep track of how hash_conntrack does the hashing.

Thanks

-Damon-

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

* Re: EXPORT_SYMBOL(hash_conntrack)
  2005-05-18 21:47 EXPORT_SYMBOL(hash_conntrack) Damon Gray
@ 2005-05-19  3:10 ` Pablo Neira
  2005-05-20 15:18   ` EXPORT_SYMBOL(hash_conntrack) Damon Gray
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo Neira @ 2005-05-19  3:10 UTC (permalink / raw)
  To: Damon Gray; +Cc: netfilter-devel

Damon Gray wrote:
> I have a need to be able to use hash_conntrack in a kernel module. Does 
> anyone see a problem if hash_conntrack was exported? I'd prefer to use 
> the function instead of duplicating it with jhash_3words just so I don't 
> have to keep track of how hash_conntrack does the hashing.

Well, all the current exported symbols are used by other modules in 
kernel mainline and pom-ng. So you'll have to justify such exportation 
with some kind of candidate client (maybe your module) that could be 
useful for everyone.

--
Pablo

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

* Re: EXPORT_SYMBOL(hash_conntrack)
  2005-05-19  3:10 ` EXPORT_SYMBOL(hash_conntrack) Pablo Neira
@ 2005-05-20 15:18   ` Damon Gray
  2005-05-20 15:36     ` EXPORT_SYMBOL(hash_conntrack) Damon Gray
  0 siblings, 1 reply; 4+ messages in thread
From: Damon Gray @ 2005-05-20 15:18 UTC (permalink / raw)
  To: Pablo Neira; +Cc: netfilter-devel


Understood, would it be more appropriate to change it to a static inline 
in ip_conntrack_core.h? It seems like a good candidate for inlining 
anyways.

Thanks

-Damon-

On Thu, 19 May 2005, Pablo Neira wrote:

> Damon Gray wrote:
>> I have a need to be able to use hash_conntrack in a kernel module. Does 
>> anyone see a problem if hash_conntrack was exported? I'd prefer to use the 
>> function instead of duplicating it with jhash_3words just so I don't have 
>> to keep track of how hash_conntrack does the hashing.
>
> Well, all the current exported symbols are used by other modules in kernel 
> mainline and pom-ng. So you'll have to justify such exportation with some 
> kind of candidate client (maybe your module) that could be useful for 
> everyone.
>
> --
> Pablo
>
>

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

* Re: EXPORT_SYMBOL(hash_conntrack)
  2005-05-20 15:18   ` EXPORT_SYMBOL(hash_conntrack) Damon Gray
@ 2005-05-20 15:36     ` Damon Gray
  0 siblings, 0 replies; 4+ messages in thread
From: Damon Gray @ 2005-05-20 15:36 UTC (permalink / raw)
  To: Pablo Neira; +Cc: netfilter-devel


Nevermind, hash_conntrack uses the static ip_conntrack_hash_rnd.

-Damon-

On Fri, 20 May 2005, Damon Gray wrote:

>
> Understood, would it be more appropriate to change it to a static inline in 
> ip_conntrack_core.h? It seems like a good candidate for inlining anyways.
>
> Thanks
>
> -Damon-
>
> On Thu, 19 May 2005, Pablo Neira wrote:
>
>> Damon Gray wrote:
>>> I have a need to be able to use hash_conntrack in a kernel module. Does 
>>> anyone see a problem if hash_conntrack was exported? I'd prefer to use the 
>>> function instead of duplicating it with jhash_3words just so I don't have 
>>> to keep track of how hash_conntrack does the hashing.
>> 
>> Well, all the current exported symbols are used by other modules in kernel 
>> mainline and pom-ng. So you'll have to justify such exportation with some 
>> kind of candidate client (maybe your module) that could be useful for 
>> everyone.
>> 
>> --
>> Pablo
>> 
>> 
>
>
>

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

end of thread, other threads:[~2005-05-20 15:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18 21:47 EXPORT_SYMBOL(hash_conntrack) Damon Gray
2005-05-19  3:10 ` EXPORT_SYMBOL(hash_conntrack) Pablo Neira
2005-05-20 15:18   ` EXPORT_SYMBOL(hash_conntrack) Damon Gray
2005-05-20 15:36     ` EXPORT_SYMBOL(hash_conntrack) Damon Gray

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.