From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 7 18:08:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2623516A412 for ; Tue, 7 Nov 2006 18:08:45 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91E2143D5C for ; Tue, 7 Nov 2006 18:08:39 +0000 (GMT) (envelope-from josh.carroll@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1100269uge for ; Tue, 07 Nov 2006 10:08:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=eanfFl+z693nenItkKF9O+WWEvtUD6icNwBnNW5IZo018419b0F7Qg9SrjA3rMCxVN0xrV5TU0cCsnO/LoMXuA62zBg4hyW0KscOvySyImFxdbnwLLNBJBDjqVf9WcqVQo3uXiZIU7djo/I2gCw7Ljw6u4cZy/eSJzqeq5HDkqI= Received: by 10.82.129.5 with SMTP id b5mr1554402bud.1162922914291; Tue, 07 Nov 2006 10:08:34 -0800 (PST) Received: by 10.82.163.16 with HTTP; Tue, 7 Nov 2006 10:08:34 -0800 (PST) Message-ID: <8cb6106e0611071008y6811a79x9ba056c2be94d773@mail.gmail.com> Date: Tue, 7 Nov 2006 10:08:34 -0800 From: "Josh Carroll" Sender: josh.carroll@gmail.com To: "Brooks Davis" In-Reply-To: <20061107174151.GA51473@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061102094748.G75543@mignon.ki.iif.hu> <20061103021803.GC8508@kobe.laptop> <8cb6106e0611021834h17737556y4bb2fda39a4bfa0c@mail.gmail.com> <20061103024621.GB16445@kobe.laptop> <20061103024837.GB79357@lor.one-eyed-alien.net> <20061103025442.GB16543@kobe.laptop> <8cb6106e0611031550y1381b67agdc74144b89de763b@mail.gmail.com> <20061104062439.GD854@turion.vk2pj.dyndns.org> <8cb6106e0611061517k62c9193fnbbfc8e36db328282@mail.gmail.com> <20061107174151.GA51473@lor.one-eyed-alien.net> X-Google-Sender-Auth: a4c8043cd592b9ed Cc: freebsd-hackers@freebsd.org Subject: Re: sockstat tcp/udp switches X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Nov 2006 18:08:45 -0000 > On other suggestion I'd have it to consider using strsep to parse the > string. I'm pretty the code will be smaller and more readable. Good point. And yes, per the other mail I do need to fix the MAX_PROTO_LEN checking, but I'll make sure that is proper when I update it to use strsep. Josh