diff options
author | Chris Johns <chrisj@rtems.org> | 2005-06-30 04:03:56 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2005-06-30 04:03:56 +0000 |
commit | 587e310edf6be2ca95ef44270f847fbd271069f1 (patch) | |
tree | 6f3701ecbbe408946ef7e446add8647711030041 /cpukit | |
parent | DHCP server for RTEMS. (diff) | |
download | rtems-587e310edf6be2ca95ef44270f847fbd271069f1.tar.bz2 |
The DHCP header.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libnetworking/rtems/dhcp.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/cpukit/libnetworking/rtems/dhcp.h b/cpukit/libnetworking/rtems/dhcp.h new file mode 100644 index 0000000000..f8cde76a41 --- /dev/null +++ b/cpukit/libnetworking/rtems/dhcp.h @@ -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 |