-
Notifications
You must be signed in to change notification settings - Fork 36
/
ethtool-conf.h
37 lines (31 loc) · 951 Bytes
/
ethtool-conf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Linux ethtool helpers
*
* Copyright (C) 2020 Bjørn Mork <bjorn@mork.no>
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation and appearing in the file LICENSE.GPL included in the
* packaging of this file.
*
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* See COPYING for GPL licensing information.
*/
#ifndef ETHTOOL_CONF_H_
#define ETHTOOL_CONF_H_
#include <confuse.h>
#include "config.h"
#include "mini-snmpd.h"
#ifdef CONFIG_ENABLE_ETHTOOL
void ethtool_xlate_cfg(cfg_t *cfg);
#else
static inline void ethtool_xlate_cfg(cfg_t *cfg)
{
if (cfg_size(cfg, "ethtool") > 0)
logit(LOG_WARNING, 0, "No ethtool support. Ignoring config section");
}
#endif
#endif /* ETHTOOL_CONF_H_ */
/* vim: ts=4 sts=4 sw=4 nowrap
*/