Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2003 11:26:46 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Vincent Jardin <vjardin@wanadoo.fr>
Cc:        net@freebsd.org
Subject:   Re: Netgraph, meta and socket PF_NG
Message-ID:  <Pine.BSF.4.21.0307241123150.36615-100000@InterJet.elischer.org>
In-Reply-To: <200307241956.03699.vjardin@wanadoo.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0307241123150.36615-100000>