mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Add get_localaddr_string.
This commit is contained in:
parent
d6d2a832db
commit
21077a93e1
2 changed files with 8 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue