summaryrefslogtreecommitdiffstats
path: root/src/include/sys
diff options
context:
space:
mode:
authorMichael Brown2009-11-14 03:21:13 +0100
committerMichael Brown2009-11-16 23:09:23 +0100
commit2ce0d8f08be9172e8a2b267e3073c1ed0b54afae (patch)
treeaaeac490a1af934678bad2d77dff63c832a37f8c /src/include/sys
parent[libc] Use only generic errortab entries to match generic errors (diff)
downloadipxe-2ce0d8f08be9172e8a2b267e3073c1ed0b54afae.tar.gz
ipxe-2ce0d8f08be9172e8a2b267e3073c1ed0b54afae.tar.xz
ipxe-2ce0d8f08be9172e8a2b267e3073c1ed0b54afae.zip
[ipv4] Use a zero address to indicate "no gateway", rather than INADDR_NONE
ipv4.c uses a gateway address of INADDR_NONE to represent "no gateway". It initialises the gateway address to INADDR_NONE before calling fetch_ipv4_setting() to retrieve the configured gateway address (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 using a zero IP address to indicate "no gateway", so that a non-existent gateway address setting will be treated as such.
Diffstat (limited to 'src/include/sys')
0 files changed, 0 insertions, 0 deletions