From owner-freebsd-current@FreeBSD.ORG Mon May 22 07:11:21 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F8ED16A425; Mon, 22 May 2006 07:11:21 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CB6043D45; Mon, 22 May 2006 07:11:20 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.4/8.13.3) with ESMTP id k4M7BG7S099863 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 May 2006 11:11:17 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.4/8.13.1/Submit) id k4M7BGV2099862; Mon, 22 May 2006 11:11:16 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 22 May 2006 11:11:16 +0400 From: Gleb Smirnoff To: Ganbold Message-ID: <20060522071116.GD84736@cell.sick.ru> References: <446D7741.10102@micom.mng.net> <20060519095344.P13833@beagle.kn.op.dlr.de> <446D7C09.3090003@micom.mng.net> <20060519081215.GO84736@cell.sick.ru> <446D80EC.3010106@micom.mng.net> <20060519135346.L13833@beagle.kn.op.dlr.de> <44713B93.2060603@micom.mng.net> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <44713B93.2060603@micom.mng.net> User-Agent: Mutt/1.5.6i Cc: ru@FreeBSD.org, freebsd-current@FreeBSD.org, Harti Brandt Subject: Re: small patch for ngctl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 May 2006 07:11:21 -0000 On Mon, May 22, 2006 at 01:18:27PM +0900, Ganbold wrote: G> Harti Brandt wrote: G> >On Fri, 19 May 2006, Ganbold wrote: G> > G> >G>Gleb Smirnoff wrote: G> >G>> On Fri, May 19, 2006 at 05:04:25PM +0900, Ganbold wrote: G> >G>> G> I see. How can I make system to send unexpected messages to ngctl? G> >G>> G> >G>> G> >G>> > kldload ng_ether G> >G>> > ngctl G> >G>> > G> >G>> G> >G>> + ls G> >G>> There are 2 total nodes: G> >G>> Name: ngctl990 Type: socket ID: 00000004 Num G> >hooks: 0 G> >G>> Name: fxp0 Type: ether ID: 00000002 Num G> >hooks: 0 G> >G>> + connect fxp0: qqq lower G> >G>> + Rec'd data packet on hook "qqq": G> >G>> 0000: 00 10 a4 89 56 3f 00 30 48 80 34 83 08 00 45 00 G> >....V?.0H.4...E. G> >G>> 0010: 05 dc a0 91 20 00 40 11 91 7a 51 13 40 70 51 13 .... G> >.@..zQ.@pQ. G> >G>> 0020: 40 6f 08 01 03 27 20 88 9b c6 77 90 1f ee 00 00 @o...' G> >...w..... G> >G>> 0030: 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 G> >................ G> >G>> 0040: 00 00 00 00 00 00 00 00 00 01 00 00 00 01 00 00 G> >................ G> >G>> 0050: 01 a4 00 00 00 01 00 00 03 e8 00 00 00 00 00 00 G> >................ G> >G>> G> >G>> G> >G>It receives bunch of stuffs with patched ngctl: G> >G> G> >G>+ ls G> >G>There are 3 total nodes: G> >G> Name: ngctl3919 Type: socket ID: 00000005 Num hooks: 1 G> >G> Name: fxp0 Type: ether ID: 00000003 Num hooks: 1 G> >G> Name: re0 Type: ether ID: 00000002 Num hooks: 0 G> >G>+ connect re0: qqq lower G> >G>ngctl: send msg: File exists G> >G>+ connect re0: qqqq lower G> >G>+ G> >G>Rec'd data packet on hook "qqqq": G> >G>0000: ff ff ff ff ff ff 00 14 6c 2e 23 71 08 00 45 00 ........l.#q..E. G> >G>0010: 00 4e 17 32 00 00 80 11 a0 e2 c0 a8 00 3b c0 a8 .N.2.........;.. G> >G>0020: 00 ff 00 89 00 89 00 3a 9b d7 80 8d 01 10 00 01 .......:........ G> >G>0030: 00 00 00 00 00 00 20 45 43 45 42 46 45 45 45 46 ...... ECEBFEEEF G> >G>0040: 46 45 4d 45 42 45 4e 43 41 43 41 43 41 43 41 43 FEMEBENCACACACAC G> >G>0050: 41 43 41 43 41 43 41 00 00 20 00 01 ACACACA.. .. G> >G>Rec'd data packet on hook "qqqq": G> >G>0000: ff ff ff ff ff ff 00 14 6c 2e 28 9d 08 06 00 01 ........l.(..... G> >G>0010: 08 00 06 04 00 01 00 14 6c 2e 28 9d c0 a8 00 07 ........l.(..... G> >G>0020: 00 00 00 00 00 00 c0 a8 00 3b 00 00 00 00 00 00 .........;...... G> >G>0030: 00 00 00 00 00 00 00 00 00 00 00 00 ............ G> >G>+ G> >G>Rec'd data packet on hook "qqqq": G> >G>0000: ff ff ff ff ff ff 00 14 6c 2e 23 71 08 00 45 00 ........l.#q..E. G> >G>0010: 00 4e 17 47 00 00 80 11 a0 cd c0 a8 00 3b c0 a8 .N.G.........;.. G> >G>0020: 00 ff 00 89 00 89 00 3a 9b d8 80 8e 01 10 00 01 .......:........ G> >G>0030: 00 00 00 00 00 00 20 45 43 45 42 46 45 45 45 46 ...... ECEBFEEEF G> >G>0040: 46 45 4d 45 42 45 4e 43 41 43 41 43 41 43 41 43 FEMEBENCACACACAC G> >G>0050: 41 43 41 43 41 41 41 00 00 20 00 01 ACACAAA.. .. G> >G>+ G> >G>Rec'd data packet on hook "qqqq": G> >G>0000: ff ff ff ff ff ff 00 14 6c 2e 23 71 08 00 45 00 ........l.#q..E. G> >G>0010: 00 4e 17 4e 00 00 80 11 a0 c6 c0 a8 00 3b c0 a8 .N.N.........;.. G> >G>0020: 00 ff 00 89 00 89 00 3a b1 dc 80 8f 01 10 00 01 .......:........ G> >G>0030: 00 00 00 00 00 00 20 45 4f 45 42 46 44 45 42 45 ...... EOEBFDEBE G> >G>0040: 42 43 41 43 41 43 41 43 41 43 41 43 41 43 41 43 BCACACACACACACAC G> >G>... G> >G> G> >G>Is it what it supposed to handle? G> > G> >Yes. Nice. That's a feature I was missing for a long time. G> > G> Did you test this patch by any chance? Is there any issue with it to be G> not committed? G> Please let me know. I will review and commit soon. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE