1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-09 15:06:35 +00:00

Set sa.sndd_8022_ethertype to 0 in eth-ndd.c.

This file is used for Ethernet handles on AIX. We had a report from
Peter O'Gorman that setting this member to 0 rather than ETH_TYPE_IP was
necessary to avoid an EEXIST error on bind.

http://seclists.org/nmap-dev/2011/q4/349
http://seclists.org/nmap-dev/2011/q4/353
http://seclists.org/nmap-dev/2011/q4/att-353/aix.patch
https://code.google.com/p/libdnet/issues/detail?id=23

However Ben Lentz more recently tried the patch and said that he still
got an EEXIST on bind.

http://seclists.org/nmap-dev/2012/q4/327
http://seclists.org/nmap-dev/2012/q4/395

So who knows what the right thing to do here is. The messages from IBM
seem to say that setting ETH_TYPE_IP is definitely wrong though.
This commit is contained in:
david
2012-12-08 11:04:23 +00:00
parent 8f3165f7a6
commit e7a4a8a364

View File

@@ -42,7 +42,7 @@ eth_open(const char *device)
sa.sndd_8022_family = AF_NDD;
sa.sndd_8022_len = sizeof(sa);
sa.sndd_8022_filtertype = NS_ETHERTYPE;
sa.sndd_8022_ethertype = ETH_TYPE_IP;
sa.sndd_8022_ethertype = 0;
sa.sndd_8022_filterlen = sizeof(struct ns_8022);
strlcpy(sa.sndd_8022_nddname, device, sizeof(sa.sndd_8022_nddname));