diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2024-07-30 13:41:16 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2024-07-30 13:41:16 +0000 |
commit | 9ae6470dfb4f4ccf604bfb95076a1fa57eaede99 (patch) | |
tree | 2525bf6229704db12a9d374c92dc203abae82fb2 /sys/net | |
parent | 5d9e01e6f318e302981d4ea536e3ff7281ef3197 (diff) |
Exports the statistics when PIPEXDSESSION. Found by ymatsui at iij.
ok mvs
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_pppx.c | 6 |
1 files 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 <claudio@openbsd.org> @@ -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); } |