Add a helper function for setting IPv6 address

This can be used with other commands as well, so move the IPv6 address
functionality into a helper function.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
3 files changed