mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 13:09:02 +00:00
Add get_localaddr_string.
This commit is contained in:
@@ -188,3 +188,8 @@ static char *get_addr_string(const struct sockaddr_storage *ss, size_t sslen) {
|
||||
char *get_peeraddr_string(const msiod *iod) {
|
||||
return get_addr_string(&iod->peer, iod->peerlen);
|
||||
}
|
||||
|
||||
/* Get the local bind address string. */
|
||||
char *get_localaddr_string(const msiod *iod) {
|
||||
return get_addr_string(&iod->local, iod->locallen);
|
||||
}
|
||||
|
||||
@@ -94,5 +94,8 @@ const char *get_unixsock_path(const struct sockaddr_storage *addr);
|
||||
* "<address>:<port>". */
|
||||
char *get_peeraddr_string(const msiod *iod);
|
||||
|
||||
/* Get the local bind address string. */
|
||||
char *get_localaddr_string(const msiod *iod);
|
||||
|
||||
#endif /* NETUTILS_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user