mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
[misc] Add utility function to get interface name from IP address
This commit is contained in:
@@ -43,6 +43,9 @@ net_address_get(char *addr, size_t addr_len, union net_sockaddr *naddr);
|
||||
int
|
||||
net_port_get(short unsigned *port, union net_sockaddr *naddr);
|
||||
|
||||
int
|
||||
net_if_get(char *ifname, size_t ifname_len, const char *addr);
|
||||
|
||||
// Returns the socket fd from socket(), -1 on error
|
||||
int
|
||||
net_connect(const char *addr, unsigned short port, int type, const char *log_service_name);
|
||||
|
||||
Reference in New Issue
Block a user