diff options
author | Dan Williams <dan@ioncontrol.co> | 2024-12-02 09:39:21 -0600 |
---|---|---|
committer | Dan Williams <dan@bigw.org> | 2025-02-18 21:06:19 +0000 |
commit | 0a94b0138de65ae88e783143d2c4cab930303844 (patch) | |
tree | f2bcc5f229691ad72f48fdb7aa32c27dc4b2d25c /src/mm-port-net.h | |
parent | 029a8cd11a0d181403b600af9a9979ef5e1eea13 (diff) |
netlink: add RTM_GETLINK support to read MAC address
Since we're also now reading responses we need to check sender
credentials to make sure we're talking to the kernel, and not
some other process spoofing netlink.
Signed-off-by: Dan Williams <dan@ioncontrol.co>
Diffstat (limited to 'src/mm-port-net.h')
-rw-r--r-- | src/mm-port-net.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-port-net.h b/src/mm-port-net.h index d6bf9053..b44a470c 100644 --- a/src/mm-port-net.h +++ b/src/mm-port-net.h @@ -60,4 +60,12 @@ gboolean mm_port_net_link_setup_finish (MMPortNet *self, GAsyncResult *res, GError **error); +void mm_port_net_get_hwaddress (MMPortNet *self, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +GByteArray *mm_port_net_get_hwaddress_finish (MMPortNet *self, + GAsyncResult *res, + GError **error); + #endif /* MM_PORT_NET_H */ |