Netgraph, meta and socket PF_NG
Julian Elischer
julian at elischer.org
Thu Jul 24 11:26:54 PDT 2003
you are correct
My plan was to use the metadata part of recvmesg()
to transfer metadata but never implemented it and it has not been
needed.
I suggest that you write a very simple node (start with ng_sample.c)
that converts metadata to a 'header' prepends it to the data
and then pass that up.
Alternatively you could look at implementing the recvmesg()
metadata transfer.
On Thu, 24 Jul 2003, Vincent Jardin wrote:
> With the regular data, I would like to send an opaque data from a netgraph
> node to a userland program that has a NG_DATA/PF_NETGRAPH socket. This opaque
> data is the meta.
> How can it be performed ?
>
> Then, from the userland program, how to send data with an opaque to a
> NG_DATA/PF_NG socket ? Then this opaque would be a netgraph's meta.
>
> It seems that ng_socket does not support this feature, however I am not sure
> that I understand properly its source code. ;-(
>
> Thanks,
> Vincent
> _______________________________________________
> 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