The reason behind this functionality is to allow a user to chose a certain device name to be able to assign a correct firewall zone. This way the user first configures a network interface and firewall, and then runs ocat with this new parameter to match the network interface configuration.
Please replace strncpy() with strlcpy() otherwise tunname will be unterminated if you pass an argument with a string length of more than sizeof(tunname).
The reason behind this functionality is to allow a user to chose a certain device name to be able to assign a correct firewall zone. This way the user first configures a network interface and firewall, and then runs ocat with this new parameter to match the network interface configuration.
Signed-off-by: Denis Shulyaka shulyaka@gmail.com