Commits
Evgeny Kravtsunov authored and Pavel Emelianov committed 488fa991378
[PATCH] CPT: another fix for TUN/TAP restore 1) Restore of tun->bind_file attribute added in rst_restore_tuntap. tun->bind_file contains the pointer to open file which tun_struct is binded to. tun->bind_file data is used for cpt/rst only. This attribute is to be initialized on creating tun/tap device (tun_set_iff) and on restore tun/tap device (rst_restore_tuntap). If it is not initialized on restore, futher dumps will not contain any information on the open file binded, so futher restore will fail. Bug #94995 2) Restoring bind file (rst_file call) is moved up to be called before allocating and registering tunX netdevice. This is done to avoid doing netdevice related cleanups when rst_file returns error. Bug #94992