From owner-freebsd-net@FreeBSD.ORG Thu May 15 16:08:16 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68FDE1065674 for ; Thu, 15 May 2008 16:08:16 +0000 (UTC) (envelope-from john@roof1.dnepro.net) Received: from roof1.dnepro.net (a66.dnepro.net [212.3.111.66]) by mx1.freebsd.org (Postfix) with ESMTP id DA9348FC29 for ; Thu, 15 May 2008 16:08:15 +0000 (UTC) (envelope-from john@roof1.dnepro.net) Received: from roof1.dnepro.net (localhost [127.0.0.1]) by roof1.dnepro.net (8.14.1/8.14.1) with ESMTP id m4FFQ7hW052124 for ; Thu, 15 May 2008 18:26:08 +0300 (EEST) (envelope-from john@roof1.dnepro.net) Received: (from john@localhost) by roof1.dnepro.net (8.14.1/8.14.1/Submit) id m4FFQ7Ha052123 for freebsd-net@freebsd.org; Thu, 15 May 2008 18:26:07 +0300 (EEST) (envelope-from john) Date: Thu, 15 May 2008 18:26:07 +0300 From: Eugene Perevyazko To: freebsd-net@freebsd.org Message-ID: <20080515152607.GA36663@roof1.dnepro.net> Mail-Followup-To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93, clamav-milter version 0.93 on roof1.dnepro.net X-Virus-Status: Clean Subject: How to inject fullsize 802.1q-tagged frame through BPF? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2008 16:08:16 -0000 Hello, I have an ethernet interface with several vlans on it (FreeBSD 6.2-RELEASE #0). My program opens BPF on the parent device, receives tagged frames and responds by writing tagged frame to the BPF fd. It all works good, until size of response frame w/o tag becomes larger than 1496 bytes (1500 with tag inserted) - mtu of parent device.i I'm a bit confused as mtu is 1500 on both vlanN and it's parent fxp0. I've tried to "ifconfig fxp0 mtu 1504" to make room for vlan tag, but the response is ifconfig: ioctl (set mtu): Invalid argument Trying "ifconfig fxp0 -vlanmtu" also makes no difference. Is there a way to inject full-mtu vlan-tagged frame through BPF on parent device? I'd like not to open several tenths of BPFs for each vlanN if it's possible. I've tried on bge also with same results, so that is not connected with fxp driver. Eugene Perevyazko