]> The Tcpdump Group git mirrors - tcpdump/commit
fix missing/inet_ntop.c again
authorGisle Vanem <[email protected]>
Thu, 1 May 2014 10:39:17 +0000 (14:39 +0400)
committerDenis Ovsienko <[email protected]>
Thu, 1 May 2014 10:39:17 +0000 (14:39 +0400)
commit3425f9366f61d2883927d4755ad25c6037cde543
treebfd99074007280bb3ab8a7a335927f43839afc9c
parentfdf8fb7399246033f58fa6864b3970df6257e515
fix missing/inet_ntop.c again

All tests that should print IPv6-addresses failed since 'INET6' wasn't
set when my missing/inet_ntop.c was compiled. Due to "config.h" was not
included.

Also got rid of 2 warnings:
 Missing/inet_ntop.c:146:23: warning: 'cur.len' may be used
 uninitialized in this function [-Wmaybe-uninitialized]

The tests also failed since the inet_ntop_v6() was returning hex-chars
in upper-case. So this patch returns string in lower-case.
missing/inet_ntop.c