|
|
@@ -540,7 +540,7 @@ struct async_operation * start_dhcp ( struct dhcp_session *dhcp ) {
|
|
540
|
540
|
- sizeof ( dhcp->xid ) ), sizeof ( dhcp->xid ));
|
|
541
|
541
|
|
|
542
|
542
|
/* Bind to local port */
|
|
543
|
|
- if ( ( rc = udp_open ( &dhcp->udp, BOOTPC_PORT ) ) != 0 ) {
|
|
|
543
|
+ if ( ( rc = udp_open ( &dhcp->udp, htons ( BOOTPC_PORT ) ) ) != 0 ) {
|
|
544
|
544
|
async_done ( &dhcp->aop, rc );
|
|
545
|
545
|
goto out;
|
|
546
|
546
|
}
|