lib: add ipv6 helper functions for tnl_config