From owner-freebsd-net@FreeBSD.ORG Tue Jan 14 11:45:38 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B93A1DE2 for ; Tue, 14 Jan 2014 11:45:38 +0000 (UTC) Received: from quix.smartspb.net (quix.smartspb.net [217.119.16.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 73DEF1CD1 for ; Tue, 14 Jan 2014 11:45:38 +0000 (UTC) Received: from dyr.smartspb.net ([217.119.16.26] helo=[127.0.0.1]) by quix.smartspb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.61 (FreeBSD)) (envelope-from ) id 1W32R6-000Gt6-3l for freebsd-net@freebsd.org; Tue, 14 Jan 2014 15:45:36 +0400 Message-ID: <52D5235F.2010201@smartspb.net> Date: Tue, 14 Jan 2014 15:45:35 +0400 From: Dennis Yusupoff User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: Set UDP packet size in ng_netflow/ng_ksocket? References: <52D51153.6020607@smartspb.net> <20140114103323.GS8472@FreeBSD.org> In-Reply-To: <20140114103323.GS8472@FreeBSD.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 140114-0, 14.01.2014), Outbound message X-Antivirus-Status: Clean X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jan 2014 11:45:38 -0000 I didn't find any open Netfow v5 specification, so why wouldn't add ability to set MTU size for v5 also as it already has done for v9? Anyway most people exporting netflow to open-source utuilties, such as flow-tools, that, AFAIK, doesn't care about exact datagram size. 14.01.2014 14:33, Gleb Smirnoff пишет: > The ng_ksocket is irrelevant here. This is ng_netflow, who decides on > datagram size. AFAIR, the size of Netflow datagram is dictated by the Cisco > Netflow, and full sized datagram fits into 1500 MTU. Probably it was designed > to be used on 1500 MTU sized networks. > > You can hack sources and redefine NETFLOW_V1_MAX_RECORDS or NETFLOW_V5_MAX_RECORDS > so that datagram would fit your link. > -- Best regards, Dennis Yusupoff, network engineer of Smart-Telecom ISP Russia, Saint-Petersburg