summaryrefslogtreecommitdiff
path: root/src/shared/ethtool-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-08 18:09:00 +0900
committerLennart Poettering <lennart@poettering.net>2021-06-08 18:24:11 +0200
commitc50404aeccdeddfa7a21e497d176f3c1b42f0952 (patch)
tree4a80807d931b9f01c292e301760756969e825348 /src/shared/ethtool-util.h
parent3da0caf5bbf3c8cab716c4d7adf0eb25907dc951 (diff)
downloadsystemd-c50404aeccdeddfa7a21e497d176f3c1b42f0952.tar.gz
udev: make WakeOnLan= take multiple features
WAKE_XXX are flag, not enum.
Diffstat (limited to 'src/shared/ethtool-util.h')
-rw-r--r--src/shared/ethtool-util.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/shared/ethtool-util.h b/src/shared/ethtool-util.h
index 3c031cda43..7d28766624 100644
--- a/src/shared/ethtool-util.h
+++ b/src/shared/ethtool-util.h
@@ -18,19 +18,6 @@ typedef enum Duplex {
_DUP_INVALID = -EINVAL,
} Duplex;
-typedef enum WakeOnLan {
- WOL_PHY,
- WOL_UCAST,
- WOL_MCAST,
- WOL_BCAST,
- WOL_ARP,
- WOL_MAGIC,
- WOL_MAGICSECURE,
- WOL_OFF,
- _WOL_MAX,
- _WOL_INVALID = -EINVAL,
-} WakeOnLan;
-
typedef enum NetDevFeature {
NET_DEV_FEAT_RX,
NET_DEV_FEAT_TX,
@@ -99,7 +86,7 @@ int ethtool_get_link_info(int *ethtool_fd, const char *ifname,
int *ret_autonegotiation, uint64_t *ret_speed,
Duplex *ret_duplex, NetDevPort *ret_port);
int ethtool_get_permanent_macaddr(int *ethtool_fd, const char *ifname, struct ether_addr *ret);
-int ethtool_set_wol(int *ethtool_fd, const char *ifname, WakeOnLan wol);
+int ethtool_set_wol(int *ethtool_fd, const char *ifname, uint32_t wolopts);
int ethtool_set_nic_buffer_size(int *ethtool_fd, const char *ifname, const netdev_ring_param *ring);
int ethtool_set_features(int *ethtool_fd, const char *ifname, const int *features);
int ethtool_set_glinksettings(int *ethtool_fd, const char *ifname,
@@ -111,8 +98,7 @@ int ethtool_set_flow_control(int *fd, const char *ifname, int rx, int tx, int au
const char *duplex_to_string(Duplex d) _const_;
Duplex duplex_from_string(const char *d) _pure_;
-const char *wol_to_string(WakeOnLan wol) _const_;
-WakeOnLan wol_from_string(const char *wol) _pure_;
+int wol_options_to_string_alloc(uint32_t opts, char **ret);
const char *port_to_string(NetDevPort port) _const_;
NetDevPort port_from_string(const char *port) _pure_;