- More tidying.
- refactoring tun_dev.h
- more refactoring.