[LIBS] netstack: Add APIs for accessing gateway IP

Signed-off-by: Anup Patel <anup@brainfault.org>