CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2024/12/26 03:15:27
Modified files: sys/net : pf.c pf_syncookies.c pfvar.h sys/netinet : tcp_subr.c tcp_var.h Log message: Make access to tcp_mssdflt atomic. To further unlock TCP sysctl, we need atomic access to tcp_mssdflt. pf(4) is reading the value multiple times. Better read it once and pass mssdflt down the call stack. In pf_calc_mss() was a potential integer underflow. Use the signed variant imax(9) and imin(9) like it has been fixed it in TCP stack. OK mvs@