/* netapp_dhcp is used to configure the network interface, static or dynamic (DHCP).
netapp_dhcp */
INT32 netapp_dhcp(UINT32 *aucIP, UINT32 *aucSubnetMask, UINT32 *aucDefaultGateway, UINT32 *aucDNSServer)
/* netapp_dhcp is used to configure the network interface, static or dynamic (DHCP).
netapp_dhcp */
INT32 netapp_dhcp(UINT32 *aucIP, UINT32 *aucSubnetMask, UINT32 *aucDefaultGateway, UINT32 *aucDNSServer)
{
	INT8 scRet;
	UINT8 *ptr;
	UINT8 *args;
	scRet = EFAIL;
	ptr = tSLInformation.pucTxCommandBuffer;
	args = (ptr + HEADERS_SIZE_CMD);
	ARRAY_TO_STREAM(args,aucIP,4);
	ARRAY_TO_STREAM(args,aucSubnetMask,4);
	ARRAY_TO_STREAM(args,aucDefaultGateway,4);
	args = UINT32_TO_STREAM(args, 0);
	ARRAY_TO_STREAM(args,aucDNSServer,4);
	hci_command_send(HCI_NETAPP_DHCP, ptr, NETAPP_DHCP_PARAMS_LEN);
	SimpleLinkWaitEvent(HCI_NETAPP_DHCP, &scRet);
	return(scRet);
}