mirror of
https://github.com/nmap/nmap.git
synced 2026-06-20 15:41:31 +00:00
NetBSD uses a fixed 64-bit padding, unlike OS X (32-bit), and unlike other platforms (sizeof(unsigned long)). There is an RT_ROUNDUP macro that does the right alignment; use that when available. http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/lib/libc/net/getifaddrs.c http://fxr.watson.org/fxr/source/net/route.h?v=NETBSD#L270 Rounding to 4 bytes was breaking with IPv6 addresses, which are 28 bytes. The pointer was being advanced by 28 instead of 32. Compare to r29739, somewhat similar. Reported by Fredrik Pettai. http://seclists.org/nmap-dev/2013/q1/384 |
||
|---|---|---|
| .. | ||
| addr-util.c | ||
| addr.c | ||
| arp-bsd.c | ||
| arp-ioctl.c | ||
| arp-none.c | ||
| arp-win32.c | ||
| blob.c | ||
| crc32ct.h | ||
| err.c | ||
| eth-bsd.c | ||
| eth-dlpi.c | ||
| eth-linux.c | ||
| eth-ndd.c | ||
| eth-none.c | ||
| eth-pfilt.c | ||
| eth-snoop.c | ||
| eth-win32.c | ||
| fw-none.c | ||
| intf-win32.c | ||
| intf.c | ||
| ip-cooked.c | ||
| ip-util.c | ||
| ip-win32.c | ||
| ip.c | ||
| ip6.c | ||
| Makefile.am | ||
| Makefile.in | ||
| memcmp.c | ||
| rand.c | ||
| route-bsd.c | ||
| route-hpux.c | ||
| route-linux.c | ||
| route-none.c | ||
| route-win32.c | ||
| strlcat.c | ||
| strlcpy.c | ||
| strsep.c | ||
| tun-bsd.c | ||
| tun-linux.c | ||
| tun-none.c | ||
| tun-solaris.c | ||