From 43f6a1ad3b7cc863688378bb4af00cec0e7a778e Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 19 Aug 2004 12:48:42 +0000 Subject: [PATCH] PR/26210: Matthew Mondor: Since revision 1.14 when net-2 was merged, the code to do receive packet accounting has been disabled for no apparent reason. Re-enable it. --- sys/kern/uipc_socket.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 452e5c8f0987..71e23aa59150 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_socket.c,v 1.104 2004/07/01 12:42:57 yamt Exp $ */ +/* $NetBSD: uipc_socket.c,v 1.105 2004/08/19 12:48:42 christos Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.104 2004/07/01 12:42:57 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.105 2004/08/19 12:48:42 christos Exp $"); #include "opt_sock_counters.h" #include "opt_sosend_loan.h" @@ -1050,10 +1050,8 @@ soreceive(struct socket *so, struct mbuf **paddr, struct uio *uio, * While we process the initial mbufs containing address and control * info, we save a copy of m->m_nextpkt into nextrecord. */ -#ifdef notyet /* XXXX */ if (p) p->p_stats->p_ru.ru_msgrcv++; -#endif KASSERT(m == so->so_rcv.sb_mb); SBLASTRECORDCHK(&so->so_rcv, "soreceive 1"); SBLASTMBUFCHK(&so->so_rcv, "soreceive 1");