diff options
| author | Michael Brown | 2009-11-14 03:28:16 +0100 |
|---|---|---|
| committer | Michael Brown | 2009-11-16 23:11:53 +0100 |
| commit | 55d23b19a270b2caeb4dcd9435a91bc9c55383e2 (patch) | |
| tree | 2f5657c70beff1605012f2c95cdab2fb0c778021 /src/include/stdio.h | |
| parent | [ipv4] Use a zero address to indicate "no gateway", rather than INADDR_NONE (diff) | |
| download | ipxe-55d23b19a270b2caeb4dcd9435a91bc9c55383e2.tar.gz ipxe-55d23b19a270b2caeb4dcd9435a91bc9c55383e2.tar.xz ipxe-55d23b19a270b2caeb4dcd9435a91bc9c55383e2.zip | |
[ipv4] Allow calculation of default subnet mask
ipv4.c calculates the default subnet mask before calling
fetch_ipv4_setting() to retrieve the configured subnet mask (if any).
However, as of commit 612f4e7 "[settings] Avoid returning
uninitialised data on error in fetch_xxx_setting()",
fetch_ipv4_setting() will zero the IP address if the setting does not
exist, rather than leaving it unaltered.
Fix by fetching the setting first and calculating the default subnet
mask only if necessary.
Diffstat (limited to 'src/include/stdio.h')
0 files changed, 0 insertions, 0 deletions
