answersLogoWhite

0

/**

* Return the byte of DHCP option data.

*

* @param client DHCP client.

* @param ptr pointer obtained by dhcp_get_option_ptr().

*

* @return byte value at the given address.

*/

static u8_t dhcp_get_option_byte(u8_t *ptr)

{

LWIP_DEBUGF(DHCP_DEBUG, ("option byte value=%"U16_F"\n", (u16_t)(*ptr)));

return *ptr;

}

#if 0

/**

* Return the 16-bit value of DHCP option data.

*

* @param client DHCP client.

* @param ptr pointer obtained by dhcp_get_option_ptr().

*

* @return byte value at the given address.

*/

static u16_t dhcp_get_option_short(u8_t *ptr)

{

u16_t value;

value = *ptr++ << 8;

value |= *ptr;

LWIP_DEBUGF(DHCP_DEBUG, ("option short value=%"U16_F"\n", value));

return value;

}

#endif

/**

* Return the 32-bit value of DHCP option data.

*

* @param client DHCP client.

* @param ptr pointer obtained by dhcp_get_option_ptr().

*

* @return byte value at the given address.

*/

static u32_t dhcp_get_option_long(u8_t *ptr)

{

u32_t value;

value = (u32_t)(*ptr++) << 24;

value |= (u32_t)(*ptr++) << 16;

value |= (u32_t)(*ptr++) << 8;

value |= (u32_t)(*ptr++);

LWIP_DEBUGF(DHCP_DEBUG, ("option long value=%"U32_F"\n", value));

return value;

}

#endif

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Computer Science

What is a client sever?

A server for a client


Explain the client server OS trends?

explain client or server OS trends


Why must the server program be executed before the client program?

A server program must be executed before the client program because once a client is run, it will attempt to initiate a connection with the server. If the server is down, then the client will not be able to make a connection.


Objective type question and answer for client server architecture?

Q 1. What is Client-server Computing? a. Client/server is a computational architecture that involves client processes requesting service from server processes. b. Client/server is a computational architecture that involves Server processes requesting service from Client processes. c. hardware and software systems containing more than one processing element or storage element Q 2. What is a Client process? a.The client is a process (program) that sends a message to a server process (program) b. Q 3. What is a Server process? a. A server process (program) fulfills the client request by performing the task requested Q 4. What is a Two-Tier Architecture? a. A two-tier architecture is where a client talks directly to a server, with no intervening serverb. A two-tier architecture is where a client can not talks directly to a server. c. A two-tier architecture introduces a server (or an "agent") between the client and the server Q 5. What is a Three-Tier Architecture? a. A three-tier architecture introduces a server (or an "agent") between the client and the server b. A three-tier architecture is where a client talks directly to a server, with no intervening server c. A two-tier architecture is where a client can not talks directly to a server. Q 6. What is Cooperative Processing? a. Cooperative processing is computing which requires two or more distinct processors to complete a single transaction b. Cooperative processing is computing which requires single processors to complete a single transaction. c. Is an architecture introduces a server (or an "agent") between the client and the server Q 7. What is Distributed Processing? a. The distribution of applications and business logic across multiple processing platforms. b. The distribution of applications and business logic inside single processing platforms. c. Computing which requires single processors to complete a single transaction. Q 8. What is Remote Data Management? a.In remote data management, the entire application resides on the client and the data management is located on a remote server/host. b. In remote data management, the entire application resides on the Server and the data management is located on a remote Client c. Is computing which requires two or more distinct processors to complete a single transaction Q 9. What is OSF-DCE? a. DCE is the Distributed Computing Environment, from the Open Software Foundation. b. Q 10. What is CORBA? a. CORBA stands for the Common Object Request Broker Architecture. b. Confederation of Regions Broker Architecture c. Certificate of Registration Broker Architecture Q 11. Which of the following protocols is used in the internet a. X.25 b. IBM c. TCP/IP d. UUCP Q 12. A port no. 2000 is used on both PCs of a network for an application. Then the following layer in a Network is needed for handling such a connection. a. Network layer b. Transport layer c. Physical layer d. Data link layer Q 13. One needs to send the data to hosts on the network at once. The data must be received only by the hosts for whom it is intended. The following topology should be used. a. Broadcast b. Point to point c. Multicast d. None of the above


What is the difference between a client and a member server?

Client server A Computer Joined In The Domain With Client OS like Windows XP, Windows vista, Windows 7 etc. and Member server A Computer Joined In The Domain With Server OS like windows server 2000,windows server 2003,windows server 2008

Related Questions

Write Client and server program in C language using UDP?

Write and run a client and a server program in C-language using UDP


Which is the most important item in a clientserver network A. Client B. Hub C. Server D. Media?

C. Server


What is client server approach of c plus plus?

Client/server programs typically employ multi-threading where the primary thread handles the server side of things while one or more threads handle the client side.


Write and run a client and a server program in C-language using TCP The client?

Homework question, this is a long answer.


What is the function of a director?

c. to determine whether a request is meant for the client CPU or the server.


A client server network is also known as?

Pretty much a client server network is known as a client server network.


Which program is always running in client server?

Server program is always running in client server.


If internet is a client server network?

For the internet; your web browser is the client and the web server is the server.


How do you shutdown a client computer from the server system by selecting the required client from the LAN?

Go to command prompt c:\&gt;shutdown -i Then give the client ip Then give shutdown.


What is a client sever?

A server for a client


What is Mail Client Server?

(Mail Client Server) e-mail client is also used to refer to any agent acting as a client toward an e-mail server,


How do see server doing by client?

A client cannot see what a server is doing; the only thing that can be monitored by the client is the data communication between the client and the server. If the client needs to see what is going on in the server then the client needs to connect to the server using remote desktop protocol, Terminal Services, telnet, or some other way to directly connect to the server.