mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Add a debug message when binding a socket.
This commit is contained in:
parent
67bc0819b4
commit
3b14d188cb
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@ static int nsock_make_socket(mspool *ms, msiod *iod, int family, int type, int p
|
|||
nsock_log_error(ms, "Setting of SO_REUSEADDR failed (#%li): %s", iod->id,
|
||||
strerror(errno));
|
||||
|
||||
nsock_log_info(ms, "Binding to %s (IOD #%li)", get_localaddr_string(iod), iod->id);
|
||||
rc = bind(iod->sd, (struct sockaddr *)&iod->local, (int) iod->locallen);
|
||||
if (rc == -1) {
|
||||
nsock_log_error(ms, "Bind to %s failed (IOD #%li): %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue