Fix wrong reference to the iface_f flag
Make sure the interfaze name is zero-terminated, and that the interface index is set