heiher / natmap

TCP/UDP port mapping for full cone NAT
MIT License
1.38k stars 103 forks source link

HevExec: Fix IPV6 Address Output #45

Closed xhebox closed 10 months ago

xhebox commented 10 months ago

need a larger buffer for full IPV6 addr

AF_INET6 src points to a struct in6_addr (in network byte order) which is converted to a representation of this address in the most appropriate IPv6 network address format for this address. The buffer dst must be at least INET6_ADDRSTRLEN bytes long.

xhebox commented 10 months ago

Before & After:

root@XHEGW:~#  natmap -i eth0  -s stunserver.stunprotocol.org -
h cloudflare.com  -b 19383 -6
 19383  19383 tcp
root@XHEGW:~# natmap -i eth0  -s stunserver.stunprotocol.org -
h cloudflare.com  -b 19383 -6
2408:8207********** 19383  19383 tcp 2408:8207**********
heiher commented 10 months ago

Thanks.