From owner-freebsd-net@FreeBSD.ORG Thu Jul 24 11:26:54 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 109A737B401 for ; Thu, 24 Jul 2003 11:26:54 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9935743F3F for ; Thu, 24 Jul 2003 11:26:53 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc12) with ESMTP id <2003072418265201400t7mmie>; Thu, 24 Jul 2003 18:26:53 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA69270; Thu, 24 Jul 2003 11:26:47 -0700 (PDT) Date: Thu, 24 Jul 2003 11:26:46 -0700 (PDT) From: Julian Elischer To: Vincent Jardin In-Reply-To: <200307241956.03699.vjardin@wanadoo.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: net@freebsd.org Subject: Re: Netgraph, meta and socket PF_NG X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 18:26:54 -0000 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" >