Packing netgraph structs
Roman Kurakin
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
lang/arch/etc independant
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
scripting.
And I believe I am not in minority. IMHO perfomace issue is more
important than
cross language interaction which is in minority.
rik
>
> --
> Anil Madhavapeddy
> http://anil.recoil.org
> University of Cambridge
> http://www.cl.cam.ac.uk
>
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
>
More information about the freebsd-net
mailing list