Remove hard-coded sizes

Use INET6_ADDRSTRLEN instead of hard-coded 64,
use sizeof(struct in6_addr) instead of hard-coded 16,
and fix off-by-one in get_netname() function.

Pure cleanup, should have no visible effects on code
(aside from the fact that INET6_ADDRSTRLEN is less than 64).

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
3 files changed