Using tuntap to simulate router port, implement software router and related network functions with C.