From owner-freebsd-net@freebsd.org Fri Nov 8 15:04:09 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 15AC31B537A for ; Fri, 8 Nov 2019 15:04:09 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 478k7T05X6z4Thp for ; Fri, 8 Nov 2019 15:04:01 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 3DAD88D4A129; Fri, 8 Nov 2019 15:03:51 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 9B4E9E7084E; Fri, 8 Nov 2019 15:03:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id yKRzEbd_A9dk; Fri, 8 Nov 2019 15:03:49 +0000 (UTC) Received: from [192.168.2.110] (unknown [IPv6:fde9:577b:c1a9:31:457b:46d8:e0e4:7a96]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id EEC74E707B2; Fri, 8 Nov 2019 15:03:46 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Mike Karels" Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD as multicast router Date: Fri, 08 Nov 2019 15:03:45 +0000 X-Mailer: MailMate (2.0BETAr6142) Message-ID: <6F37B324-17FB-49EE-BA22-0BC78BA2C3EC@lists.zabbadoz.net> In-Reply-To: <201911080730.xA87UAel076108@mail.karels.net> References: <201911080730.xA87UAel076108@mail.karels.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Rspamd-Queue-Id: 478k7T05X6z4Thp X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net X-Spamd-Result: default: False [-5.11 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.81)[ip: (-8.75), ipnet: 195.201.0.0/16(-3.58), asn: 24940(-1.69), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 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, 08 Nov 2019 15:04:09 -0000 On 8 Nov 2019, at 7:30, Mike Karels wrote: >> P.S. I rebuild kernel with MROUTING option but >> ===== >> # netstat -gs -f inet >> No IPv4 MROUTING kernel support >> ===== > >> still here > > Oh, I see; that's another manifestation of the bug that makes netstat > fail with the loadable module. It doesn't work if VNET is defined, > because then there isn't a single stats structure with the expected > name. My fixed netstat would work. Let me know what FreeBSD version > you are running, and I can build a fixed version; or I can send a > patch. How did you fix netstat? The proper way to fix this seems to be to stop using lkvm for querying the stats and properly exporting them in the kernel. /bz