Use common function to determine gateway name