Move tun functions to a new tun.c.

Change-Id: I4910b6cfca0bbf6bde2d1348f43d3131a1212399
5 files changed