From: Michael Brown Date: Wed, 19 Jul 2006 21:56:27 +0000 (+0000) Subject: udp_open() takes ports in network-endian order. X-Git-Tag: v0.9.3~1179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0768670fd8599555de4476e5494c07b4e1b854b6;p=thirdparty%2Fipxe.git udp_open() takes ports in network-endian order. --- diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 63e8baf56..139686389 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; }