forked from Imagelibrary/rtems
The DHCP header.
This commit is contained in:
47
cpukit/libnetworking/rtems/dhcp.h
Normal file
47
cpukit/libnetworking/rtems/dhcp.h
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
$Id$
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright Cybertec Pty Ltd, 2005
|
||||||
|
All rights reserved Cybertec Pty Ltd, 2005
|
||||||
|
|
||||||
|
This software with is provided ``as is'' and with NO WARRANTY.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
@file
|
||||||
|
|
||||||
|
DHCP Server interface.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if !defined (__RTEMS_DHCP_H__)
|
||||||
|
#define __RTEMS_DHCP_H__
|
||||||
|
|
||||||
|
#if __cplusplus
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Perform DHCP.
|
||||||
|
*/
|
||||||
|
void rtems_bsdnet_do_dhcp (void);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Maintain a DHCP offer that has already been accepted.
|
||||||
|
*/
|
||||||
|
void rtems_bsdnet_do_dhcp_refresh_only (unsigned long xid,
|
||||||
|
unsigned long lease_time,
|
||||||
|
unsigned long elapsed_time,
|
||||||
|
unsigned long ip_address,
|
||||||
|
unsigned long srv_address,
|
||||||
|
const char *hostname);
|
||||||
|
|
||||||
|
#if __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user