From 5e1af158e0fd641d1099f32095dbc7b37771e004 Mon Sep 17 00:00:00 2001 From: yasuoka Date: Tue, 30 Jul 2024 13:41:15 +0000 Subject: [PATCH] Exports the statistics when PIPEXDSESSION. Found by ymatsui at iij. ok mvs --- sys/net/if_pppx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c index 35dbec53d33..5246bd7f7a0 100644 --- a/sys/net/if_pppx.c +++ b/sys/net/if_pppx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppx.c,v 1.128 2023/12/23 10:52:54 bluhm Exp $ */ +/* $OpenBSD: if_pppx.c,v 1.129 2024/07/30 13:41:15 yasuoka Exp $ */ /* * Copyright (c) 2010 Claudio Jeker @@ -1417,10 +1417,12 @@ pppac_del_session(struct pppac_softc *sc, struct pipex_session_close_req *req) return (EINVAL); } pipex_unlink_session_locked(session); - pipex_rele_session(session); mtx_leave(&pipex_list_mtx); + pipex_export_session_stats(session, &req->psr_stat); + pipex_rele_session(session); + return (0); } -- 2.20.1