]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: tftp client should use server address from rootip
authorToomas Soome <tsoome@FreeBSD.org>
Mon, 2 Aug 2021 12:27:38 +0000 (15:27 +0300)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 01:16:00 +0000 (20:16 -0500)
commitf2c6540dfa3674b3724b6a0b8cf02f8a6435081a
tree44c851a20a77de11ad96adafb324f4015c3328a7
parent0ad2e9eac9c318d9e2422750646d668a0b8fef07
loader: tftp client should use server address from rootip

servip is set from bootp bp_siaddr (if present) and rootip is
set immediately from servip in tha sane bootp code.

However, the common/dev_net.c does only set rootip (based on
url processing etc). Therefore, we should also use rootip in tftp
reader.

Fixes hung tftp based boot when bp_siaddr is not provided.

(cherry picked from commit 1b1bb6f178802a4522824e0268634a99cdbda098)
stand/libsa/tftp.c