diff options
| author | Dan Nicholson <dbn@endlessos.org> | 2024-10-02 23:59:34 -0600 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-01-15 16:03:55 -0500 |
| commit | 6410312603ac1198c40b5d103b4aaf2ec2f1c5ac (patch) | |
| tree | 2f5a6a6c2433f33f4074dacc13e899b907151906 /mock-variables.c | |
| parent | d197220e834e7915326c6a99e17bafe0dcfb3f77 (diff) | |
| download | efi-boot-shim-6410312603ac1198c40b5d103b4aaf2ec2f1c5ac.tar.gz efi-boot-shim-6410312603ac1198c40b5d103b4aaf2ec2f1c5ac.zip | |
netboot: Convert TFTP error codes to EFI status codes
This allows the caller to make a more informed decision about how to
handle the error. The error code is available in the TftpError field of
the Mode interface. In particular, by mapping the TFTP errors to
EFI_INVALID_PARAMTER and EFI_NOT_FOUND, shim will try to fetch the
default second stage image like it does when loading images from disk.
Unfortunately, some firmware doesn't fill in the error fields, so a
generic EFI_TFTP_ERROR to EFI_NOT_FOUND conversion is included.
Signed-off-by: Dan Nicholson <dbn@endlessos.org>
Diffstat (limited to 'mock-variables.c')
0 files changed, 0 insertions, 0 deletions
