From owner-svn-src-vendor@FreeBSD.ORG Tue Aug 18 16:21:08 2009 Return-Path: Delivered-To: svn-src-vendor@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DCA8106568D; Tue, 18 Aug 2009 16:21:08 +0000 (UTC) (envelope-from mlaier@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1A8578FC60; Tue, 18 Aug 2009 16:21:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n7IGL8lZ022261; Tue, 18 Aug 2009 16:21:08 GMT (envelope-from mlaier@svn.freebsd.org) Received: (from mlaier@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n7IGL8LU022259; Tue, 18 Aug 2009 16:21:08 GMT (envelope-from mlaier@svn.freebsd.org) Message-Id: <200908181621.n7IGL8LU022259@svn.freebsd.org> From: Max Laier Date: Tue, 18 Aug 2009 16:21:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org X-SVN-Group: vendor-sys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r196362 - vendor-sys/pf/dist/net X-BeenThere: svn-src-vendor@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the vendor work area tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2009 16:21:08 -0000 Author: mlaier Date: Tue Aug 18 16:21:07 2009 New Revision: 196362 URL: http://svn.freebsd.org/changeset/base/196362 Log: Import 4.5-002 fix Modified: vendor-sys/pf/dist/net/pf.c Modified: vendor-sys/pf/dist/net/pf.c ============================================================================== --- vendor-sys/pf/dist/net/pf.c Tue Aug 18 16:16:48 2009 (r196361) +++ vendor-sys/pf/dist/net/pf.c Tue Aug 18 16:21:07 2009 (r196362) @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.633 2009/02/16 00:31:25 dlg Exp $ */ +/* $OpenBSD: pf.c,v 1.634 2009/02/27 12:37:45 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -5243,6 +5243,15 @@ pf_test(int dir, struct ifnet *ifp, stru break; } +#ifdef INET6 + case IPPROTO_ICMPV6: { + action = PF_DROP; + DPFPRINTF(PF_DEBUG_MISC, + ("pf: dropping IPv4 packet with ICMPv6 payload\n")); + goto done; + } +#endif + default: action = pf_test_state_other(&s, dir, kif, m, &pd); if (action == PF_PASS) { @@ -5597,6 +5606,13 @@ pf_test6(int dir, struct ifnet *ifp, str break; } + case IPPROTO_ICMP: { + action = PF_DROP; + DPFPRINTF(PF_DEBUG_MISC, + ("pf: dropping IPv6 packet with ICMPv4 payload\n")); + goto done; + } + case IPPROTO_ICMPV6: { struct icmp6_hdr ih;