From owner-svn-src-all@FreeBSD.ORG Wed May 14 20:16:52 2014 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 753B7710; Wed, 14 May 2014 20:16:52 +0000 (UTC) Received: from gw.catspoiler.org (gw.catspoiler.org [75.1.14.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39C6125ED; Wed, 14 May 2014 20:16:51 +0000 (UTC) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id s4EKGfOb084324; Wed, 14 May 2014 13:16:45 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201405142016.s4EKGfOb084324@gw.catspoiler.org> Date: Wed, 14 May 2014 13:16:41 -0700 (PDT) From: Don Lewis Subject: Re: svn commit: r265408 - in head: sys/netinet usr.bin/netstat To: glebius@FreeBSD.org In-Reply-To: <201405060000.s46007s6044383@svn.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 20:16:52 -0000 On 6 May, Gleb Smirnoff wrote: > Author: glebius > Date: Tue May 6 00:00:07 2014 > New Revision: 265408 > URL: http://svnweb.freebsd.org/changeset/base/265408 > > Log: > - Remove net.inet.tcp.reass.overflows sysctl. It counts exactly > same events that tcpstat's tcps_rcvmemdrop counter counts. > - Rename tcps_rcvmemdrop to tcps_rcvreassfull and improve its > description in netstat(1) output. > > Sponsored by: Netflix > Sponsored by: Nginx, Inc. > > Modified: > head/sys/netinet/tcp_reass.c > head/sys/netinet/tcp_var.h > head/usr.bin/netstat/inet.c > > Modified: head/sys/netinet/tcp_var.h > ============================================================================== > --- head/sys/netinet/tcp_var.h Mon May 5 23:54:13 2014 (r265407) > +++ head/sys/netinet/tcp_var.h Tue May 6 00:00:07 2014 (r265408) > @@ -426,7 +426,7 @@ struct tcpstat { > uint64_t tcps_rcvbyte; /* bytes received in sequence */ > uint64_t tcps_rcvbadsum; /* packets received with ccksum errs */ > uint64_t tcps_rcvbadoff; /* packets received with bad offset */ > - uint64_t tcps_rcvmemdrop; /* packets dropped for lack of memory */ > + uint64_t tcps_rcvreassfull; /* packets dropped for no reass space */ > uint64_t tcps_rcvshort; /* packets received too short */ > uint64_t tcps_rcvduppack; /* duplicate-only packets received */ > uint64_t tcps_rcvdupbyte; /* duplicate-only bytes received */ This broke emulators/wine: cc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -fno-omit-frame-pointer -I/usr/local/include -O2 -pipe -march=athlon64 -fno-strict-aliasing -o ipstats.o ipstats.c ipstats.c:1109:92: error: no member named 'tcps_rcvmemdrop' in 'struct tcpstat'; did you mean 'tcps_listendrop'? ...+ tcp_stat.tcps_rcvbadoff + tcp_stat.tcps_rcvmemdrop + tcp_stat.tcps_rcv... ^~~~~~~~~~~~~~~ I think this needs a __FreeBSD_version 1100020 and/or the addition of a #define as a compatiblity crutch.