summaryrefslogtreecommitdiffstats
path: root/src/net/udp/dhcp.c
diff options
context:
space:
mode:
authorMichael Brown2006-07-19 23:56:27 +0200
committerMichael Brown2006-07-19 23:56:27 +0200
commit0768670fd8599555de4476e5494c07b4e1b854b6 (patch)
tree9259fc1ace9a162faba512395305eca81b656ff6 /src/net/udp/dhcp.c
parentMinor edits (diff)
downloadipxe-0768670fd8599555de4476e5494c07b4e1b854b6.tar.gz
ipxe-0768670fd8599555de4476e5494c07b4e1b854b6.tar.xz
ipxe-0768670fd8599555de4476e5494c07b4e1b854b6.zip
udp_open() takes ports in network-endian order.
Diffstat (limited to 'src/net/udp/dhcp.c')
-rw-r--r--src/net/udp/dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 63e8baf5..13968638 100644
--- a/src/net/udp/dhcp.c
+++ b/src/net/udp/dhcp.c
@@ -540,7 +540,7 @@ struct async_operation * start_dhcp ( struct dhcp_session *dhcp ) {
- sizeof ( dhcp->xid ) ), sizeof ( dhcp->xid ));
/* Bind to local port */
- if ( ( rc = udp_open ( &dhcp->udp, BOOTPC_PORT ) ) != 0 ) {
+ if ( ( rc = udp_open ( &dhcp->udp, htons ( BOOTPC_PORT ) ) ) != 0 ) {
async_done ( &dhcp->aop, rc );
goto out;
}