commit | 0ba0e1eb1f39f698d67c52c394abe243d4b9eb23 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Thu Jul 01 17:23:28 2010 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Thu Jul 01 17:23:28 2010 +0400 |
tree | 1167450b14ce5baf49b831340ba6740e21fc6ea4 | |
parent | db8b18f2287f4b59560025cf93c5cfdf370fc364 [diff] |
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>