From owner-p4-projects@FreeBSD.ORG Mon Sep 29 21:31:23 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E5C3C16A4C0; Mon, 29 Sep 2003 21:31:22 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFEB916A4B3 for ; Mon, 29 Sep 2003 21:31:22 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 471C243FEC for ; Mon, 29 Sep 2003 21:31:22 -0700 (PDT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h8U4VMXJ042985 for ; Mon, 29 Sep 2003 21:31:22 -0700 (PDT) (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8U4VLMa042982 for perforce@freebsd.org; Mon, 29 Sep 2003 21:31:21 -0700 (PDT) (envelope-from sam@freebsd.org) Date: Mon, 29 Sep 2003 21:31:21 -0700 (PDT) Message-Id: <200309300431.h8U4VLMa042982@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Subject: PERFORCE change 38840 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 04:31:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=38840 Change 38840 by sam@sam_ebb on 2003/09/29 21:30:26 correct pfil_run_hooks handling Affected files ... .. //depot/projects/netperf/sys/netinet6/ip6_forward.c#4 edit .. //depot/projects/netperf/sys/netinet6/ip6_output.c#6 edit Differences ... ==== //depot/projects/netperf/sys/netinet6/ip6_forward.c#4 (text+ko) ==== @@ -522,10 +522,9 @@ /* * Run through list of hooks for output packets. */ - if (pfil_run_hooks(&inet6_pfil_hook, &m, rt->rt_ifp, PFIL_OUT) != 0) { - error = EHOSTUNREACH; - goto freecopy; - } + error = pfil_run_hooks(&inet6_pfil_hook, &m, rt->rt_ifp, PFIL_OUT); + if (error != 0) + goto senderr; if (m == NULL) goto freecopy; ip6 = mtod(m, struct ip6_hdr *); @@ -545,6 +544,9 @@ goto freecopy; } } +#ifdef PFIL_HOOKS +senderr: +#endif if (mcopy == NULL) return; switch (error) { ==== //depot/projects/netperf/sys/netinet6/ip6_output.c#6 (text+ko) ==== @@ -927,11 +927,8 @@ /* * Run through list of hooks for output packets. */ - if (pfil_run_hooks(&inet6_pfil_hook, &m, ifp, PFIL_OUT) != 0) { - error = EHOSTUNREACH; - goto done; - } - if (m == NULL) + error = pfil_run_hooks(&inet6_pfil_hook, &m, ifp, PFIL_OUT); + if (error != 0 || m == NULL) goto done; ip6 = mtod(m, struct ip6_hdr *); #endif /* PFIL_HOOKS */