Last change
on this file since 3251 was 3232, checked in by Bruno Cornec, 11 years ago |
- Update mindi-busybox to 1.21.1
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1765] | 1 | /* vi: set sw=4 ts=4: */
|
---|
[2725] | 2 | /*
|
---|
| 3 | * Licensed under GPLv2, see file LICENSE in this source tree.
|
---|
| 4 | */
|
---|
| 5 | #ifndef UDHCP_DHCPC_H
|
---|
| 6 | #define UDHCP_DHCPC_H 1
|
---|
[821] | 7 |
|
---|
[2725] | 8 | PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
---|
[821] | 9 |
|
---|
| 10 | struct client_config_t {
|
---|
[2725] | 11 | uint8_t client_mac[6]; /* Our mac address */
|
---|
| 12 | IF_FEATURE_UDHCP_PORT(uint16_t port;)
|
---|
| 13 | int ifindex; /* Index number of the interface to use */
|
---|
| 14 | uint8_t opt_mask[256 / 8]; /* Bitmask of options to send (-O option) */
|
---|
[1765] | 15 | const char *interface; /* The name of the interface to use */
|
---|
| 16 | char *pidfile; /* Optionally store the process ID */
|
---|
| 17 | const char *script; /* User script to run at dhcp events */
|
---|
[2725] | 18 | struct option_set *options; /* list of DHCP options to send to server */
|
---|
[1765] | 19 | uint8_t *clientid; /* Optional client id to use */
|
---|
| 20 | uint8_t *vendorclass; /* Optional vendor class-id to use */
|
---|
| 21 | uint8_t *hostname; /* Optional hostname to use */
|
---|
| 22 | uint8_t *fqdn; /* Optional fully qualified domain name to use */
|
---|
[3232] | 23 |
|
---|
| 24 | uint16_t first_secs;
|
---|
| 25 | uint16_t last_secs;
|
---|
[2725] | 26 | } FIX_ALIASING;
|
---|
[821] | 27 |
|
---|
[2725] | 28 | /* server_config sits in 1st half of bb_common_bufsiz1 */
|
---|
| 29 | #define client_config (*(struct client_config_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE / 2]))
|
---|
[821] | 30 |
|
---|
[2725] | 31 | #if ENABLE_FEATURE_UDHCP_PORT
|
---|
| 32 | #define CLIENT_PORT (client_config.port)
|
---|
| 33 | #else
|
---|
| 34 | #define CLIENT_PORT 68
|
---|
| 35 | #endif
|
---|
[821] | 36 |
|
---|
[2725] | 37 | POP_SAVED_FUNCTION_VISIBILITY
|
---|
[1765] | 38 |
|
---|
[821] | 39 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.