mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Handle EAFNOSUPPORT as on FreeBSD
This commit is contained in:
parent
fcceb4f957
commit
8cf08ee9cb
1 changed files with 6 additions and 1 deletions
|
|
@ -177,9 +177,14 @@ intf_open(void)
|
|||
|
||||
#if defined(SIOCGLIFCONF) || defined(SIOCGIFNETMASK_IN6) || defined(SIOCGIFNETMASK6)
|
||||
if ((intf->fd6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
|
||||
if (1
|
||||
# ifdef EPROTONOSUPPORT
|
||||
if (errno != EPROTONOSUPPORT)
|
||||
&& errno != EPROTONOSUPPORT
|
||||
#endif
|
||||
# ifdef EAFNOSUPPORT
|
||||
&& errno != EAFNOSUPPORT
|
||||
#endif
|
||||
)
|
||||
return (intf_close(intf));
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue