Implemented network interface driver under BSD

Signed-off-by: Karel Tuma <karel.tuma@gmail.com>
Compile cleanups, dos2unix.

Signed-off-by: Karel Tuma <karel.tuma@gmail.com>