Packing netgraph structs
rik at cronyx.ru
Thu Jul 1 07:22:17 PDT 2004
Anil Madhavapeddy wrote:
> On 1 Jul 2004, at 13:48, Roman Kurakin wrote:
>> If this is a problem why can't you make some wrapper that will
>> pack/unpack written on C,
>> which will be a lib for you?
> Because I want to minimise the size of the foreign bindings - this
> would require C code for every single Netgraph struct. If they were
> packed, I could just do it all in OCaml.
Packing lead to perfomance issues. So it is used only in case of packet
specifications were each bit
may have its own meaning and there place is fixed by protocol which is
and we cant just add a couple of them.
> Isn't this a problem for other language bindings as well, or is
> everyone doing Netgraph userland hacking in C at the moment?
For Unix programming I do not use other languages than C, except for
And I believe I am not in minority. IMHO perfomace issue is more
cross language interaction which is in minority.
> Anil Madhavapeddy
> University of Cambridge
> freebsd-net at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
More information about the freebsd-net