HomeFreeBSD

loader: tftp client should use server address from rootip

Description

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)

Details

Provenance
tsoomeAuthored on Aug 2 2021, 12:27 PM
kevansCommitted on Oct 8 2021, 1:16 AM
Parents
rG0ad2e9eac9c3: loader: Don't reserve space for symbols twice.
Branches
Unknown
Tags
Unknown