From owner-freebsd-net@freebsd.org Mon Aug 24 22:48:32 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4453D9C22A1; Mon, 24 Aug 2015 22:48:32 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [IPv6:2607:f8b0:4002:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08C081D69; Mon, 24 Aug 2015 22:48:32 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by ykdt205 with SMTP id t205so138578677ykd.1; Mon, 24 Aug 2015 15:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Lv2RVK9bi4UGneUdLDERC6txUijjI1MAePidQ2FWx9s=; b=exUCuhn2wkcVRgC/EX6HjTQl9A5NHUS+ECzFpWMod77OOOA2o1U9GbnnHoDDnxG9Cc gyzvh1dj0GTuH3brPTZqB96D+U15+JEt5eib3V6HobnmfTFXRYo7fzjh5GEo030X4qBS y5yHmhfqS136uX+LEigm6jIbos5cm4hfN1uxANW7vObCuxcM1Fd/WPrkYxkjSbi85rrR Vd2/fbOJvRdKXDhabX159hMxLPLAU5sUQCbGVBccxFOnc/W8QtpgoadXiSlgkJrAq162 wbqg8i3qnMzMNOxbpp3jni/DViShaRmgJHYiZ6cb6W9Z5xgFsHFO+Qqfc3AmZI0Uk68r KhYA== MIME-Version: 1.0 X-Received: by 10.129.131.84 with SMTP id t81mr33163650ywf.97.1440456511111; Mon, 24 Aug 2015 15:48:31 -0700 (PDT) Received: by 10.37.52.22 with HTTP; Mon, 24 Aug 2015 15:48:31 -0700 (PDT) Date: Mon, 24 Aug 2015 18:48:31 -0400 Message-ID: Subject: FreeBSD not properly padding vlan packets on several interface types. From: Zaphod Beeblebrox To: FreeBSD Net , FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2015 22:48:32 -0000 So, as background, the minimum packet size for ethernet packets is 64 bytes. According to at least cisco, the minimum size, then, for 802.1q (vlan, etc) packets is 68 bytes. On at least BGE and BCE interfaces, it seems (according to counters on my switch) that FreeBSD doesn't honour this. "show interface counters error" is the cisco command to check.