Files
m241Neelima/components/ip_net2-6.9/ipcom/include/ipcom_waitif.h
T
2026-07-30 11:19:44 +05:30

83 lines
2.5 KiB
C

/*
******************************************************************************
* HEADER FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcom_waitif.h,v $ $Revision: 1.1.118.3 $
* $Source: /home/interpeak/CVSRoot/ipcom/include/ipcom_waitif.h,v $
* $Author: zluo0 $ $Date: 2012-02-03 09:50:30 $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
******************************************************************************
*/
#ifndef IPCOM_WAITIF_H
#define IPCOM_WAITIF_H
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
*/
/*
****************************************************************************
* 2 CONFIGURATION
****************************************************************************
*/
/*
****************************************************************************
* 3 INCLUDE FILES
****************************************************************************
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
****************************************************************************
* 5 FUNCTIONS
****************************************************************************
*/
/*
*===========================================================================
* ipcom_waitif_address
*===========================================================================
* Description: check interface enabled dhcp to get an IP address assigned.
* Parameters:
* Returns: 0 = success, -1 = error, and sets errno.
*
*/
IP_PUBLIC int
ipcom_waitif_address();
/*
*===========================================================================
* ipcom_waitif
*===========================================================================
* Description: Wait for interface to get an IP address assigned.
* Parameters: ifindex - Index of the interface to wait for.
* 0 = any interface except loopback.
* domain - The address domain.
* Returns: 0 = success, -1 = error, and sets errno.
*
*/
IP_PUBLIC int
ipcom_waitif(int ifindex, int domain);
#ifdef __cplusplus
}
#endif
#endif
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/