ha.h File Reference

#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 Documentation

#define BOOTREPLY   2

Definition at line 100 of file ha.h.

Referenced by init_header().

#define BOOTREQUEST   1

Definition at line 99 of file ha.h.

Referenced by get_packet(), and init_header().

#define BOUND   2

Definition at line 28 of file ha.h.

Referenced by udhcp().

#define BROADCAST_FLAG   0x8000

Definition at line 114 of file ha.h.

Referenced by get_packet().

#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_BOOT_SIZE   0x0d

Definition at line 74 of file ha.h.

#define DHCP_BROADCAST   0x1c

Definition at line 80 of file ha.h.

#define DHCP_CLIENT_ID   0x3d

Definition at line 94 of file ha.h.

Referenced by udhcp().

#define DHCP_COOKIE_SERVER   0x08

Definition at line 71 of file ha.h.

#define DHCP_DNS_SERVER   0x06

Definition at line 69 of file ha.h.

#define DHCP_DOMAIN_NAME   0x0f

Definition at line 75 of file ha.h.

#define DHCP_END   0xFF

Definition at line 96 of file ha.h.

Referenced by init_header().

#define DHCP_HOST_NAME   0x0c

Definition at line 73 of file ha.h.

#define DHCP_IP_TTL   0x17

Definition at line 78 of file ha.h.

#define DHCP_LEASE_TIME   0x33

Definition at line 84 of file ha.h.

Referenced by udhcp().

#define DHCP_LOG_SERVER   0x07

Definition at line 70 of file ha.h.

#define DHCP_LPR_SERVER   0x09

Definition at line 72 of file ha.h.

#define DHCP_MAGIC   0x63825363

Definition at line 60 of file ha.h.

Referenced by get_packet(), get_raw_packet(), and init_header().

#define DHCP_MAX_SIZE   0x39

Definition at line 90 of file ha.h.

#define DHCP_MESSAGE   0x38

Definition at line 89 of file ha.h.

#define DHCP_MESSAGE_TYPE   0x35

Definition at line 86 of file ha.h.

Referenced by init_header(), and udhcp().

#define DHCP_MTU   0x1a

Definition at line 79 of file ha.h.

#define DHCP_NAME_SERVER   0x05

Definition at line 68 of file ha.h.

#define DHCP_NTP_SERVER   0x2a

Definition at line 81 of file ha.h.

#define DHCP_OPTION_OVER   0x34

Definition at line 85 of file ha.h.

#define DHCP_PADDING   0x00

Definition at line 63 of file ha.h.

#define DHCP_PARAM_REQ   0x37

Definition at line 88 of file ha.h.

#define DHCP_REQUESTED_IP   0x32

Definition at line 83 of file ha.h.

Referenced by send_discover(), send_release(), and send_selecting().

#define DHCP_ROOT_PATH   0x11

Definition at line 77 of file ha.h.

#define DHCP_ROUTER   0x03

Definition at line 66 of file ha.h.

#define DHCP_SERVER_ID   0x36

Definition at line 87 of file ha.h.

Referenced by send_release(), send_selecting(), and udhcp().

#define DHCP_SUBNET   0x01

Definition at line 64 of file ha.h.

#define DHCP_SWAP_SERVER   0x10

Definition at line 76 of file ha.h.

#define DHCP_T1   0x3a

Definition at line 91 of file ha.h.

#define DHCP_T2   0x3b

Definition at line 92 of file ha.h.

#define DHCP_TIME_OFFSET   0x02

Definition at line 65 of file ha.h.

#define DHCP_TIME_SERVER   0x04

Definition at line 67 of file ha.h.

#define DHCP_VENDOR   0x3c

Definition at line 93 of file ha.h.

Referenced by get_packet().

#define DHCP_WINS_SERVER   0x2c

Definition at line 82 of file ha.h.

#define DHCPACK   5

Definition at line 109 of file ha.h.

Referenced by init_header(), and udhcp().

#define DHCPD_CONF_FILE   "/etc/udhcpd.conf"

Definition at line 50 of file ha.h.

#define DHCPDECLINE   4

Definition at line 108 of file ha.h.

#define DHCPDISCOVER   1

Definition at line 105 of file ha.h.

Referenced by add_dhcp_mobile(), init_header(), and send_discover().

#define DHCPINFORM   8

Definition at line 112 of file ha.h.

Referenced by init_header().

#define DHCPNAK   6

Definition at line 110 of file ha.h.

Referenced by init_header(), and udhcp().

#define DHCPOFFER   2

Definition at line 106 of file ha.h.

Referenced by init_header(), and udhcp().

#define DHCPRELEASE   7

Definition at line 111 of file ha.h.

Referenced by init_header(), and send_release().

#define DHCPREQUEST   3

Definition at line 107 of file ha.h.

Referenced by init_header(), send_renew(), and send_selecting().

#define ETH_10MB   1

Definition at line 102 of file ha.h.

Referenced by init_header().

#define ETH_10MB_LEN   6

Definition at line 103 of file ha.h.

Referenced by init_header().

#define FILE_FIELD   1

Definition at line 117 of file ha.h.

#define HA_CONF_FILE   "dynhad.conf"

Definition at line 129 of file ha.h.

#define HA_GLOBAL_CONF_FILE   SYSCONFDIR "/" HA_CONF_FILE

Definition at line 130 of file ha.h.

#define HA_PID_FILE   PIDDIR "/dynhad.pid"

Definition at line 134 of file ha.h.

#define INIT_REBOOT   5

Definition at line 31 of file ha.h.

#define INIT_SELECTING   0

Definition at line 26 of file ha.h.

Referenced by udhcp().

#define LEASE_TIME   (60*60*24*10)

Definition at line 47 of file ha.h.

#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_CODE   0

Definition at line 122 of file ha.h.

Referenced by udhcp().

#define OPT_DATA   2

Definition at line 124 of file ha.h.

Referenced by udhcp().

#define OPT_LEN   1

Definition at line 123 of file ha.h.

Referenced by get_packet(), and udhcp().

#define OPTION_FIELD   0

Definition at line 116 of file ha.h.

#define REBINDING   4

Definition at line 30 of file ha.h.

Referenced by udhcp().

#define RELEASED   7

Definition at line 33 of file ha.h.

Referenced by udhcp().

#define RELEASEIP   2

Definition at line 37 of file ha.h.

Referenced by udhcp().

#define RENEW_REQUESTED   6

Definition at line 32 of file ha.h.

Referenced by udhcp().

#define RENEWING   3

Definition at line 29 of file ha.h.

Referenced by udhcp().

#define RENEWIP   1

Definition at line 36 of file ha.h.

Referenced by udhcp().

#define REQUESTING   1

Definition at line 27 of file ha.h.

Referenced by udhcp().

#define REQUESTIP   0

Definition at line 35 of file ha.h.

Referenced by udhcp().

#define SERVER_PORT   67

Definition at line 57 of file ha.h.

Referenced by send_discover(), send_release(), send_renew(), and send_selecting().

#define SNAME_FIELD   2

Definition at line 118 of file ha.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
ENCAPS_IPIP 
ENCAPS_MINIMAL 
ENCAPS_GRE 

Definition at line 136 of file ha.h.

anonymous enum

Enumerator:
AUTH_RFC2002 
AUTH_RFC2002BIS 

Definition at line 137 of file ha.h.


Variable Documentation

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().


Generated on Tue Jan 15 12:24:46 2008 for Dynamics 0.8.1.Dynamo.1 by  doxygen 1.5.1