Skip to content

NetworkPkg/UefiPxeBcDxe: Initialize IPV4 token in IPV4 branch#1625

Merged
makubacki merged 1 commit intomicrosoft:release/202502from
makubacki:networkpkg_pxebcimpl_ipv4_token_fix
Feb 3, 2026
Merged

NetworkPkg/UefiPxeBcDxe: Initialize IPV4 token in IPV4 branch#1625
makubacki merged 1 commit intomicrosoft:release/202502from
makubacki:networkpkg_pxebcimpl_ipv4_token_fix

Conversation

@makubacki
Copy link
Copy Markdown
Member

Description

EfiPxeBcStart() in PxeBcImpl.c has condiational code branches for IPV4 and IPV6.

  • IPV4 branch should use EFI_IP4_COMPLETION_TOKEN which is Private->IcmpToken.
  • IPV6 branch should use EFI_IP6_COMPLETION_TOKEN which is Private->Icmp6Token.

Right now, the IPv4 branch incorrectly initializes Private->Icmp6Token to EFI_NOT_READY. That is changed to Private->IcmpToken.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

  • PXE boot with server setup on a separate device (TFTP + DHCP)

Integration Instructions

  • N/A

@makubacki makubacki requested review from apop5, kuqin12 and os-d January 31, 2026 00:32
@makubacki makubacki self-assigned this Jan 31, 2026
@makubacki makubacki added the type:bug Something isn't working label Jan 31, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 31, 2026

Codecov Report

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202502@35544bc). Learn more about missing BASE report.

Files with missing lines Patch % Lines
NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c 0.00% 10 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             release/202502   #1625   +/-   ##
================================================
  Coverage                  ?   0.55%           
================================================
  Files                     ?     165           
  Lines                     ?   71959           
  Branches                  ?    1755           
================================================
  Hits                      ?     402           
  Misses                    ?   71550           
  Partials                  ?       7           
Flag Coverage Δ
NetworkPkg 0.55% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

`EfiPxeBcStart()` in `PxeBcImpl.c` has condiational code branches for
IPV4 and IPV6.

- IPV4 branch should use `EFI_IP4_COMPLETION_TOKEN` which is
  `Private->IcmpToken`.
- IPV6 branch should use `EFI_IP6_COMPLETION_TOKEN` which is
  `Private->Icmp6Token`.

Right now, the IPv4 branch incorrectly initializes
`Private->Icmp6Token` to `EFI_NOT_READY`. That is changed to
`Private->IcmpToken`.

Co-authored-by: Wenbo Hou <wenbhou@microsoft.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@makubacki makubacki force-pushed the networkpkg_pxebcimpl_ipv4_token_fix branch from 6b75228 to 67194f7 Compare February 3, 2026 03:27
@makubacki makubacki enabled auto-merge (squash) February 3, 2026 03:27
@makubacki makubacki merged commit 60b5a5e into microsoft:release/202502 Feb 3, 2026
30 checks passed
apop5 pushed a commit that referenced this pull request Feb 5, 2026
## Description

`EfiPxeBcStart()` in `PxeBcImpl.c` has condiational code branches for
IPV4 and IPV6.

- IPV4 branch should use `EFI_IP4_COMPLETION_TOKEN` which is
`Private->IcmpToken`.
- IPV6 branch should use `EFI_IP6_COMPLETION_TOKEN` which is
`Private->Icmp6Token`.

Right now, the IPv4 branch incorrectly initializes `Private->Icmp6Token`
to `EFI_NOT_READY`. That is changed to `Private->IcmpToken`.

- [x] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

## How This Was Tested

- PXE boot with server setup on a separate device (TFTP + DHCP)

## Integration Instructions

- N/A

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Co-authored-by: Wenbo Hou <wenbhou@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants