#include "libbb_udhcp.h"
#include "owntypes.h"
Include dependency graph for ha.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | ha_tunnel_data |
| struct | client_config_t |
Defines | |
| #define | INIT_SELECTING 0 |
| #define | REQUESTING 1 |
| #define | BOUND 2 |
| #define | RENEWING 3 |
| #define | REBINDING 4 |
| #define | INIT_REBOOT 5 |
| #define | RENEW_REQUESTED 6 |
| #define | RELEASED 7 |
| #define | REQUESTIP 0 |
| #define | RENEWIP 1 |
| #define | RELEASEIP 2 |
| #define | LEASE_TIME (60*60*24*10) |
| #define | DHCPD_CONF_FILE "/etc/udhcpd.conf" |
| #define | SERVER_PORT 67 |
| #define | CLIENT_PORT 68 |
| #define | DHCP_MAGIC 0x63825363 |
| #define | DHCP_PADDING 0x00 |
| #define | DHCP_SUBNET 0x01 |
| #define | DHCP_TIME_OFFSET 0x02 |
| #define | DHCP_ROUTER 0x03 |
| #define | DHCP_TIME_SERVER 0x04 |
| #define | DHCP_NAME_SERVER 0x05 |
| #define | DHCP_DNS_SERVER 0x06 |
| #define | DHCP_LOG_SERVER 0x07 |
| #define | DHCP_COOKIE_SERVER 0x08 |
| #define | DHCP_LPR_SERVER 0x09 |
| #define | DHCP_HOST_NAME 0x0c |
| #define | DHCP_BOOT_SIZE 0x0d |
| #define | DHCP_DOMAIN_NAME 0x0f |
| #define | DHCP_SWAP_SERVER 0x10 |
| #define | DHCP_ROOT_PATH 0x11 |
| #define | DHCP_IP_TTL 0x17 |
| #define | DHCP_MTU 0x1a |
| #define | DHCP_BROADCAST 0x1c |
| #define | DHCP_NTP_SERVER 0x2a |
| #define | DHCP_WINS_SERVER 0x2c |
| #define | DHCP_REQUESTED_IP 0x32 |
| #define | DHCP_LEASE_TIME 0x33 |
| #define | DHCP_OPTION_OVER 0x34 |
| #define | DHCP_MESSAGE_TYPE 0x35 |
| #define | DHCP_SERVER_ID 0x36 |
| #define | DHCP_PARAM_REQ 0x37 |
| #define | DHCP_MESSAGE 0x38 |
| #define | DHCP_MAX_SIZE 0x39 |
| #define | DHCP_T1 0x3a |
| #define | DHCP_T2 0x3b |
| #define | DHCP_VENDOR 0x3c |
| #define | DHCP_CLIENT_ID 0x3d |
| #define | DHCP_END 0xFF |
| #define | BOOTREQUEST 1 |
| #define | BOOTREPLY 2 |
| #define | ETH_10MB 1 |
| #define | ETH_10MB_LEN 6 |
| #define | DHCPDISCOVER 1 |
| #define | DHCPOFFER 2 |
| #define | DHCPREQUEST 3 |
| #define | DHCPDECLINE 4 |
| #define | DHCPACK 5 |
| #define | DHCPNAK 6 |
| #define | DHCPRELEASE 7 |
| #define | DHCPINFORM 8 |
| #define | BROADCAST_FLAG 0x8000 |
| #define | OPTION_FIELD 0 |
| #define | FILE_FIELD 1 |
| #define | SNAME_FIELD 2 |
| #define | MAC_BCAST_ADDR (unsigned char *) "\xff\xff\xff\xff\xff\xff" |
| #define | OPT_CODE 0 |
| #define | OPT_LEN 1 |
| #define | OPT_DATA 2 |
| #define | HA_CONF_FILE "dynhad.conf" |
| #define | HA_GLOBAL_CONF_FILE SYSCONFDIR "/" HA_CONF_FILE |
| #define | HA_PID_FILE PIDDIR "/dynhad.pid" |
Enumerations | |
| enum | { ENCAPS_IPIP, ENCAPS_MINIMAL, ENCAPS_GRE } |
| enum | { AUTH_RFC2002, AUTH_RFC2002BIS } |
Variables | |
| client_config_t | client_config |
| #define BOOTREPLY 2 |
| #define BOOTREQUEST 1 |
| #define BROADCAST_FLAG 0x8000 |
| #define CLIENT_PORT 68 |
Definition at line 58 of file ha.h.
Referenced by get_raw_packet(), send_discover(), send_release(), send_renew(), send_selecting(), and udhcp().
| #define DHCP_END 0xFF |
| #define DHCP_MAGIC 0x63825363 |
Definition at line 60 of file ha.h.
Referenced by get_packet(), get_raw_packet(), and init_header().
| #define DHCP_MESSAGE_TYPE 0x35 |
| #define DHCP_REQUESTED_IP 0x32 |
Definition at line 83 of file ha.h.
Referenced by send_discover(), send_release(), and send_selecting().
| #define DHCP_SERVER_ID 0x36 |
| #define DHCP_VENDOR 0x3c |
| #define DHCPACK 5 |
| #define DHCPDISCOVER 1 |
Definition at line 105 of file ha.h.
Referenced by add_dhcp_mobile(), init_header(), and send_discover().
| #define DHCPINFORM 8 |
| #define DHCPNAK 6 |
| #define DHCPOFFER 2 |
| #define DHCPRELEASE 7 |
| #define DHCPREQUEST 3 |
Definition at line 107 of file ha.h.
Referenced by init_header(), send_renew(), and send_selecting().
| #define ETH_10MB 1 |
| #define ETH_10MB_LEN 6 |
| #define MAC_BCAST_ADDR (unsigned char *) "\xff\xff\xff\xff\xff\xff" |
Definition at line 121 of file ha.h.
Referenced by arpping(), send_discover(), send_renew(), and send_selecting().
| #define OPT_LEN 1 |
| #define SERVER_PORT 67 |
Definition at line 57 of file ha.h.
Referenced by send_discover(), send_release(), send_renew(), and send_selecting().
| anonymous enum |
| anonymous enum |
| struct client_config_t client_config |
Definition at line 92 of file ha.c.
Referenced by run_script(), send_discover(), send_renew(), send_selecting(), and udhcp().
1.5.1