Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Support SO_OVERFLOWED on PF_KEY sockets
details: https://anonhg.NetBSD.org/src/rev/23e4e0d04376
branches: trunk
changeset: 353831:23e4e0d04376
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu May 25 04:45:59 2017 +0000
description:
Support SO_OVERFLOWED on PF_KEY sockets
The original author is hsuenaga@IIJ
diffstat:
sys/netipsec/keysock.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 97dbc86cd1de -r 23e4e0d04376 sys/netipsec/keysock.c
--- a/sys/netipsec/keysock.c Thu May 25 04:35:02 2017 +0000
+++ b/sys/netipsec/keysock.c Thu May 25 04:45:59 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: keysock.c,v 1.57 2017/05/25 04:35:02 ozaki-r Exp $ */
+/* $NetBSD: keysock.c,v 1.58 2017/05/25 04:45:59 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/keysock.c,v 1.3.2.1 2003/01/24 05:11:36 sam Exp $ */
/* $KAME: keysock.c,v 1.25 2001/08/13 20:07:41 itojun Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: keysock.c,v 1.57 2017/05/25 04:35:02 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: keysock.c,v 1.58 2017/05/25 04:45:59 ozaki-r Exp $");
/* This code has derived from sys/net/rtsock.c on FreeBSD2.2.5 */
@@ -191,6 +191,7 @@
PFKEY_STATINC(PFKEY_STAT_IN_NOMEM);
m_freem(m);
error = ENOBUFS;
+ rp->rcb_socket->so_rcv.sb_overflowed++;
} else
error = 0;
sorwakeup(rp->rcb_socket);
Home |
Main Index |
Thread Index |
Old Index