blob: 066b0f6c969da2dfa4dd57326a0073cf647f74c8 [file] [log] [blame]
// Copyright 2021 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 fuchsia.net;
using fuchsia.net.interfaces.admin;
/// Network interface debugging functionality.
///
/// This protocol is intended for debugging and testing only; and not meant for
/// load-bearing code.
@discoverable
protocol Interfaces {
/// Obtain administrative control over a network interface.
///
/// + request `id` identifies the interface to be controlled.
/// + request `control` grants the client administrative control over
/// the interface. Closed without a terminal event if `id` does not
/// match an existing interface.
GetAdmin(resource struct {
id fuchsia.net.interface_id;
control server_end:fuchsia.net.interfaces.admin.Control;
});
};