From owner-freebsd-net@FreeBSD.ORG Fri Mar 4 16:23:35 2005 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 A92DF16A4CE for ; Fri, 4 Mar 2005 16:23:35 +0000 (GMT) Received: from te-clan.ch (ns1.te-clan.ch [217.118.194.40]) by mx1.FreeBSD.org (Postfix) with SMTP id 7DF2943D2D for ; Fri, 4 Mar 2005 16:23:34 +0000 (GMT) (envelope-from bachi@te-clan.ch) Received: (qmail 44964 invoked from network); 4 Mar 2005 16:22:49 -0000 Received: from unknown (HELO te-clan.ch) (127.0.0.1) by te-clan.ch with SMTP; 4 Mar 2005 16:22:49 -0000 Received: from 193.134.254.115 (SquirrelMail authenticated user bachi@te-clan.ch) by webmail.te-clan.ch with HTTP; Fri, 4 Mar 2005 17:22:49 +0100 (CET) Message-ID: <29347.193.134.254.115.1109953369.squirrel@webmail.te-clan.ch> Date: Fri, 4 Mar 2005 17:22:49 +0100 (CET) From: To: In-Reply-To: <37e13166050304080715525d7e@mail.gmail.com> References: <37e13166050304080715525d7e@mail.gmail.com> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.10) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-net@freebsd.org Subject: Re: generic network protocols parser ? 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: Fri, 04 Mar 2005 16:23:35 -0000 i'm not an expert, but you can attach to bpf (berkeley packet filter) greets Andreas Bachmann > Hi all, > I am wondering if any one knows about a generic parser which takes a > packet (mbuf) of a certain protocol (e.g RSVP ) as input and generates > some data structre representing the packet ? > > I've been searching for a while and found that ethereal and tcpdump for > example use specific data structres and functions to dissect each > protocol packets. Is this the only approach possible ? > > My supervisor suggested using a TLV (Type/Length/Value) approach > instead. Any opinions about that? > > If no such a parser exists is there any practical reason why ? > > Thanks, > Aziz > _______________________________________________ > 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"