blob: 4436496d176e8ff2b23f03c3e37b932bc1ae756d [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.net.debug;
using zx;
/// Provides access to Network stack diagnostics information.
@discoverable
closed protocol Diagnostics {
/// Requests that the network stack produces debugging information in the
/// system logs.
///
/// The call returns once debug information has been produced.
strict LogDebugInfoToSyslog() -> ();
/// Requests a handle to the netstack's process.
///
/// This handle is not meant to be used for anything other than diagnostics,
/// so only the `INSPECT` right is provided to the caller.
strict GetProcessHandleForInspection() -> (resource struct {
process zx.Handle:<PROCESS, zx.Rights.INSPECT>;
});
};