From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 03:49:01 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 4BB7816A517; Thu, 16 Sep 2004 03:49:01 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 27839 invoked by uid 1005); 29 Aug 2003 17:10:06 -0000 Delivered-To: max@vampire.homelinux.org Received: (qmail 27836 invoked from network); 29 Aug 2003 17:10:06 -0000 Received: from moutng.kundenserver.de (212.227.126.189) by pd9e39106.dip.t-dialin.net with SMTP; 29 Aug 2003 17:10:06 -0000 Received: from [212.227.126.210] (helo=mxng14.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19sneH-00045K-00 for max@vampire.homelinux.org; Fri, 29 Aug 2003 20:07:01 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng14.kundenserver.de with esmtp (Exim 3.35 #1) id 19sneF-0006Vt-00 for max@love2party.net; Fri, 29 Aug 2003 20:06:59 +0200 Received: from turing (localhost [127.0.0.1])ESMTP id C1944390705; Fri, 29 Aug 2003 13:07:22 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Fri, 29 Aug 2003 13:07:18 -0500 (EST) Delivered-To: pf4freebsd@freelists.org Received: from mail.fluidhosting.com (ns1.fluidhosting.com [66.150.201.70]) SMTP id EAE63390803 for ; Fri, 29 Aug 2003 13:07:17 -0500 (EST) Received: (qmail 72240 invoked by uid 1004); 29 Aug 2003 17:44:39 -0000 Received: from 207.188.198.140 ( [207.188.198.140])with HTTP; Fri, 29 Aug 2003 13:44:39 -0400 Message-ID: <1062179079.3f4f9107b1d29@mail.fluidhosting.com> From: pf-r@solarflux.org To: pf4freebsd@freelists.org References: <006101c36dde$01cb64e0$01000001@max900> <1062160039.3f4f46a77d2d3@mail.fluidhosting.com> <004001c36e48$591c6680$01000001@max900> In-Reply-To: <004001c36e48$591c6680$01000001@max900> MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 207.188.198.140 X-archive-position: 128 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: pf-r@solarflux.org Precedence: normal X-list: pf4freebsd X-UID: 243 X-Length: 3794 X-Mailman-Approved-At: Thu, 16 Sep 2004 03:55:52 +0000 Subject: [pf4freebsd] Re: 'Version' enhancement request X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 03:49:01 -0000 X-Original-Date: Fri, 29 Aug 2003 13:44:39 -0400 X-List-Received-Date: Thu, 16 Sep 2004 03:49:01 -0000 Thanks, Max. I've installed 1.63 and have verified that both methods work as expected. Will add this info to the pf-r: # dmesg|grep VER pflog: $Name: VERSION_1_63 $ pfsync: $Name: VERSION_1_63 $ pfaltq: $Name: VERSION_1_63 $ pf: $Name: VERSION_1_63 $ # ident /sbin/pf*|grep VER (should get two responses, for pfctl and pflogd) $Name: VERSION_1_63 $ $Name: VERSION_1_63 $ Max, /sbin/pftcpdump doesn't have a $Name: VERSION_1_63 string. Not sure about any of the contrib binaries, haven't rebuilt pftop nor built any others to check. -S Quoting Max Laier : > Hello, > > good point! But we don't want to modify pfctl (or any of the sources) more > than needed to make it work, hence I added another way to get version > information: > 1) The kernel modules will printf the following (watch your console or use > dmesg(8)): > pflog: $Name: VERSION_1_63 $ > pfsync: $Name: VERSION_1_63 $ > pfaltq: $Name: VERSION_1_63 $ > pf: $Name: VERSION_1_63 $ > 2) All binary files can be identified useing RCS ident(1): > $ident /sbin/pfctl > /sbin/pfctl: > (...) > $Name: VERSION_1_63 $ > > I revised pf_freebsd_1.63.tar.gz new tarball has: > MD5 (pf_freebsd_1.63.tar.gz) = cad275628e25058b6416457417cf93a6 > > This might not be the cleanest possible way, but it works.