From owner-freebsd-net@FreeBSD.ORG Sun Mar 21 17:12:56 2004 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 7BC9D16A4CE for ; Sun, 21 Mar 2004 17:12:56 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A54343D39 for ; Sun, 21 Mar 2004 17:12:56 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004032201125501300dtgpae>; Mon, 22 Mar 2004 01:12:55 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA27259; Sun, 21 Mar 2004 17:13:09 -0800 (PST) Date: Sun, 21 Mar 2004 17:13:07 -0800 (PST) From: Julian Elischer To: =?iso-8859-1?q?manish=20gautam?= In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: Problem in Netgraph ( TESTING OF MY NODE ) 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: Mon, 22 Mar 2004 01:12:56 -0000 On Sun, 21 Mar 2004, Julian Elischer wrote: > > > On Sun, 21 Mar 2004, [iso-8859-1] manish gautam wrote: > > > Ist problem > > ============= > > > > i hav created my own node named "m" .and using > > commands > > > > kldload netgraph > > kldload ng_ether > > kldload ng_m > > > > i also create an ether node and then i attach my "m" > > node to ether node using > > > > ngctl mkpeer ed0: m upper right > > > > after that on command ::--> > > > > ngctl msg my_m: getstats ( my_m is name of peer to > > ether i.e my node ) > > > > result is as follows ::--> > > > > Rec'd response "getstats" (1) from "my_m:": > > Args: { right={inOctets=3508 inFrames=54 } > > left={outOctets=3508 outFrames=54 } } > > > It means that your module is doing SOMETHING > I can not say if it is working as I don't know aything about your node.. > I presume it is based on the 'tee' node.. > > > > > > Does that mean my node is working... YES or NO? > > If yes , is every packet coming through ethernet card > > pass through my node. > > no, you only connected to the 'upper' part of the ethernet > interface so you are only capturing outgoing packets > I'm not sure if the node correctly does not count bytes going out a > disconnected hook or not. Looking at ng_tee I see a bug where bytes are counted even if the output hook is diconnected.. I will commit a fix now.... > > > you should also do: ngctl connect ng_m: ed0: left lower > > or something like that I presume > > you may also want to look at the ng_etf node > (and it's man page (man ng_etf) > > > I'm presuming youhave read the man pages.. there should be one for every > node type.. > ng_tee ng_ether etc. > > > If no, how do I check it and made every packet pass > > through my own node. > > > look at the packets by attaching nghook to the left2right and > right2left hooks > > > > _______________________________________________ > 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" >