summaryrefslogtreecommitdiffstats
path: root/src/net/dhcppkt.c
diff options
context:
space:
mode:
authorMichael Brown2014-07-14 13:14:18 +0200
committerMichael Brown2014-07-14 13:17:19 +0200
commitc4af97727131a6675c67de4f2fc3f72e4dd4fc35 (patch)
tree25d937f57b3b4c143243d16af837a3f244005acb /src/net/dhcppkt.c
parent[crypto] Fix debug message (diff)
downloadipxe-c4af97727131a6675c67de4f2fc3f72e4dd4fc35.tar.gz
ipxe-c4af97727131a6675c67de4f2fc3f72e4dd4fc35.tar.xz
ipxe-c4af97727131a6675c67de4f2fc3f72e4dd4fc35.zip
[netdevice] Reset network device index when last device is unregistered
When functioning as an EFI driver, drivers can be disconnected and reconnected multiple times (e.g. via the EFI shell "connect" command, or by running an executable such as ipxe.efi which will temporarily disconnect existing drivers). Minimise surprise by resetting the network device index to zero whenever the last device is unregistered. This is not foolproof, but it does handle the common case of having all devices unregistered and then reregistered in the original order. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/dhcppkt.c')
0 files changed, 0 insertions, 0 deletions