Fix for if_enable/disable

* changed the ioctl command to retrieve flags;
* handle correctly errors in if_enable/disable

Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>