core: be prepared to get Via received param with brackets around ipv6 addr

- helper function to generate similar value
tsilo: fix clang warnings on inline prototypes in header files