Hi, Victor Stinner wrote: > Libnetfilter_conntrack getters and setters of new API are not complete: > * it's not possible to set counter attributes value Because of ctnetlink, the kernel part of this whole thing, doesn't support this. Anyway, as you pointed out below, I can't see how this could be useful. > * it's not possible to set or read 'use' and 'id' attributes value The 'use' attribute must be possible to be get, but not set. I'll commit the patch for the getter mangled, I prefer dropping the 'id' support since it's planned to be removed. > I can understand that setting counter values is not very useful, but trying to > set them would lead to a crash (call NULL function). Same problem when trying > to read use/id attribute value. OK, I think that the patch attached should be enough. > An alternative for nfct_set_attr() is to do nothing if the getter in NULL (and > set an error?). I prefer doing nothing and documenting this issue, perhaps doing some kind of warning or assertion, although that would be too much I think. Moreover, the error thing would pollute the code with tons of error checkings in the set operations. Thanks again Victor. -- The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris