// Copyright 2018 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. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define ETH_MAC_SIZE 6 #define BUFSIZE 2048 typedef struct { const char* device; int pause_secs; bool setting_promisc; bool promisc_on; bool dump_regs; char* filter_macs; int n_filter_macs; } ethtool_options_t; int usage(void) { fprintf(stderr, "usage: ethtool