summaryrefslogtreecommitdiffstats
path: root/src/core/network/network_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/network/network_interface.h')
-rw-r--r--src/core/network/network_interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/network/network_interface.h b/src/core/network/network_interface.h
index d7184e14a..980edb2f5 100644
--- a/src/core/network/network_interface.h
+++ b/src/core/network/network_interface.h
@@ -4,6 +4,7 @@
#pragma once
+#include <optional>
#include <string>
#include <vector>
@@ -18,8 +19,11 @@ namespace Network {
struct NetworkInterface {
std::string name;
struct in_addr ip_address;
+ struct in_addr subnet_mask;
+ struct in_addr gateway;
};
std::vector<NetworkInterface> GetAvailableNetworkInterfaces();
+std::optional<NetworkInterface> GetSelectedNetworkInterface();
} // namespace Network