Phil Dibowitz wrote: > Hey folks, > > I've been playing with libnetfilter_conntrack, and I quite like where the > interface has come. > > I'm having a bit of a problem though, apparently understanding the > nfct_conntrack struct, however. > > I have a bit of sample code that registers a callback and then calls > nfct_dump_conntrack_table(). My callback is essentially just: ::sigh:: You can ignore the question. Since inet_ntoa uses static buffers, it was simply inet_ntoa() overwriting that buffer before the sprintf() was done. Sorry for the noise. -- Phil Dibowitz phil@ipom.com 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