CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2024/01/01 11:52:09
Modified files: sys/netinet6 : ip6_divert.c ip6_divert.h Log message: Reduce code duplication in ip6 divert. Protocols like UDP or TCP keep only functions in netinet6 that are essentially different. Remove divert6_detach(), divert6_lock(), divert6_unlock(), divert6_bind(), and divert6_shutdown(). Replace them with identical IPv4 functions. INP_HDRINCL is an IPv4 only option, remove it from divert6_attach(). OK mvs@ sashan@ kn@