summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/dhcp.h
blob: eb7f42d2fd715a330c9d27fe014bab58a4b7c148 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
  ------------------------------------------------------------------------

  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);
int rtems_bsdnet_do_dhcp_timeout (void);
void rtems_bsdnet_dhcp_down (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