yport_lastservice is used in yport_net.c only. So please define it there and make it static.