<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/NetworkPkg/Include/Library, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-02-23T21:01:28+00:00</updated>
<entry>
<title>NetworkPkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T19:03:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=58de02af29a72b58ddc68893ecaf0927682e4164'/>
<id>urn:sha1:58de02af29a72b58ddc68893ecaf0927682e4164</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards with
`#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/DxeNetLib: Fix CodeQl Error</title>
<updated>2025-06-13T19:56:32+00:00</updated>
<author>
<name>Brit Chesley</name>
<email>Brit.Chesley@amd.com</email>
</author>
<published>2025-06-12T20:05:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=e076d2ab8ca20c3f29420cae2a5b990bddca0d35'/>
<id>urn:sha1:e076d2ab8ca20c3f29420cae2a5b990bddca0d35</id>
<content type='text'>
Fix possible NULL pointer dereference in NetBuffer.c This was flagged by
CodeQl as an error.

Github Issue #11190

Signed-off-by: Brit Chesley &lt;brit.chesley@amd.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: DxeHttpLib: Use HTTP error 429</title>
<updated>2024-09-02T21:17:25+00:00</updated>
<author>
<name>Ken Lautner</name>
<email>kenlautner3@gmail.com</email>
</author>
<published>2024-08-28T18:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=82c5cacd134d64ea0d0f4dabdbbde38017acb70d'/>
<id>urn:sha1:82c5cacd134d64ea0d0f4dabdbbde38017acb70d</id>
<content type='text'>
Include a mapping for HTTP error 429 to return the correct
status code. Additionally include a link to the official
HTTP status codes in the HttpMappingToStatusCode function header.

Signed-off-by: Kenneth Lautner &lt;kenlautner3@gmail.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: SECURITY PATCH CVE-2023-45237</title>
<updated>2024-05-24T15:48:52+00:00</updated>
<author>
<name>Doug Flick</name>
<email>dougflick@microsoft.com</email>
</author>
<published>2024-05-09T05:56:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=4c4ceb2ceb80c42fd5545b2a4bd80321f07f4345'/>
<id>urn:sha1:4c4ceb2ceb80c42fd5545b2a4bd80321f07f4345</id>
<content type='text'>
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4542

Bug Overview:
PixieFail Bug #9
CVE-2023-45237
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Use of a Weak PseudoRandom Number Generator

Change Overview:

Updates all Instances of NET_RANDOM (NetRandomInitSeed ()) to either

&gt;
&gt; EFI_STATUS
&gt; EFIAPI
&gt; PseudoRandomU32 (
&gt;  OUT UINT32  *Output
&gt;  );
&gt;

or (depending on the use case)

&gt;
&gt; EFI_STATUS
&gt; EFIAPI
&gt; PseudoRandom (
&gt;  OUT  VOID   *Output,
&gt;  IN   UINTN  OutputLength
&gt;  );
&gt;

This is because the use of

Example:

The following code snippet PseudoRandomU32 () function is used:

&gt;
&gt; UINT32         Random;
&gt;
&gt; Status = PseudoRandomU32 (&amp;Random);
&gt; if (EFI_ERROR (Status)) {
&gt;   DEBUG ((DEBUG_ERROR, "%a failed to generate random number: %r\n",
__func__, Status));
&gt;   return Status;
&gt; }
&gt;

This also introduces a new PCD to enable/disable the use of the
secure implementation of algorithms for PseudoRandom () and
instead depend on the default implementation. This may be required for
some platforms where the UEFI Spec defined algorithms are not available.

&gt;
&gt; PcdEnforceSecureRngAlgorithms
&gt;

If the platform does not have any one of the UEFI defined
secure RNG algorithms then the driver will assert.

Cc: Saloni Kasbekar &lt;saloni.kasbekar@intel.com&gt;
Cc: Zachary Clark-williams &lt;zachary.clark-williams@intel.com&gt;

Signed-off-by: Doug Flick [MSFT] &lt;doug.edk2@gmail.com&gt;
Reviewed-by: Saloni Kasbekar &lt;saloni.kasbekar@intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:54:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d1050b9dff1cace252aff86630bfdb59dff5f507'/>
<id>urn:sha1:d1050b9dff1cace252aff86630bfdb59dff5f507</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the NetworkPkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Change OPTIONAL keyword usage style</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2021-12-03T02:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8874fa199dd7be550f20e3fc78861022eb826728'/>
<id>urn:sha1:8874fa199dd7be550f20e3fc78861022eb826728</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760

Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg: Reproduce builds across source format changes</title>
<updated>2021-11-08T18:01:35+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2021-10-12T23:41:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=45137bca2fdf04a17f48b18d4e1eb88b7c06dc92'/>
<id>urn:sha1:45137bca2fdf04a17f48b18d4e1eb88b7c06dc92</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3688

Use DEBUG_LINE_NUMBER instead of __LINE__.

Cc: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Cc: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
Tested-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/DxeHttpLib: Migrate HTTP header manipulation APIs</title>
<updated>2021-01-14T14:54:12+00:00</updated>
<author>
<name>Abner Chang</name>
<email>abner.chang@hpe.com</email>
</author>
<published>2021-01-07T06:57:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=40c4cd54213b78ef0daee2f4b186150d7ef63bb4'/>
<id>urn:sha1:40c4cd54213b78ef0daee2f4b186150d7ef63bb4</id>
<content type='text'>
Move HTTP header manipulation functions to DxeHttpLib from
HttpBootSupport.c. These general functions are used by both
Http BOOT and RedfishLib (patches will be sent later).

Signed-off-by: Abner Chang &lt;abner.chang@hpe.com&gt;

Cc: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Cc: Fan Wang &lt;fan.wang@intel.com&gt;
Cc: Jiewen Yao &lt;jiewen.yao@intel.com&gt;
Cc: Nickle Wang &lt;nickle.wang@hpe.com&gt;
Cc: Peter O'Hanley &lt;peter.ohanley@hpe.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;</content>
</entry>
<entry>
<title>NetworkPkg/Library: Implementation of Http IO Helper Library</title>
<updated>2020-12-04T11:45:07+00:00</updated>
<author>
<name>Abner Chang</name>
<email>abner.chang@hpe.com</email>
</author>
<published>2020-11-03T05:26:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=71a404154105fac01b7c45a46bfa873fa5457114'/>
<id>urn:sha1:71a404154105fac01b7c45a46bfa873fa5457114</id>
<content type='text'>
Add HTTP IO helper library which could be used by HTTP applications
such as HTTP Boot, Redfish HTTP REST EX driver instance and etc.

Signed-off-by: Abner Chang &lt;abner.chang@hpe.com&gt;

Cc: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Cc: Nickle Wang &lt;nickle.wang@hpe.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NetworkPkg/Library: Fix various typos</title>
<updated>2020-02-10T22:30:07+00:00</updated>
<author>
<name>Antoine Coeur</name>
<email>coeur@gmx.fr</email>
</author>
<published>2020-02-07T01:07:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6deb4baa1f778550df7178d40da37e59e3512f5e'/>
<id>urn:sha1:6deb4baa1f778550df7178d40da37e59e3512f5e</id>
<content type='text'>
Fix various typos in comments and documentation.

Cc: Jiaxin Wu &lt;jiaxin.wu@intel.com&gt;
Cc: Siyuan Fu &lt;siyuan.fu@intel.com&gt;
Cc: Maciej Rabeda &lt;maciej.rabeda@intel.com&gt;
Signed-off-by: Antoine Coeur &lt;coeur@gmx.fr&gt;
Reviewed-by: Philippe Mathieu-Daude &lt;philmd@redhat.com&gt;
Reviewed-by: Maciej Rabeda &lt;maciej.rabeda@intel.com&gt;
Signed-off-by: Philippe Mathieu-Daude &lt;philmd@redhat.com&gt;
Message-Id: &lt;20200207010831.9046-43-philmd@redhat.com&gt;
</content>
</entry>
</feed>
