diff options
| author | Joakim Hulthe <joakim@hulthe.net> | 2024-07-05 16:25:32 +0200 |
|---|---|---|
| committer | Joakim Hulthe <joakim@hulthe.net> | 2024-07-16 15:46:33 +0200 |
| commit | 71ef4709732d9b0ba052d957a6483c743d5746aa (patch) | |
| tree | 14dc9da32f3e8ae0249a4b4109eb086b939b7a4e /test/test-rpc | |
| parent | 28a3776b3a7a35c4e1f964e9dcb9c4698afd7a68 (diff) | |
| download | mullvadvpn-71ef4709732d9b0ba052d957a6483c743d5746aa.tar.xz mullvadvpn-71ef4709732d9b0ba052d957a6483c743d5746aa.zip | |
Add E2E test of CVE-2019-14899 mitigation
Diffstat (limited to 'test/test-rpc')
| -rw-r--r-- | test/test-rpc/src/client.rs | 7 | ||||
| -rw-r--r-- | test/test-rpc/src/lib.rs | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/test-rpc/src/client.rs b/test/test-rpc/src/client.rs index 84d923a826..4c56601d75 100644 --- a/test/test-rpc/src/client.rs +++ b/test/test-rpc/src/client.rs @@ -208,6 +208,13 @@ impl ServiceClient { .await? } + /// Returns the MAC address of the given interface. + pub async fn get_interface_mac(&self, interface: String) -> Result<Option<[u8; 6]>, Error> { + self.client + .get_interface_mac(tarpc::context::current(), interface) + .await? + } + /// Returns the name of the default non-tunnel interface pub async fn get_default_interface(&self) -> Result<String, Error> { self.client diff --git a/test/test-rpc/src/lib.rs b/test/test-rpc/src/lib.rs index 82fed91541..cc263b845e 100644 --- a/test/test-rpc/src/lib.rs +++ b/test/test-rpc/src/lib.rs @@ -187,6 +187,9 @@ mod service { /// Returns the MTU of the given interface. async fn get_interface_mtu(interface: String) -> Result<u16, Error>; + /// Returns the MAC address of the given interface. + async fn get_interface_mac(interface: String) -> Result<Option<[u8; 6]>, Error>; + /// Returns the name of the default interface. async fn get_default_interface() -> Result<String, Error>; |
