Date: Fri, 14 Jan 2005 09:00:46 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net bridge.c if_ethersubr.c src/sys/netinet ip_fw.h ip_fw2.c ip_fw_pfil.c Message-ID: <200501140900.j0E90kPJ057992@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501140900.j0E90kPJ057992>