mirror of
https://github.com/nmap/nmap.git
synced 2026-06-30 05:05:53 +00:00
Fix SO_BINDTODEVICE Nsock error message.
This commit is contained in:
parent
89d84932de
commit
8dd3a8a66e
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ static int nsock_make_socket(mspool *ms, msiod *iod, int family, int type, int p
|
|||
errno = 0;
|
||||
if (setsockopt(iod->sd, SOL_SOCKET, SO_BINDTODEVICE, ms->device, strlen(ms->device) + 1) == -1) {
|
||||
if ((errno != EPERM && ms->tracelevel > 0) || ms->tracelevel > 5)
|
||||
nsock_trace(ms, "Setting of SO_BROADCAST failed (IOD #%li)", iod->id);
|
||||
nsock_trace(ms, "Setting of SO_BINDTODEVICE failed (IOD #%li)", iod->id);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue