From owner-cvs-src@FreeBSD.ORG Mon Feb 28 11:54:37 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78F1916A4CE; Mon, 28 Feb 2005 11:54:37 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E4B243D31; Mon, 28 Feb 2005 11:54:37 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1SBsbV7011468; Mon, 28 Feb 2005 11:54:37 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1SBsbGd011467; Mon, 28 Feb 2005 11:54:37 GMT (envelope-from glebius) Message-Id: <200502281154.j1SBsbGd011467@repoman.freebsd.org> From: Gleb Smirnoff Date: Mon, 28 Feb 2005 11:54:37 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet ip_carp.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2005 11:54:37 -0000 glebius 2005-02-28 11:54:36 UTC FreeBSD src repository Modified files: sys/netinet ip_carp.c Log: Fix tcpdump(8) on carp(4) interface: - Use our loop DLT type, not OpenBSD. [1] - The fields that are converted to network byte order are not 32-bit fields but 16-bit fields, so htons should be used in htonl. [1] - Secondly, ip_input changes ip->ip_len into its value without the ip-header length. So, restore the length to make bpf happy. [1] - Use bpf_mtap2(), use temporary af1, since bpf_mtap2 doesn't understand uint8_t af identifier. Submitted by: Frank Volf [1] Revision Changes Path 1.12 +5 -16 src/sys/netinet/ip_carp.c