Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Add missing counting up of ``socket buffer is fu...



details:   https://anonhg.NetBSD.org/src/rev/18bd09ea4f43
branches:  trunk
changeset: 512784:18bd09ea4f43
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Jul 17 02:44:00 2001 +0000

description:
Add missing counting up of ``socket buffer is full'' counter when
failed to sbappendaddr().

diffstat:

 sys/netinet/udp_usrreq.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 8bf310084174 -r 18bd09ea4f43 sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c  Tue Jul 17 02:05:32 2001 +0000
+++ b/sys/netinet/udp_usrreq.c  Tue Jul 17 02:44:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udp_usrreq.c,v 1.80 2001/07/03 08:06:20 itojun Exp $   */
+/*     $NetBSD: udp_usrreq.c,v 1.81 2001/07/17 02:44:00 enami Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -536,6 +536,7 @@
                        m_freem(n);
                        if (opts)
                                m_freem(opts);
+                       udpstat.udps_fullsock++;
                } else
                        sorwakeup(so);
        }
@@ -1107,6 +1108,7 @@
                                                m_freem(n);
                                                if (opts)
                                                        m_freem(opts);
+                                               udpstat.udps_fullsock++;
                                        } else
                                                sorwakeup(last->inp_socket);
                                        opts = 0;



Home | Main Index | Thread Index | Old Index