From owner-cvs-src@FreeBSD.ORG Fri Jan 14 09:00:46 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 E4B0916A4CF; Fri, 14 Jan 2005 09:00:46 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE96C43D2D; Fri, 14 Jan 2005 09:00:46 +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 j0E90kYF057993; Fri, 14 Jan 2005 09:00:46 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0E90kPJ057992; Fri, 14 Jan 2005 09:00:46 GMT (envelope-from glebius) Message-Id: <200501140900.j0E90kPJ057992@repoman.freebsd.org> From: Gleb Smirnoff Date: Fri, 14 Jan 2005 09:00:46 +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/net bridge.c if_ethersubr.c src/sys/netinet ip_fw.h ip_fw2.c ip_fw_pfil.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: Fri, 14 Jan 2005 09:00:47 -0000 glebius 2005-01-14 09:00:46 UTC FreeBSD src repository Modified files: sys/net bridge.c if_ethersubr.c sys/netinet ip_fw.h ip_fw2.c ip_fw_pfil.c Log: o Clean up interface between ip_fw_chk() and its callers: - ip_fw_chk() returns action as function return value. Field retval is removed from args structure. Action is not flag any more. It is one of integer constants. - Any action-specific cookies are returned either in new "cookie" field in args structure (dummynet, future netgraph glue), or in mbuf tag attached to packet (divert, tee, some future action). o Convert parsing of return value from ip_fw_chk() in ipfw_check_{in,out}() to a switch structure, so that the functions are more readable, and a future actions can be added with less modifications. Approved by: andre MFC after: 2 months Revision Changes Path 1.88 +5 -3 src/sys/net/bridge.c 1.181 +6 -4 src/sys/net/if_ethersubr.c 1.96 +12 -4 src/sys/netinet/ip_fw.h 1.87 +23 -26 src/sys/netinet/ip_fw2.c 1.15 +74 -52 src/sys/netinet/ip_fw_pfil.c