libnetfilter_conntrack.h missing struct nf_conntrack definition
None of the libnetfilter_conntrack's "public" headers include the full definition of struct nf_conntrack.
It's not a 'private' structure (__*), thought it uses private structures within it... This means I can't do things like memcpy() them, sizeof() them, or even build an STL vector of them (yeah, I know, ew, yuck, c++).
Since nf_conntrack structs are passed around to the applications using nfct, it seems reasonable to desire to do things with them.
Signature · 9 lines
Phil Dibowitz [email protected] Open Source software and tech docs Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "Never write it in C if you can do it in 'awk'; Never do it in 'awk' if 'sed' can handle it; Never use 'sed' when 'tr' can do the job; Never invoke 'tr' when 'cat' is sufficient; Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming
Quoted 9 lines · Phil Dibowitz
None of the libnetfilter_conntrack's "public" headers include the full definition of struct
nf_conntrack.It's not a 'private' structure (__*), thought it uses private structures within it... This means I can't do things like
memcpy()them,sizeof()them, or even build an STL vector of them (yeah, I know, ew, yuck, c++).Since
nf_conntrackstructs are passed around to the applications using nfct, it seems reasonable to desire to do things with them.
Looks like this was sorta thought of. Apparently you can return NFCT_CB_STOLEN which will cause it to not be freed. I can then keep pointers to the object rather than the object itself...
Oh well - I already restructured my code to get around this. :)
So you can ignore the original email.
Signature · 9 lines
Phil Dibowitz [email protected] Open Source software and tech docs Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "Never write it in C if you can do it in 'awk'; Never do it in 'awk' if 'sed' can handle it; Never use 'sed' when 'tr' can do the job; Never invoke 'tr' when 'cat' is sufficient; Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming