CVSROOT: /cvs Module name: src Changes by: henn...@cvs.openbsd.org 2012/11/01 01:55:56
Modified files: sys/net : if_bridge.c if_pflog.c pf.c pf_norm.c pfvar.h sys/netinet : ip_input.c ip_output.c sys/netinet6 : in6.h ip6_divert.c ip6_forward.c ip6_input.c ip6_output.c Log message: redo most of the protocol (tcp/udp/...) checksum handling -assume we have hardware checksum offloading. stop mucking with the checksum in most of the stack -stop checksum mucking in pf, just set a "needs checksumming" flag if needed -in all output pathes, very late, if we figure out the outbound interface doesn't have hw cksum offloading, do the cksum in software. this especially makes the bridge path behave like a regular output path -little special casing for bridge still required until the broadcast path loses its disgusting shortcut hacks, but at least it's in one place now and not all over the stack in6_proto_cksum_out mostly written by krw@ started at k2k11 in iceland more than 1.5 years ago - yes it took that long, this stuff is everything but easy. this happens to fix the infamous pf rdr bug that made us turn off proto cksum offloading on almost all interface drivers. ok camield sthen claudio, testing by many, thanks!