All of lore.kernel.org
 help / color / mirror / Atom feed
* Function pointers in conntrack structures
@ 2003-09-02 13:16 Kovacs Krisztian
  2003-09-05 12:10 ` Harald Welte
  0 siblings, 1 reply; 3+ messages in thread
From: Kovacs Krisztian @ 2003-09-02 13:16 UTC (permalink / raw)
  To: netfilter-devel


  Hi,

  I've found a weird looking function pointer in the connection tracking
system: the expectfn member of struct ip_conntrack_expect. AFAIK, this
function would be called by conntrack when a matching connection is found
for the registered expectation. However, I was unable to find any
conntrack helpers which use this functionality.

  My problem with this function pointer is that it cannot be replicated:
you cannot just send the function pointer over the wire, because on the
other nodes it may have completely different address. While there are
other pointers in the conntrack structures as well, all of them have some
kind of associated data which can be used as an ID. (For example: although
helpers -- which are function pointers of some kind -- are associated with
conntrack entries, however, they have to be registered, and the conntrack
entry is associated with the registered helper structure instead of just the
callback function. This is very important, because these structures all
contain a "name" field, which can be used as an ID.

  So, the only problem point I've found is the expectfn field of struct
ip_conntrack_expect, for which I've no idea how that could be handled. Is
the possibility of having more than one kind of callback function for
expectation creation really so important? (If only one kind of function
would be usable by conntrack helpers, its address could be stored in
struct ip_conntrack_helper, and we didn't have the whole problem.)

  Any ideas?

-- 
 Kovács Krisztián (Hidden)

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

end of thread, other threads:[~2003-09-12 13:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-02 13:16 Function pointers in conntrack structures Kovacs Krisztian
2003-09-05 12:10 ` Harald Welte
2003-09-12 13:26   ` Jozsef Kadlecsik

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.