From owner-freebsd-net@FreeBSD.ORG Tue Jan 14 10:33:26 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F465D10 for ; Tue, 14 Jan 2014 10:33:26 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DD261168D for ; Tue, 14 Jan 2014 10:33:25 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.7/8.14.7) with ESMTP id s0EAXN5n024671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 14 Jan 2014 14:33:23 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.7/8.14.7/Submit) id s0EAXNgd024670; Tue, 14 Jan 2014 14:33:23 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 14 Jan 2014 14:33:23 +0400 From: Gleb Smirnoff To: Dennis Yusupoff Subject: Re: Set UDP packet size in ng_netflow/ng_ksocket? Message-ID: <20140114103323.GS8472@FreeBSD.org> References: <52D51153.6020607@smartspb.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52D51153.6020607@smartspb.net> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-net@freebsd.org 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 10:33:26 -0000 On Tue, Jan 14, 2014 at 02:28:35PM +0400, Dennis Yusupoff wrote: D> Are there any way to set UDP packet size generated from ng_netflow with D> ng_ksocket? D> I'm sending netflow UDP packets throught tunnel with MTU 1476 and it's D> disappointing to see fragmented packets on it as far as it could be a D> problem for some firewalls, because ng_ksocket always generate D> 1500-bytes packets. Or I'm wrong? 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. -- Totus tuus, Glebius.