34 #include <sys/types.h>
35 #include <netinet/in.h>
36 #include <sys/socket.h>
38 #include <arpa/inet.h>
43 #define fd_set cygwin_fd_set
44 #include <sys/types.h>
59 #include <net/route.h>
60 #include <net/if_arp.h>
62 # include <net/if_dl.h>
103 #if defined(LDAP_CONFIGURATION)
105 # include <sys/utsname.h>
106 # if defined(LDAP_USE_GSSAPI)
115 #if !defined (BYTE_NAME_HASH_SIZE)
116 # define BYTE_NAME_HASH_SIZE 401
118 #if !defined (BYTE_CODE_HASH_SIZE)
119 # define BYTE_CODE_HASH_SIZE 254
127 #if !defined (WORD_NAME_HASH_SIZE)
128 # define WORD_NAME_HASH_SIZE 20479
130 #if !defined (WORD_CODE_HASH_SIZE)
131 # define WORD_CODE_HASH_SIZE 16384
139 #if !defined (QUAD_NAME_HASH_SIZE)
140 # define QUAD_NAME_HASH_SIZE WORD_NAME_HASH_SIZE
142 #if !defined (QUAD_CODE_HASH_SIZE)
143 # define QUAD_CODE_HASH_SIZE WORD_CODE_HASH_SIZE
146 #if !defined (DNS_HASH_SIZE)
147 # define DNS_HASH_SIZE 0
151 #if !defined (DEFAULT_SPACE_HASH_SIZE)
152 # define DEFAULT_SPACE_HASH_SIZE 11
155 #if !defined (NWIP_HASH_SIZE)
156 # define NWIP_HASH_SIZE 17
159 #if !defined (FQDN_HASH_SIZE)
160 # define FQDN_HASH_SIZE 13
166 #if !defined (VIVCO_HASH_SIZE)
167 # define VIVCO_HASH_SIZE 127
170 #if !defined (VIVSO_HASH_SIZE)
171 # define VIVSO_HASH_SIZE VIVCO_HASH_SIZE
174 #if !defined (VSIO_HASH_SIZE)
175 # define VSIO_HASH_SIZE VIVCO_HASH_SIZE
178 #if !defined (VIV_ISC_HASH_SIZE)
179 # define VIV_ISC_HASH_SIZE 3
182 #if !defined (UNIVERSE_HASH_SIZE)
183 # define UNIVERSE_HASH_SIZE 13
186 #if !defined (GROUP_HASH_SIZE)
187 # define GROUP_HASH_SIZE 0
192 #if !defined (HOST_HASH_SIZE)
193 # define HOST_HASH_SIZE 22501
202 #if !defined (LEASE_HASH_SIZE)
203 # define LEASE_HASH_SIZE 100003
209 #if !defined (SCLASS_HASH_SIZE)
210 # define SCLASS_HASH_SIZE 12007
213 #if !defined (AGENT_HASH_SIZE)
214 # define AGENT_HASH_SIZE 11
223 #if !defined (SERVER_HASH_SIZE)
224 # define SERVER_HASH_SIZE (2*(sizeof(server_options) / sizeof(struct option)))
229 #if !defined (OPTION_HASH_SIZE)
230 # define OPTION_HASH_SIZE 17
231 # define OPTION_HASH_PTWO 32
232 # define OPTION_HASH_EXP 5
235 #define compute_option_hash(x) \
236 (((x) & (OPTION_HASH_PTWO - 1)) + \
237 (((x) >> OPTION_HASH_EXP) & \
238 (OPTION_HASH_PTWO - 1))) % OPTION_HASH_SIZE;
305 #if defined(LDAP_CONFIGURATION)
312 int (*read_function)(
struct parse *);
363 #define OPTION_HAD_NULLS 0x00000001
416 #if !defined (PACKET_MAX_CLASSES)
417 # define PACKET_MAX_CLASSES 5
448 #define HARDWARE_ADDR_LEN 20
451 #define HARDWARE_ADDR_LEN_IOCTL 8
458 #if defined(LDAP_CONFIGURATION)
459 # define LDAP_BUFFER_SIZE 8192
460 # define LDAP_METHOD_STATIC 0
461 # define LDAP_METHOD_DYNAMIC 1
462 #if defined (LDAP_USE_SSL)
463 # define LDAP_SSL_OFF 0
464 # define LDAP_SSL_ON 1
465 # define LDAP_SSL_TLS 2
466 # define LDAP_SSL_LDAPS 3
470 struct ldap_config_stack {
479 struct ldap_config_stack *children;
480 struct ldap_config_stack *next;
500 #define FTS_EXPIRED 3
501 #define FTS_RELEASED 4
502 #define FTS_ABANDONED 5
508 #define FTS_LAST FTS_BACKUP
546 # define STATIC_LEASE 1
547 # define BOOTP_LEASE 2
548 # define RESERVED_LEASE 4
549 # define MS_NULL_TERMINATION 8
550 # define ON_UPDATE_QUEUE 16
551 # define ON_ACK_QUEUE 32
552 # define ON_QUEUE (ON_UPDATE_QUEUE | ON_ACK_QUEUE)
553 # define UNICAST_BROADCAST_HACK 64
554 # define ON_DEFERRED_QUEUE 128
557 # define PERSISTENT_FLAGS (ON_ACK_QUEUE | ON_UPDATE_QUEUE)
559 # define EPHEMERAL_FLAGS (MS_NULL_TERMINATION | \
560 UNICAST_BROADCAST_HACK | \
642 #define SHARED_NET_DECL 2
643 #define SUBNET_DECL 3
650 #define DISCOVER_RUNNING 0
651 #define DISCOVER_SERVER 1
652 #define DISCOVER_UNCONFIGURED 2
653 #define DISCOVER_RELAY 3
654 #define DISCOVER_REQUESTED 4
657 #define DDNS_UPDATE_STYLE_NONE 0
658 #define DDNS_UPDATE_STYLE_AD_HOC 1
659 #define DDNS_UPDATE_STYLE_INTERIM 2
660 #define DDNS_UPDATE_STYLE_STANDARD 3
664 #define SV_DEFAULT_LEASE_TIME 1
665 #define SV_MAX_LEASE_TIME 2
666 #define SV_MIN_LEASE_TIME 3
667 #define SV_BOOTP_LEASE_CUTOFF 4
668 #define SV_BOOTP_LEASE_LENGTH 5
669 #define SV_BOOT_UNKNOWN_CLIENTS 6
670 #define SV_DYNAMIC_BOOTP 7
671 #define SV_ALLOW_BOOTP 8
672 #define SV_ALLOW_BOOTING 9
673 #define SV_ONE_LEASE_PER_CLIENT 10
674 #define SV_GET_LEASE_HOSTNAMES 11
675 #define SV_USE_HOST_DECL_NAMES 12
676 #define SV_USE_LEASE_ADDR_FOR_DEFAULT_ROUTE 13
677 #define SV_MIN_SECS 14
678 #define SV_FILENAME 15
679 #define SV_SERVER_NAME 16
680 #define SV_NEXT_SERVER 17
681 #define SV_AUTHORITATIVE 18
682 #define SV_VENDOR_OPTION_SPACE 19
683 #define SV_ALWAYS_REPLY_RFC1048 20
684 #define SV_SITE_OPTION_SPACE 21
685 #define SV_ALWAYS_BROADCAST 22
686 #define SV_DDNS_DOMAIN_NAME 23
687 #define SV_DDNS_HOST_NAME 24
688 #define SV_DDNS_REV_DOMAIN_NAME 25
689 #define SV_LEASE_FILE_NAME 26
690 #define SV_PID_FILE_NAME 27
691 #define SV_DUPLICATES 28
692 #define SV_DECLINES 29
693 #define SV_DDNS_UPDATES 30
694 #define SV_OMAPI_PORT 31
695 #define SV_LOCAL_PORT 32
696 #define SV_LIMITED_BROADCAST_ADDRESS 33
697 #define SV_REMOTE_PORT 34
698 #define SV_LOCAL_ADDRESS 35
699 #define SV_OMAPI_KEY 36
700 #define SV_STASH_AGENT_OPTIONS 37
701 #define SV_DDNS_TTL 38
702 #define SV_DDNS_UPDATE_STYLE 39
703 #define SV_CLIENT_UPDATES 40
704 #define SV_UPDATE_OPTIMIZATION 41
705 #define SV_PING_CHECKS 42
706 #define SV_UPDATE_STATIC_LEASES 43
707 #define SV_LOG_FACILITY 44
708 #define SV_DO_FORWARD_UPDATES 45
709 #define SV_PING_TIMEOUT 46
710 #define SV_RESERVE_INFINITE 47
711 #define SV_DDNS_CONFLICT_DETECT 48
712 #define SV_LEASEQUERY 49
713 #define SV_ADAPTIVE_LEASE_TIME_THRESHOLD 50
714 #define SV_DO_REVERSE_UPDATES 51
715 #define SV_FQDN_REPLY 52
716 #define SV_PREFER_LIFETIME 53
717 #define SV_DHCPV6_LEASE_FILE_NAME 54
718 #define SV_DHCPV6_PID_FILE_NAME 55
719 #define SV_LIMIT_ADDRS_PER_IA 56
720 #define SV_LIMIT_PREFS_PER_IA 57
721 #define SV_DELAYED_ACK 58
722 #define SV_MAX_ACK_DELAY 59
723 #if defined(LDAP_CONFIGURATION)
724 # define SV_LDAP_SERVER 60
725 # define SV_LDAP_PORT 61
726 # define SV_LDAP_USERNAME 62
727 # define SV_LDAP_PASSWORD 63
728 # define SV_LDAP_BASE_DN 64
729 # define SV_LDAP_METHOD 65
730 # define SV_LDAP_DEBUG_FILE 66
731 # define SV_LDAP_DHCP_SERVER_CN 67
732 # define SV_LDAP_REFERRALS 68
733 #if defined (LDAP_USE_SSL)
734 # define SV_LDAP_SSL 69
735 # define SV_LDAP_TLS_REQCERT 70
736 # define SV_LDAP_TLS_CA_FILE 71
737 # define SV_LDAP_TLS_CA_DIR 72
738 # define SV_LDAP_TLS_CERT 73
739 # define SV_LDAP_TLS_KEY 74
740 # define SV_LDAP_TLS_CRLCHECK 75
741 # define SV_LDAP_TLS_CIPHERS 76
742 # define SV_LDAP_TLS_RANDFILE 77
745 #define SV_CACHE_THRESHOLD 78
746 #define SV_DONT_USE_FSYNC 79
747 #define SV_DDNS_LOCAL_ADDRESS4 80
748 #define SV_DDNS_LOCAL_ADDRESS6 81
749 #define SV_IGNORE_CLIENT_UIDS 82
750 #define SV_LOG_THRESHOLD_LOW 83
751 #define SV_LOG_THRESHOLD_HIGH 84
752 #define SV_ECHO_CLIENT_ID 85
753 #define SV_SERVER_ID_CHECK 86
754 #define SV_PREFIX_LEN_MODE 87
756 #if defined(LDAP_CONFIGURATION)
757 #if defined (LDAP_USE_GSSAPI)
758 # define SV_LDAP_GSSAPI_KEYTAB 88
759 # define SV_LDAP_GSSAPI_PRINCIPAL 89
763 #if !defined (DEFAULT_PING_TIMEOUT)
764 # define DEFAULT_PING_TIMEOUT 1
767 #if !defined (DEFAULT_DELAYED_ACK)
768 # define DEFAULT_DELAYED_ACK 28
771 #if !defined (DEFAULT_ACK_DELAY_SECS)
772 # define DEFAULT_ACK_DELAY_SECS 0
775 #if !defined (DEFAULT_ACK_DELAY_USECS)
776 # define DEFAULT_ACK_DELAY_USECS 250000
779 #if !defined (DEFAULT_MIN_ACK_DELAY_USECS)
780 # define DEFAULT_MIN_ACK_DELAY_USECS 10000
783 #if !defined (DEFAULT_CACHE_THRESHOLD)
784 # define DEFAULT_CACHE_THRESHOLD 25
787 #if !defined (DEFAULT_DEFAULT_LEASE_TIME)
788 # define DEFAULT_DEFAULT_LEASE_TIME 43200
791 #if !defined (DEFAULT_MIN_LEASE_TIME)
792 # define DEFAULT_MIN_LEASE_TIME 300
795 #if !defined (DEFAULT_MAX_LEASE_TIME)
796 # define DEFAULT_MAX_LEASE_TIME 86400
799 #if !defined (DEFAULT_DDNS_TTL)
800 # define DEFAULT_DDNS_TTL 3600
802 #if !defined (MAX_DEFAULT_DDNS_TTL)
803 # define MAX_DEFAULT_DDNS_TTL 3600
806 #if !defined (MIN_LEASE_WRITE)
807 # define MIN_LEASE_WRITE 15
813 #define PLM_MINIMUM 3
814 #define PLM_MAXIMUM 4
819 #define CL_SELECT_INTERVAL 2
820 #define CL_REBOOT_TIMEOUT 3
821 #define CL_RETRY_INTERVAL 4
822 #define CL_BACKOFF_CUTOFF 5
823 #define CL_INITIAL_INTERVAL 6
824 #define CL_BOOTP_POLICY 7
825 #define CL_SCRIPT_NAME 8
826 #define CL_REQUESTED_OPTIONS 9
827 #define CL_REQUESTED_LEASE_TIME 10
828 #define CL_SEND_OPTIONS 11
830 #define CL_REJECT_LIST 13
832 #ifndef CL_DEFAULT_TIMEOUT
833 # define CL_DEFAULT_TIMEOUT 60
836 #ifndef CL_DEFAULT_SELECT_INTERVAL
837 # define CL_DEFAULT_SELECT_INTERVAL 0
840 #ifndef CL_DEFAULT_REBOOT_TIMEOUT
841 # define CL_DEFAULT_REBOOT_TIMEOUT 10
844 #ifndef CL_DEFAULT_RETRY_INTERVAL
845 # define CL_DEFAULT_RETRY_INTERVAL 300
848 #ifndef CL_DEFAULT_BACKOFF_CUTOFF
849 # define CL_DEFAULT_BACKOFF_CUTOFF 120
852 #ifndef CL_DEFAULT_INITIAL_INTERVAL
853 # define CL_DEFAULT_INITIAL_INTERVAL 10
856 #ifndef CL_DEFAULT_BOOTP_POLICY
857 # define CL_DEFAULT_BOOTP_POLICY P_ACCEPT
860 #ifndef CL_DEFAULT_REQUESTED_OPTIONS
861 # define CL_DEFAULT_REQUESTED_OPTIONS \
863 DHO_BROADCAST_ADDRESS, \
867 DHO_DOMAIN_NAME_SERVERS, \
878 #define GROUP_OBJECT_DELETED 1
879 #define GROUP_OBJECT_DYNAMIC 2
880 #define GROUP_OBJECT_STATIC 4
914 #define HOST_DECL_DELETED 1
915 #define HOST_DECL_DYNAMIC 2
916 #define HOST_DECL_STATIC 4
960 #if defined (FAILOVER_PROTOCOL)
972 #define SHARED_IMPLICIT 1
980 #if defined (FAILOVER_PROTOCOL)
1006 #define CLASS_TYPE_VENDOR 0
1007 #define CLASS_TYPE_USER 1
1008 #define CLASS_TYPE_CLASS 2
1009 #define CLASS_TYPE_SUBCLASS 3
1044 #define CLASS_DECL_DELETED 1
1045 #define CLASS_DECL_DYNAMIC 2
1046 #define CLASS_DECL_STATIC 4
1047 #define CLASS_DECL_SUBCLASS 8
1076 #define DHC6_ADDR_DEPREFFED 0x01
1077 #define DHC6_ADDR_EXPIRED 0x02
1320 #define INTERFACE_REQUESTED 1
1321 #define INTERFACE_AUTOMATIC 2
1322 #define INTERFACE_RUNNING 4
1323 #define INTERFACE_DOWNSTREAM 8
1324 #define INTERFACE_UPSTREAM 16
1325 #define INTERFACE_STREAMS (INTERFACE_DOWNSTREAM | INTERFACE_UPSTREAM)
1329 # if defined(USE_DLPI_SEND) || defined(USE_DLPI_RECEIVE) || \
1330 defined(USE_DLPI_HWADDR)
1331 int dlpi_sap_length;
1332 struct hardware dlpi_broadcast_addr;
1414 #define DNS_ZONE_ACTIVE 0
1415 #define DNS_ZONE_INACTIVE 1
1440 #define OPTION_ZERO(mask) (memset (mask, 0, 16))
1441 #define OPTION_SET(mask, bit) (mask [bit >> 8] |= (1 << (bit & 7)))
1442 #define OPTION_CLR(mask, bit) (mask [bit >> 8] &= ~(1 << (bit & 7)))
1443 #define OPTION_ISSET(mask, bit) (mask [bit >> 8] & (1 << (bit & 7)))
1444 #define OPTION_ISCLR(mask, bit) (!OPTION_ISSET (mask, bit))
1448 #define OPTION_SPACE(x) ((x) + 2 * ((x) / 255 + 1))
1452 #undef _PATH_DHCPD_CONF
1453 #define _PATH_DHCPD_CONF "dhcpd.conf"
1454 #undef _PATH_DHCPD_DB
1455 #define _PATH_DHCPD_DB "dhcpd.leases"
1456 #undef _PATH_DHCPD6_DB
1457 #define _PATH_DHCPD6_DB "dhcpd6.leases"
1458 #undef _PATH_DHCPD_PID
1459 #define _PATH_DHCPD_PID "dhcpd.pid"
1460 #undef _PATH_DHCPD6_PID
1461 #define _PATH_DHCPD6_PID "dhcpd6.pid"
1464 #ifndef _PATH_DHCPD_CONF
1465 #define _PATH_DHCPD_CONF "/etc/dhcp/dhcpd.conf"
1468 #ifndef _PATH_DHCPD_DB
1469 #define _PATH_DHCPD_DB LOCALSTATEDIR"/db/dhcpd.leases"
1472 #ifndef _PATH_DHCPD6_DB
1473 #define _PATH_DHCPD6_DB LOCALSTATEDIR"/db/dhcpd6.leases"
1476 #ifndef _PATH_DHCPD_PID
1477 #define _PATH_DHCPD_PID LOCALSTATEDIR"/run/dhcpd.pid"
1480 #ifndef _PATH_DHCPD6_PID
1481 #define _PATH_DHCPD6_PID LOCALSTATEDIR"/run/dhcpd6.pid"
1486 #ifndef _PATH_DHCLIENT_CONF
1487 #define _PATH_DHCLIENT_CONF "/etc/dhcp/dhclient.conf"
1490 #ifndef _PATH_DHCLIENT_SCRIPT
1491 #define _PATH_DHCLIENT_SCRIPT "/usr/sbin/dhclient-script"
1494 #ifndef _PATH_DHCLIENT_PID
1495 #define _PATH_DHCLIENT_PID LOCALSTATEDIR"/run/dhclient.pid"
1498 #ifndef _PATH_DHCLIENT6_PID
1499 #define _PATH_DHCLIENT6_PID LOCALSTATEDIR"/run/dhclient6.pid"
1502 #ifndef _PATH_DHCLIENT_DB
1503 #define _PATH_DHCLIENT_DB LOCALSTATEDIR"/db/dhclient.leases"
1506 #ifndef _PATH_DHCLIENT6_DB
1507 #define _PATH_DHCLIENT6_DB LOCALSTATEDIR"/db/dhclient6.leases"
1510 #ifndef _PATH_RESOLV_CONF
1511 #define _PATH_RESOLV_CONF "/etc/resolv.conf"
1514 #ifndef _PATH_DHCRELAY_PID
1515 #define _PATH_DHCRELAY_PID LOCALSTATEDIR"/run/dhcrelay.pid"
1518 #ifndef _PATH_DHCRELAY6_PID
1519 #define _PATH_DHCRELAY6_PID LOCALSTATEDIR"/run/dhcrelay6.pid"
1522 #ifndef DHCPD_LOG_FACILITY
1523 #define DHCPD_LOG_FACILITY LOG_DAEMON
1526 #define MAX_TIME 0x7fffffff
1531 #define DHCP_LOG_OPTIONS LOG_NDELAY | LOG_PID
1533 #define DHCP_LOG_OPTIONS LOG_NDELAY
1557 #define EXPIRED_IPV6_CLEANUP_TIME (60*60)
1664 #define POND_TRACK_MAX ISC_UINT64_MAX
1667 #define DDNS_UPDATE_ADDR 0x01
1668 #define DDNS_UPDATE_PTR 0x02
1669 #define DDNS_INCLUDE_RRSET 0x04
1670 #define DDNS_CONFLICT_OVERRIDE 0x08
1671 #define DDNS_CLIENT_DID_UPDATE 0x10
1672 #define DDNS_EXECUTE_NEXT 0x20
1673 #define DDNS_ABORT 0x40
1674 #define DDNS_STATIC_LEASE 0x80
1675 #define DDNS_ACTIVE_LEASE 0x100
1680 #define DDNS_STATE_CLEANUP 0 // The previous step failed, cleanup
1682 #define DDNS_STATE_ADD_FW_NXDOMAIN 1
1683 #define DDNS_STATE_ADD_FW_YXDHCID 2
1684 #define DDNS_STATE_ADD_PTR 3
1686 #define DDNS_STATE_REM_FW_YXDHCID 17
1687 #define DDNS_STATE_REM_FW_NXRR 18
1688 #define DDNS_STATE_REM_PTR 19
1693 #define DDNS_PRINT_INBOUND 1
1694 #define DDNS_PRINT_OUTBOUND 0
1699 isc_result_t result);
1758 unsigned, struct universe *);
1761 const
unsigned char *,
unsigned,
1762 struct universe *, const
char *);
1765 int, struct option_state *, struct option_state *,
1767 int,
int,
int, struct
data_string *, const
char *);
1769 const
unsigned char *,
unsigned, struct universe *);
1781 struct client_state *client_state,
1782 struct option_state *in_options,
1783 struct option_state *cfg_options,
1784 struct binding_scope **scope,
1785 struct universe *u,
void *stuff,
1789 struct client_state *,
1790 struct option_state *,
1791 struct option_state *,
1792 struct binding_scope **,
1793 struct universe *,
void *));
1796 struct packet *packet, struct lease *lease,
1797 struct client_state *client_state,
1798 struct option_state *in_options,
1799 struct option_state *cfg_options,
1800 struct binding_scope **scope,
1801 struct universe *universe);
1804 const
unsigned char *
buffer,
unsigned length,
1805 struct universe *u);
1806 int append_option(struct data_string *dst, struct universe *universe,
1807 struct option *option, struct data_string *src);
1810 unsigned char *buffer,
unsigned buflen,
unsigned index,
1811 struct packet *packet, struct lease *lease,
1812 struct client_state *client_state,
1813 struct option_state *in_options,
1814 struct option_state *cfg_options,
1815 struct binding_scope **scope,
1816 unsigned *priority_list,
int priority_len,
1817 unsigned first_cutoff,
int second_cutoff,
int terminate,
1818 const
char *vuname);
1819 int store_options6(
char *,
int, struct option_state *, struct packet *,
1820 const
int *, struct data_string *);
1824 unsigned,
int,
int);
1826 const
unsigned char *);
1827 int get_option (struct data_string *, struct universe *,
1828 struct packet *, struct lease *, struct client_state *,
1829 struct option_state *, struct option_state *,
1830 struct option_state *, struct binding_scope **,
unsigned,
1833 struct packet *, struct lease *, struct client_state *,
1834 struct option_state *, struct option_state *,
1835 struct option_state *, struct binding_scope **,
unsigned,
1837 void set_option (struct universe *, struct option_state *,
1838 struct option_cache *, enum statement_op);
1840 struct option_state *,
unsigned);
1842 struct option_state *,
1845 struct option_state *,
1846 struct option_cache *);
1848 struct buffer *,
unsigned char *,
unsigned,
1851 struct buffer *,
unsigned char *,
unsigned,
1855 void save_option(struct universe *, struct option_state *,
1856 struct option_cache *);
1858 struct option_cache *);
1860 struct option_cache *, isc_boolean_t appendp);
1861 void delete_option (struct universe *, struct option_state *,
int);
1863 struct option_state *,
int);
1867 struct option_state *,
1870 struct universe *, struct packet *, struct lease *,
1871 struct client_state *,
1872 struct option_state *, struct option_state *,
1873 struct binding_scope **, struct option_cache *);
1875 struct packet *, struct lease *,
1876 struct client_state *,
1877 struct option_state *,
1878 struct option_state *,
1879 struct binding_scope **,
1880 struct data_string *);
1882 struct packet *, struct lease *,
1883 struct client_state *,
1884 struct option_state *,
1885 struct option_state *,
1886 struct binding_scope **,
1889 struct packet *, struct lease *,
1890 struct client_state *,
1891 struct option_state *,
1892 struct option_state *,
1893 struct binding_scope **,
1896 struct packet *, struct lease *,
1897 struct client_state *,
1898 struct option_state *,
1899 struct option_state *,
1900 struct binding_scope **,
1903 struct option_state *, struct option_state *,
1904 struct binding_scope **, struct universe *,
void *,
1905 void (*) (struct option_cache *, struct packet *,
1906 struct lease *, struct client_state *,
1907 struct option_state *, struct option_state *,
1908 struct binding_scope **,
1909 struct universe *,
void *),
1910 struct option_cache *, const
char *);
1912 struct client_state *,
1913 struct option_state *,
1914 struct option_state *,
1915 struct binding_scope **,
1916 struct universe *,
void *,
1917 void (*) (struct option_cache *,
1919 struct lease *, struct client_state *,
1920 struct option_state *,
1921 struct option_state *,
1922 struct binding_scope **,
1923 struct universe *,
void *));
1925 struct client_state *,
1926 struct option_state *,
1927 struct option_state *,
1928 struct binding_scope **,
1929 struct universe *,
void *,
1930 void (*) (struct option_cache *,
1933 struct client_state *,
1934 struct option_state *,
1935 struct option_state *,
1936 struct binding_scope **,
1937 struct universe *,
void *));
1939 struct packet *, struct lease *,
1940 struct client_state *,
1941 struct option_state *, struct option_state *,
1942 struct option_state *, struct binding_scope **,
1945 struct option_state *,
1948 struct option_cache *, isc_boolean_t appendp);
1950 struct client_state *,
1951 struct option_state *,
1952 struct option_state *,
1953 struct binding_scope **,
1954 struct universe *,
void *,
1955 void (*) (struct option_cache *,
1958 struct client_state *,
1959 struct option_state *,
1960 struct option_state *,
1961 struct binding_scope **,
1962 struct universe *,
void *));
1964 struct lease *, struct client_state *,
1965 struct option_state *,
1966 struct option_state *,
1967 struct binding_scope **,
1971 struct option_state *,
unsigned);
1973 struct dhcp_packet *,
unsigned,
1975 void do_packet6(struct interface_info *, const
char *,
1976 int,
int, const struct iaddr *, isc_boolean_t);
1982 unsigned int option_num,
1984 unsigned int data_len);
1987 extern struct timeval
cur_tv;
1988 #define cur_time cur_tv.tv_sec
2003 int main(
int,
char **);
2014 #if defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT)
2015 void relinquish_ackqueue(
void);
2020 char *,
unsigned,
const char *,
int);
2027 struct parse *cfile);
2029 struct parse *cfile);
2034 #define skip_token(a,b,c) ((void) next_token((a),(b),(c)))
2041 #if defined (TRACING)
2048 struct host_decl *,
int);
2049 #if defined (FAILOVER_PROTOCOL)
2052 dhcp_failover_state_t *);
2061 struct group *,
int);
2075 struct pool *,
struct lease **);
2089 int ddns_updates(
struct packet *,
struct lease *,
struct lease *,
2093 #if defined (TRACING)
2109 struct parse *,
int);
2113 unsigned char *,
unsigned *,
2114 int,
int,
unsigned);
2126 struct parse *,
int *,
2129 struct parse *,
int *,
2134 struct parse *,
int *);
2136 struct parse *,
int *);
2138 struct parse *,
int *,
2141 struct parse *,
int *);
2143 struct parse *,
int *);
2146 struct parse *,
int *);
2148 struct parse *,
int *);
2156 int lookups,
struct option *option);
2158 struct parse *,
int,
2159 struct option *,
enum statement_op);
2161 const char **,
struct expression *,
int,
int);
2173 u_int8_t *,
unsigned, struct option *,
2178 const
unsigned char *,
unsigned,
int,
int,
2182 struct expression *, struct expression *);
2185 struct expression *, struct expression *);
2186 int make_limit (struct expression **, struct expression *,
int);
2188 int option_cache (struct option_cache **, struct data_string *,
2189 struct expression *, struct option *,
2192 struct lease *, struct client_state *,
2193 struct option_state *, struct option_state *,
2194 struct binding_scope **, struct expression *,
2198 struct packet *, struct lease *,
2199 struct client_state *,
2200 struct option_state *,
2201 struct option_state *,
2202 struct binding_scope **,
2203 struct expression *);
2205 struct packet *, struct lease *,
2206 struct client_state *,
2207 struct option_state *,
2208 struct option_state *,
2209 struct binding_scope **,
2210 struct expression *,
2213 struct lease *, struct client_state *,
2214 struct option_state *, struct option_state *,
2215 struct binding_scope **,
2216 struct expression *);
2218 struct packet *, struct lease *,
2219 struct client_state *,
2220 struct option_state *, struct option_state *,
2221 struct binding_scope **,
2222 struct option_cache *,
2225 struct packet *, struct lease *,
2226 struct client_state *,
2227 struct option_state *,
2228 struct option_state *,
2229 struct binding_scope **,
2230 struct option_cache *,
2233 struct packet *, struct lease *,
2234 struct client_state *,
2235 struct option_state *,
2236 struct option_state *,
2237 struct binding_scope **,
2238 struct expression *);
2250 int free_bindings (struct binding_scope *, const
char *,
int);
2258 const
char *, struct data_string *);
2260 struct binding_scope *, const
char *);
2261 int unset (struct binding_scope *, const
char *);
2264 struct data_string *);
2272 void dhcp (struct packet *);
2274 void dhcprequest (struct packet *,
int, struct lease *);
2278 void nak_lease (struct packet *, struct iaddr *cip, struct
group*);
2279 void ack_lease (struct packet *, struct lease *,
2280 unsigned int,
TIME,
char *,
int, struct host_decl *);
2281 void echo_client_id(struct packet*, struct lease*, struct option_state*,
2282 struct option_state*);
2287 int find_lease (struct lease **, struct packet *,
2291 struct shared_network *,
2292 struct host_decl *);
2296 struct
pool *,
int *);
2301 struct dhcp_packet *,
2302 unsigned,
unsigned);
2304 struct option_state *options,
2305 struct option_state *out_options,
2306 struct packet *packet);
2309 struct packet *packet,
2310 struct group *network_group);
2323 isc_result_t
get_client_id(struct packet *, struct data_string *);
2324 void dhcpv6(struct packet *);
2327 void bootp(struct packet *);
2334 isc_result_t
delete_group (struct group_object *,
int);
2336 int clone_group (struct group **, struct group *, const
char *,
int);
2341 struct lease *
new_leases (
unsigned, const
char *,
int);
2342 #if defined (DEBUG_MEMORY_LEAKAGE) || \
2343 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT)
2344 void relinquish_free_lease_states (
void);
2360 #if defined (DEBUG_MEMORY_LEAKAGE) || \
2361 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT)
2362 void relinquish_free_pairs (
void);
2363 void relinquish_free_expressions (
void);
2364 void relinquish_free_binding_values (
void);
2365 void relinquish_free_option_caches (
void);
2366 void relinquish_free_packets (
void);
2377 int group_reference (
struct group **,
struct group *,
const char *,
int);
2385 struct option *
new_option (
const char *,
const char *,
int);
2387 const char * file,
int line);
2398 struct permit *
new_permit (
const char *,
int);
2399 void free_permit (
struct permit *,
const char *,
int);
2401 void free_pair (pair,
const char *,
int);
2404 struct expression *,
const char *,
int);
2409 struct binding_value *,
2414 struct fundef *,
const char *,
int);
2417 struct option_cache *,
const char *,
int);
2423 const char *,
const char *,
int);
2425 struct dns_host_entry *,
2431 struct option_state *,
const char *,
int);
2443 struct executable_statement *,
2447 struct packet *,
const char *,
int);
2452 struct binding_scope *,
2456 struct dns_zone *,
const char *,
int);
2459 #define DEFAULT_TIME_FORMAT 0
2460 #define LOCAL_TIME_FORMAT 1
2463 char *
quotify_buf (
const unsigned char *,
unsigned,
const char *,
int);
2464 char *
print_base64 (
const unsigned char *,
unsigned,
const char *,
int);
2465 char *
print_hw_addr (
const int,
const int,
const unsigned char *);
2467 void dump_raw (
const unsigned char *,
unsigned);
2469 struct lease *,
struct client_state *,
2470 struct option_state *,
struct option_state *,
2471 struct binding_scope **,
struct universe *,
void *);
2474 char *
print_hex (
unsigned,
const u_int8_t *,
unsigned,
unsigned);
2475 void print_hex_only (
unsigned,
const u_int8_t *,
unsigned,
char *);
2477 #define print_hex_1(len, data, limit) print_hex(len, data, limit, 0)
2478 #define print_hex_2(len, data, limit) print_hex(len, data, limit, 1)
2479 #define print_hex_3(len, data, limit) print_hex(len, data, limit, 2)
2485 const char *,
const char *, ...);
2487 struct data_string *);
2489 const char *,
const char *,
const char *);
2491 #if defined (NSUPDATE)
2499 #if defined (USE_SOCKET_SEND) || defined (USE_SOCKET_RECEIVE) \
2500 || defined (USE_SOCKET_FALLBACK)
2506 #if defined (USE_SOCKET_FALLBACK) && !defined (USE_SOCKET_SEND)
2510 struct packet *,
struct dhcp_packet *,
size_t,
2512 struct sockaddr_in *,
struct hardware *);
2514 struct dhcp_packet *,
size_t,
struct in6_addr *,
2515 struct sockaddr_in6 *,
struct hardware *);
2518 #ifdef USE_SOCKET_SEND
2523 struct packet *,
struct dhcp_packet *,
size_t,
2525 struct sockaddr_in *,
struct hardware *);
2527 ssize_t
send_packet6(
struct interface_info *,
const unsigned char *,
size_t,
2528 struct sockaddr_in6 *);
2529 #ifdef USE_SOCKET_RECEIVE
2534 unsigned char *,
size_t,
2535 struct sockaddr_in *,
struct hardware *);
2538 #if defined (USE_SOCKET_FALLBACK)
2542 #if defined (USE_SOCKET_SEND)
2549 void if_register6(
struct interface_info *info,
int do_multicast);
2552 unsigned char *buf,
size_t len,
2553 struct sockaddr_in6 *from,
struct in6_addr *to_addr,
2554 unsigned int *if_index);
2559 #if defined (USE_BPF_SEND) || defined (USE_BPF_RECEIVE)
2560 int if_register_bpf (
struct interface_info *);
2567 struct packet *,
struct dhcp_packet *,
size_t,
2569 struct sockaddr_in *,
struct hardware *);
2571 #ifdef USE_BPF_RECEIVE
2576 unsigned char *,
size_t,
2577 struct sockaddr_in *,
struct hardware *);
2579 #if defined (USE_BPF_SEND)
2587 #if defined (USE_LPF_SEND) || defined (USE_LPF_RECEIVE)
2595 struct packet *,
struct dhcp_packet *,
size_t,
2597 struct sockaddr_in *,
struct hardware *);
2599 #ifdef USE_LPF_RECEIVE
2604 unsigned char *,
size_t,
2605 struct sockaddr_in *,
struct hardware *);
2607 #if defined (USE_LPF_SEND)
2615 #if defined (USE_NIT_SEND) || defined (USE_NIT_RECEIVE)
2616 int if_register_nit (
struct interface_info *);
2624 struct packet *,
struct dhcp_packet *,
size_t,
2626 struct sockaddr_in *,
struct hardware *);
2628 #ifdef USE_NIT_RECEIVE
2633 unsigned char *,
size_t,
2634 struct sockaddr_in *,
struct hardware *);
2636 #if defined (USE_NIT_SEND)
2644 #if defined (USE_DLPI_SEND) || defined (USE_DLPI_RECEIVE)
2645 int if_register_dlpi (
struct interface_info *);
2648 #ifdef USE_DLPI_SEND
2655 struct packet *,
struct dhcp_packet *,
size_t,
2657 struct sockaddr_in *,
struct hardware *);
2661 #ifdef USE_DLPI_RECEIVE
2666 unsigned char *,
size_t,
2667 struct sockaddr_in *,
struct hardware *);
2676 ssize_t
send_packet (
struct interface_info *,
struct packet *,
2677 struct dhcp_packet *,
size_t,
struct in_addr,
2678 struct sockaddr_in *,
struct hardware *);
2705 struct dhcp_packet *, unsigned,
2707 struct iaddr, struct hardware *);
2710 int,
const struct iaddr *, isc_boolean_t);
2713 #if defined (TRACING)
2723 int setup_fallback (
struct interface_info **,
const char *,
int);
2739 const char *, va_list);
2744 void add_timeout (
struct timeval *,
void (*) (
void *),
void *,
2751 struct interface_info, dhcp_type_interface)
2770 #if defined (FAILOVER_PROTOCOL)
2773 extern struct failover_option_info
ft_options [];
2791 struct iaddr
ip_addr (struct iaddr, struct iaddr, u_int32_t);
2793 u_int32_t
host_addr (
struct iaddr,
struct iaddr);
2794 int addr_eq (
struct iaddr,
struct iaddr);
2796 int addr_cmp(
const struct iaddr *a1,
const struct iaddr *a2);
2797 int addr_or(
struct iaddr *result,
2798 const struct iaddr *a1,
const struct iaddr *a2);
2800 const struct iaddr *a1,
const struct iaddr *a2);
2803 const struct iaddr *lo,
const struct iaddr *hi);
2805 const char *
piaddr (
struct iaddr);
2807 char *
piaddrmask(
struct iaddr *,
struct iaddr *);
2808 char *
piaddrcidr(
const struct iaddr *,
unsigned int);
2830 void dhcpack (
struct packet *);
2831 void dhcpnak (
struct packet *);
2850 struct option_cache *,
struct iaddr *,
2851 struct option **,
struct option_state **);
2860 struct lease *,
struct client_state *,
2861 struct option_state *,
struct option_state *,
2862 struct binding_scope **,
struct universe *,
void *);
2866 int rewrite,
int sync);
2869 void script_init (
struct client_state *,
const char *,
2872 struct lease *,
struct client_state *,
2873 struct option_state *,
struct option_state *,
2874 struct binding_scope **,
struct universe *,
void *);
2880 const char *,
const char *,
const char *, ...)
2892 struct iaddr *addr,
int offset);
2900 isc_result_t
form_duid(struct data_string *duid, const
char *file,
int line);
2909 void unconfigure6(struct client_state *client, const
char *reason);
2915 #if defined (FAILOVER_PROTOCOL)
2927 #if defined (PARANOIA)
2937 u_int32_t
checksum (
unsigned char *,
unsigned, u_int32_t);
2938 u_int32_t
wrapsum (u_int32_t);
2940 unsigned *,
struct hardware *);
2942 unsigned *, u_int32_t, u_int32_t,
2943 u_int32_t,
unsigned char *,
unsigned);
2945 unsigned,
struct hardware *);
2947 unsigned,
struct sockaddr_in *,
2948 unsigned,
unsigned *,
int);
2952 unsigned *,
struct hardware *);
2955 unsigned,
struct hardware *);
2959 unsigned *,
struct hardware *);
2962 unsigned,
struct hardware *);
2990 void add_route_net (
struct interface_info *,
struct in_addr,
struct in_addr);
2995 void set_netmask (
struct interface_info *,
struct in_addr);
3017 struct interface_info **,
3018 struct client_state **);
3029 void icmp_startup (
int,
void (*) (struct iaddr, u_int8_t *,
int));
3038 #if defined (NSUPDATE)
3039 #define FIND_FORWARD 0
3040 #define FIND_REVERSE 1
3047 void dhcid_tolease (
struct data_string *,
struct data_string *);
3048 isc_result_t
dhcid_fromlease (
struct data_string *,
struct data_string *);
3050 struct data_string *,
unsigned long,
unsigned,
3053 struct iaddr,
struct data_string *);
3075 #ifdef NEED_INET_ATON
3076 int inet_aton (
const char *,
struct in_addr *);
3090 void classify (
struct packet *,
struct class *);
3092 isc_result_t
find_class (
struct class **,
const char *,
3095 int bill_class (
struct lease *,
struct class *);
3099 struct packet *,
struct lease *,
3100 struct client_state *,
3101 struct option_state *,
struct option_state *,
3102 struct binding_scope **,
3103 struct executable_statement *,
3106 struct packet *,
struct lease *,
3107 struct client_state *,
3108 struct option_state *,
3109 struct option_state *,
3110 struct binding_scope **,
3111 struct group *,
struct group *,
3117 struct packet *,
struct lease *,
struct client_state *,
3118 struct option_state *,
struct option_state *,
3119 struct binding_scope **,
3120 struct expression *,
struct executable_statement *);
3122 int (*) (
struct executable_statement *,
3123 void *,
int),
void *,
int);
3142 const char *, va_list);
3147 omapi_object_t *, omapi_object_t *);
3161 const char *, va_list);
3166 omapi_object_t *, omapi_object_t *);
3180 const char *, va_list);
3185 omapi_object_t *, omapi_object_t *);
3201 const char *, va_list);
3206 omapi_object_t *, omapi_object_t *);
3220 #if defined (FAILOVER_PROTOCOL)
3236 const char *, va_list);
3241 omapi_object_t *, omapi_object_t *);
3254 const char *, va_list);
3259 omapi_object_t *, omapi_object_t *);
3272 const char *, va_list);
3277 omapi_object_t *, omapi_object_t *);
3290 const char *, va_list);
3295 omapi_object_t *, omapi_object_t *);
3308 const char *, va_list);
3313 omapi_object_t *, omapi_object_t *);
3348 struct binding_scope *,
3351 struct binding_scope *);
3359 extern struct subnet *
subnets;
3373 isc_result_t
enter_class (
struct class *,
int,
int);
3375 isc_result_t
enter_host (
struct host_decl *,
int,
int);
3376 isc_result_t
delete_host (
struct host_decl *,
int);
3377 void change_host_uid(
struct host_decl *host,
const char *data,
int len);
3379 const unsigned char *,
unsigned,
3382 unsigned,
const char *,
int);
3384 struct option_state *,
const char *,
int);
3386 struct iaddr *,
struct shared_network *);
3388 struct subnet *,
struct pool *,
3391 isc_result_t
dhcp_lease_get (omapi_object_t **,
const char *,
int);
3393 struct iaddr,
const char *,
int);
3394 int find_subnet(
struct subnet **,
struct iaddr,
const char *,
int);
3397 struct shared_network *,
3402 int supersede_lease (
struct lease *,
struct lease *,
int,
int,
int,
int);
3404 int lease_copy (
struct lease **,
struct lease *,
const char *,
int);
3409 void dissociate_lease (
struct lease *);
3413 unsigned,
const char *,
int);
3415 unsigned,
const char *,
int);
3428 #if defined (DEBUG_MEMORY_LEAKAGE) || \
3429 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT)
3430 void free_everything (
void);
3434 #if defined (FAILOVER_PROTOCOL)
3440 const char *,
const char *,
int);
3443 const char *, va_list);
3477 const char *, va_list);
3485 failover_message_t *);
3526 failover_option_t *);
3537 unsigned *,
unsigned, ...);
3539 omapi_object_t *,
int, u_int32_t, ...);
3542 dhcp_failover_state_t *,
3549 failover_message_t *,
3557 failover_message_t *);
3559 failover_message_t *);
3563 failover_message_t *);
3565 failover_message_t *);
3567 failover_message_t *);
3570 void failover_print (
char *,
unsigned *,
unsigned, const
char *);
3575 dhcp_failover_state_t *,
3580 dhcp_failover_state_t *,
3581 binding_state_t, u_int32_t);
3585 dhcp_type_failover_state)
3587 dhcp_type_failover_listener)
3589 dhcp_type_failover_link)
3595 #if defined(LDAP_CONFIGURATION)
3597 #if defined (LDAP_USE_SSL)
3602 isc_result_t ldap_read_config (
void);
3603 int find_haddr_in_ldap (
struct host_decl **,
int,
unsigned,
3604 const unsigned char *,
const char *,
int);
3605 int find_subclass_in_ldap (
struct class *,
struct class **,
3606 struct data_string *);
3614 isc_result_t iasubopt_allocate(struct iasubopt **iasubopt,
3615 const
char *file,
int line);
3617 struct iasubopt *src,
3618 const
char *file,
int line);
3620 const
char *file,
int line);
3622 isc_result_t
ia_make_key(struct data_string *key, u_int32_t iaid,
3623 const
char *duid,
unsigned int duid_len,
3624 const
char *file,
int line);
3626 const
char *duid,
unsigned int duid_len,
3627 const
char *file,
int line);
3629 const
char *file,
int line);
3631 const
char *file,
int line);
3633 const
char *file,
int line);
3635 const
char *file,
int line);
3639 const struct in6_addr *start_addr,
3640 int bits,
int units,
3641 const
char *file,
int line);
3644 const
char *file,
int line);
3646 const
char *file,
int line);
3648 struct iasubopt **addr,
3649 unsigned int *attempts,
3650 const struct data_string *uid,
3651 time_t soft_lifetime_end_time);
3653 struct iasubopt *lease,
3654 time_t valid_lifetime_end_time);
3661 const struct in6_addr *addr);
3665 struct iasubopt *lease,
3668 const struct in6_addr *addr);
3670 struct iasubopt **pref,
3671 unsigned int *attempts,
3672 const struct data_string *uid,
3673 time_t soft_lifetime_end_time);
3675 const struct in6_addr *pref, u_int8_t plen);
3679 const struct in6_addr *addr);
3680 isc_boolean_t
ipv6_in_pool(const struct in6_addr *addr,
3683 const
char *file,
int line);
3686 const
char *file,
int line);
3688 const
char *file,
int line);
3701 #define MAX_ADDRESS_STRING_LEN \
3702 (sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"))
3707 #define FIND_PERCENT(count, percent) \
3708 ((count) > (INT_MAX / 100) ? \
3709 ((count) / 100) * (percent) : ((count) * (percent)) / 100)
3711 #define FIND_POND6_PERCENT(count, percent) \
3712 ((count) > (POND_TRACK_MAX / 100) ? \
3713 ((count) / 100) * (percent) : ((count) * (percent)) / 100)
void parse_subnet6_declaration(struct parse *, struct shared_network *)
isc_result_t dhcp_failover_state_signal(omapi_object_t *, const char *, va_list)
void convert_subnet_decl(struct parse *, jrefproto)
void do_packet6(struct interface_info *, const char *, int, int, const struct iaddr *, isc_boolean_t)
void tkey_free(ns_tsig_key **)
struct lease_state * next
int supersede_lease(struct lease *, struct lease *, int, int, int, int)
isc_result_t end_parse(struct parse **)
isc_result_t dhcp_group_create(omapi_object_t **, omapi_object_t *)
void if_register_send(struct interface_info *)
void hash_dump(struct hash_table *)
struct timeval start_time
void initialize_server_option_spaces(void)
struct in_addr limited_broadcast
isc_result_t dhcp_failover_send_poolreq(dhcp_failover_state_t *)
isc_result_t renew_lease6(struct ipv6_pool *pool, struct iasubopt *lease)
Renew a lease in the pool.
void(* dhcpv6_packet_handler)(struct interface_info *, const char *, int, int, const struct iaddr *, isc_boolean_t)
int find_grouped_subnet(struct subnet **, struct shared_network *, struct iaddr, const char *, int)
int mockup_lease(struct lease **, struct packet *, struct shared_network *, struct host_decl *)
int expression_allocate(struct expression **, const char *, int)
int group_dereference(struct group **, const char *, int)
struct client_lease * alias
int parse_ip6_addr_expr(struct expression **, struct parse *)
struct lease * new_leases(unsigned, const char *, int)
isc_result_t dhcp_subnet_create(omapi_object_t **, omapi_object_t *)
isc_result_t dhcp_host_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
int find_lease(struct lease **, struct packet *, struct shared_network *, int *, int *, struct lease *, const char *, int)
void mark_hosts_unavailable(void)
struct group * root_group
void(* bootp_packet_handler)(struct interface_info *, struct dhcp_packet *, unsigned, unsigned int, struct iaddr, struct hardware *)
isc_result_t dhcp_failover_state_stuff(omapi_object_t *, omapi_object_t *, omapi_object_t *)
lease_id_hash_t * lease_uid_hash
void make_client_options(struct client_state *, struct client_lease *, u_int8_t *, struct option_cache *, struct iaddr *, struct option **, struct option_state **)
void parse_server_duid_conf(struct parse *cfile)
void start_selecting6(struct client_state *client)
int quiet_interface_discovery
isc_result_t dhcp_host_signal_handler(omapi_object_t *, const char *, va_list)
int data_string_sprintfa(struct data_string *ds, const char *fmt,...)
isc_result_t dhcp_failover_send_connectack(omapi_object_t *, dhcp_failover_state_t *, int, const char *)
isc_result_t dhcp_failover_link_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
void assemble_ethernet_header(struct interface_info *, unsigned char *, unsigned *, struct hardware *)
void parse_trace_setup(void)
struct agent_options * next
u_int32_t checksum(unsigned char *, unsigned, u_int32_t)
void parse_host_declaration(struct parse *, struct group *)
void trace_conf_input(trace_type_t *, unsigned, char *)
isc_result_t interface_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
isc_result_t find_tsig_key(ns_tsig_key **, const char *, struct dns_zone *)
isc_result_t ddns_remove_fwd(struct data_string *, struct iaddr, struct data_string *)
int write_failover_state(dhcp_failover_state_t *)
int dhcp_failover_state_match_by_name(dhcp_failover_state_t *, failover_option_t *)
isc_result_t dhcp_failover_listener_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
unsigned char dhcpv6_transaction_id[3]
void dhcprequest(struct packet *, int, struct lease *)
int parse_executable_statement(struct executable_statement **, struct parse *, int *, enum expression_context)
failover_option_t failover_option_t * dhcp_failover_make_option(unsigned, char *, unsigned *, unsigned,...)
void client_option_envadd(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *)
unsigned char zone_name[DHCP_MAXDNS_WIRE]
struct dns_question * question
int op_precedence(enum expr_op, enum expr_op)
isc_result_t dhcp_set_control_state(control_object_state_t oldstate, control_object_state_t newstate)
struct enumeration * find_enumeration(const char *, int)
int struct expression * parse_domain_list(struct parse *cfile, int)
char * parse_host_name(struct parse *)
struct eventqueue * rw_queue_empty
isc_result_t dhcp_failover_send_connect(omapi_object_t *)
int dhcp_max_agent_option_packet_length
omapi_object_type_t * dhcp_type_shared_network
void read_resolv_conf(TIME)
void assemble_udp_ip_header(struct interface_info *, unsigned char *, unsigned *, u_int32_t, u_int32_t, u_int32_t, unsigned char *, unsigned)
int icmp_echorequest(struct iaddr *)
struct group * on_receipt
void dhcpleasequery(struct packet *, int)
unsigned char dhcpv6_transaction_id[3]
int parse_non_binary(struct expression **, struct parse *, int *, enum expression_context)
isc_result_t add_lease6(struct ipv6_pool *pool, struct iasubopt *lease, time_t valid_lifetime_end_time)
isc_result_t ia_make_key(struct data_string *key, u_int32_t iaid, const char *duid, unsigned int duid_len, const char *file, int line)
const char * hardware_types[256]
isc_result_t dhcp_subnet_signal_handler(omapi_object_t *, const char *, va_list)
int find_host_for_network(struct subnet **, struct host_decl **, struct iaddr *, struct shared_network *)
struct shared_network * shared_network
int parse_on_statement(struct executable_statement **, struct parse *, int *)
omapi_object_type_t * dhcp_type_failover_link
omapi_object_type_t * dhcp_type_pool
int evaluate_numeric_expression(unsigned long *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *)
struct shared_network * shared_networks
struct dhcp_ddns_cb * ddns_cb
int parse_option_code_definition(struct parse *, struct option *)
isc_result_t dhcp_group_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
isc_result_t dhcp_subnet_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
void parse_fixed_prefix6(struct parse *cfile, struct host_decl *host_decl)
struct name_server * name_servers
void discover_interfaces(int)
struct permit * new_permit(const char *, int)
int got_requested_address
unsigned char dhcpv6_transaction_id[3]
struct binding_scope * global_scope
void expire_all_pools(void)
isc_boolean_t server_duid_isset(void)
struct in_addr local_address
struct executable_statement * default_classification_rules
void if_reinitialize_send(struct interface_info *)
int get_dhcid(dhcp_ddns_cb_t *, int, const u_int8_t *, unsigned)
void parse_interface_declaration(struct parse *, struct client_config *, char *)
isc_result_t dhcp_host_destroy(omapi_object_t *, const char *, int)
int parse_ip_addr(struct parse *, struct iaddr *)
struct group_object * n_dynamic
struct isc_heap isc_heap_t
void icmp_startup(int, void(*)(struct iaddr, u_int8_t *, int))
enum dhcp_token peek_raw_token(const char **rval, unsigned *rlen, struct parse *cfile)
void start_release6(struct client_state *client)
int get_option_int(int *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct option_state *, struct binding_scope **, unsigned, const char *, int)
void dhcpv6_leasequery(struct data_string *, struct packet *)
struct iaddr next_srv_addr
isc_result_t ia_dereference(struct ia_xx **ia, const char *file, int line)
struct lease_state * state
struct class * superclass
void start_info_request6(struct client_state *client)
void parse_pool6_statement(struct parse *, struct group *, int)
void dhcpack(struct packet *)
const char * path_dhclient_duid
int evaluate_option_cache(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct option_cache *, const char *, int)
int permit_list_match(struct permit *, struct permit *)
struct universe server_universe
void convert_numeric_aggregate(struct parse *, jrefproto, int, int, int, int)
isc_result_t interface_signal_handler(omapi_object_t *, const char *, va_list)
isc_result_t supersede_group(struct group_object *, int)
int write_billing_class(struct class *)
void dhcp_failover_pool_check(struct pool *)
int binding_scope_allocate(struct binding_scope **, const char *, int)
void script_init(struct client_state *, const char *, struct string_list *)
isc_result_t unlink_class(struct class **class)
ssize_t decode_udp_ip_header(struct interface_info *, unsigned char *, unsigned, struct sockaddr_in *, unsigned, unsigned *, int)
isc_result_t dhcp_subclass_signal_handler(omapi_object_t *, const char *, va_list)
universe_hash_t * universe_hash
void interface_snorf(struct interface_info *, int)
int pretty_escape(char **, char *, const unsigned char **, const unsigned char *)
control_object_state_t state
ssize_t decode_tr_header(struct interface_info *, unsigned char *, unsigned, struct hardware *)
int write_client_lease(struct client_state *, struct client_lease *, int, int)
void bootp(struct packet *)
int write_lease(struct lease *)
void do_packet(struct interface_info *, struct dhcp_packet *, unsigned, unsigned int, struct iaddr, struct hardware *)
trace_type_t * interface_trace
const char * pretty_print_option(struct option *, const unsigned char *, unsigned, int, int)
void classify(struct packet *, struct class *)
void client_dns_update_timeout(void *cp)
struct ipv6_pond * ipv6_pond
void set_option(struct universe *, struct option_state *, struct option_cache *, enum statement_op)
isc_boolean_t lease6_usable(struct iasubopt *lease)
Check if address is available to a lease.
isc_result_t ddns_modify_ptr(dhcp_ddns_cb_t *ddns_cb, const char *file, int line)
isc_result_t dhcp_failover_register(omapi_object_t *)
int find_hosts_by_option(struct host_decl **, struct packet *, struct option_state *, const char *, int)
struct client_config top_level_config
isc_result_t dhcp_failover_link_initiate(omapi_object_t *)
struct timeout * timeouts
isc_result_t dhcp_lease_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
isc_result_t got_one(omapi_object_t *)
int option_state_reference(struct option_state **, struct option_state *, const char *, int)
struct client_state * client
int write_host(struct host_decl *)
int bind_ds_value(struct binding_scope **, const char *, struct data_string *)
int check_collection(struct packet *, struct lease *, struct collection *)
omapi_object_type_t * dhcp_type_interface
isc_result_t dhcp_class_create(omapi_object_t **, omapi_object_t *)
struct data_string parameter_request_list
int parse_boolean(struct parse *)
isc_result_t dhcp_interface_signal_handler(omapi_object_t *, const char *, va_list ap)
isc_result_t delete_group(struct group_object *, int)
struct universe nwip_universe
isc_result_t dhcp_host_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
isc_sockaddr_t zone_addrs[DHCP_MAXNS]
u_int32_t wrapsum(u_int32_t)
int parse_ip6_addr(struct parse *, struct iaddr *)
struct group * on_transmission
int parse_option_token(struct expression **, struct parse *, const char **, struct expression *, int, int)
int interface_or_dummy(struct interface_info **, const char *)
int packet_dereference(struct packet **, const char *, int)
struct dhcp_ddns_cb * ddns_cb
host_hash_t * host_uid_hash
struct hardware_link * next
struct iaddr requested_address
void dhcpinform(struct packet *, int)
struct lease * next_pending
omapi_object_type_t * dhcp_type_lease
isc_result_t ddns_update_fwd(struct data_string *, struct iaddr, struct data_string *, unsigned long, unsigned, unsigned)
struct client_state * client
int option_space_encapsulate(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct data_string *)
void assemble_tr_header(struct interface_info *, unsigned char *, unsigned *, struct hardware *)
int can_receive_unicast_unconfigured(struct interface_info *)
int icmp_readsocket(omapi_object_t *)
isc_result_t dhcp_failover_state_create(omapi_object_t **, omapi_object_t *)
isc_result_t dhcp_shared_network_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
void db_startup(int, uid_t, gid_t)
char * piaddrmask(struct iaddr *, struct iaddr *)
void print_lease(struct lease *)
void eval_network_statements(struct option_state **options, struct packet *packet, struct group *network_group)
Builds option set from statements at the global and network scope.
int is_numeric_expression(struct expression *)
int is_data_expression(struct expression *)
struct executable_statement * on_release
void lease_ping_timeout(void *)
struct client_state * next
void lease_pinged(struct iaddr, u_int8_t *, int)
isc_result_t dhcp_failover_listener_stuff(omapi_object_t *, omapi_object_t *, omapi_object_t *)
isc_result_t dhcp_host_create(omapi_object_t **, omapi_object_t *)
void uid_hash_add(struct lease *)
struct in_addr * addresses
struct name_server * next_server
struct binding * find_binding(struct binding_scope *, const char *)
char * print_dotted_quads(unsigned, const u_int8_t *)
struct binding * create_binding(struct binding_scope **, const char *)
int dhclient_interface_shutdown_hook(struct interface_info *)
void free_client_lease(struct client_lease *, const char *, int)
struct universe dhcp_universe
const char * path_dhclient_db
struct interface_info * ip
struct option_state * options
dhcp_ddns_cb_t * ddns_cb_alloc(const char *file, int line)
void read_client_leases(void)
void dhcp_failover_keepalive(void *)
struct option_cache * next
struct protocol * new_protocol(const char *, int)
int unbill_class(struct lease *, struct class *)
isc_result_t lease_file_subparse(struct parse *)
struct option_cache * next_hashed_option(struct universe *, struct option_state *, struct option_cache *)
struct shared_network * shared_network
isc_result_t dhcp_failover_send_update_request(dhcp_failover_state_t *)
isc_result_t ipv6_pond_reference(struct ipv6_pond **pond, struct ipv6_pond *src, const char *file, int line)
reference an IPv6 pond structure.
int parse_zone(struct dns_zone *, struct parse *)
void expression_dereference(struct expression **, const char *, int)
omapi_object_type_t * dhcp_type_failover_state
void dhcpdecline(struct packet *, int)
void cancel_timeout(void(*)(void *), void *)
struct in6_addr start_addr
isc_result_t dhcp_interface_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
int parse_auth_key(struct data_string *, struct parse *)
void free_binding_value(struct binding_value *, const char *, int)
isc_result_t dhcp_class_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
void hw_hash_delete(struct lease *)
int append_option(struct data_string *dst, struct universe *universe, struct option *option, struct data_string *src)
struct option_cache * fixed_addr
struct class * billing_class
const char * dhcp_failover_option_name(unsigned)
void parse_address_range(struct parse *, struct group *, int, struct pool *, struct lease **)
void client_location_changed(void)
void print_dns_status(int, struct dhcp_ddns_cb *, isc_result_t)
char * print_base64(const unsigned char *, unsigned, const char *, int)
isc_result_t dhcp_control_destroy(omapi_object_t *, const char *, int)
struct data_string hash_string
struct class unknown_class
int parse_lease_declaration(struct lease **, struct parse *)
const char * path_dhcpd_db
void if_reinitialize_fallback(struct interface_info *)
isc_result_t dhcp_shared_network_signal_handler(omapi_object_t *, const char *, va_list)
struct collection * collections
isc_result_t dhcp_host_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
isc_result_t find_class(struct class **, const char *, const char *, int)
lease_id_hash_t * lease_hw_addr_hash
int find_bound_string(struct data_string *, struct binding_scope *, const char *)
void cancel_all_timeouts(void)
void free_permit(struct permit *, const char *, int)
int dhcp_option_ev_name(char *, size_t, struct option *)
struct binding_scope * scope
dhcp_failover_state_t * failover_peer
void(* icmp_handler)(struct iaddr, u_int8_t *, int)
isc_result_t dhcp_interface_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
isc_result_t dhcp_class_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
struct ipv6_pond * ipv6_pond
failover_option_t * dhcp_failover_option_printf(unsigned, char *, unsigned *, unsigned, const char *,...) __attribute__((__format__(__printf__
void copy_server_duid(struct data_string *ds, const char *file, int line)
void dump_packet(struct packet *)
const char * print_time(TIME)
void(* tvunref_t)(void *, const char *, int)
struct option_cache * secondary6
void fqdn6_option_space_foreach(struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, struct universe *u, void *stuff, void(*func)(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *))
int executable_statement_reference(struct executable_statement **, struct executable_statement *, const char *, int)
struct protocol * protocols
struct data_string auth_key_id
void relinquish_lease_hunks(void)
int allocate_lease(struct lease **, struct packet *, struct pool *, int *)
isc_result_t dhcp_control_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
struct option_cache * lookup_linked_option(struct universe *, struct option_state *, unsigned)
dhcp_failover_state_t * failover_peer
int parse_fixed_addr_param(struct option_cache **, struct parse *, enum dhcp_token)
void release_lease(struct lease *, struct packet *)
int dhclient_interface_discovery_hook(struct interface_info *)
struct option_cache * lookup_option(struct universe *, struct option_state *, unsigned)
OMAPI_OBJECT_ALLOC_DECL(shared_network, struct shared_network, dhcp_type_shared_network) OMAPI_OBJECT_ALLOC_DECL(dhcp_control
isc_result_t dhcp_shared_network_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
int find_hosts_by_haddr(struct host_decl **, int, const unsigned char *, unsigned, const char *, int)
int parse_lbrace(struct parse *)
void state_reboot(void *)
void make_decline(struct client_state *, struct client_lease *)
struct dhc6_ia * bindings
int(* dhcp_interface_discovery_hook)(struct interface_info *)
void if_deregister_receive(struct interface_info *)
void convert_host_name(struct parse *, jrefproto)
char * piaddrcidr(const struct iaddr *, unsigned int)
int option_cache_reference(struct option_cache **, struct option_cache *, const char *, int)
struct data_string fwd_name
int evaluate_boolean_expression(int *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *)
int packet_reference(struct packet **, struct packet *, const char *, int)
void state_selecting(void *)
void dhcp_failover_recover_done(void *)
isc_result_t write_client6_lease(struct client_state *client, struct dhc6_lease *lease, int rewrite, int sync)
isc_result_t restore_parse_state(struct parse *cfile)
isc_result_t(* dhcp_interface_startup_hook)(struct interface_info *)
struct expression * expression
struct data_string client_identifier
struct permit * prohibit_list
int is_compound_expression(struct expression *)
void free_expression(struct expression *, const char *, int)
void parse_client_lease_statement(struct parse *, int)
int addr_eq(struct iaddr, struct iaddr)
struct parse * saved_state
void save_hashed_option(struct universe *, struct option_state *, struct option_cache *, isc_boolean_t appendp)
void forget_zone(struct dns_zone **)
void script_write_params(struct client_state *, const char *, struct client_lease *)
failover_option_t null_failover_option
void reinitialize_interfaces(void)
int evaluate_data_expression(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *, const char *, int)
isc_result_t decline_leases(struct ia_xx *ia)
void get_hw_addr(struct interface_info *info)
void(* tvref_t)(void *, void *, const char *, int)
const char * binding_state_print(enum failover_state state)
void mark_interfaces_unavailable(void)
struct option_state * options
void parse_client_statement(struct parse *, struct interface_info *, struct client_config *)
isc_result_t enter_class(struct class *, int, int)
int hashed_option_state_dereference(struct universe *, struct option_state *, const char *, int)
void ddns_cb_free(dhcp_ddns_cb_t *ddns_cb, const char *file, int line)
isc_boolean_t ia_equal(const struct ia_xx *a, const struct ia_xx *b)
int db_printable_len(const unsigned char *, unsigned)
unsigned char dhcpv6_hop_count
void parse_failover_state_declaration(struct parse *, dhcp_failover_state_t *)
isc_result_t dhcp_failover_send_bind_ack(dhcp_failover_state_t *, failover_message_t *, int, const char *)
struct client_lease * new_client_lease(const char *, int)
struct name_server * next
void maybe_setup_fallback(void)
struct dhc6_lease * held_leases
unsigned char dhcpv6_msg_type
int locate_network(struct packet *)
void free_name_server(struct name_server *, const char *, int)
isc_boolean_t lease6_exists(const struct ipv6_pool *pool, const struct in6_addr *addr)
struct interface_info * fallback_interface
int binding_value_dereference(struct binding_value **, const char *, int)
void if_deregister_send(struct interface_info *)
isc_result_t dhcp_failover_send_poolresp(dhcp_failover_state_t *, int)
void option_space_foreach(struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *, void(*)(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *))
isc_boolean_t is_cidr_mask_valid(const struct iaddr *addr, int bits)
int group_allocate(struct group **, const char *, int)
const char * dhcp_flink_state_names[]
isc_result_t dhcp_failover_link_destroy(omapi_object_t *, const char *, int)
int save_option_buffer(struct universe *, struct option_state *, struct buffer *, unsigned char *, unsigned, unsigned, int)
int parse_option_buffer(struct option_state *, const unsigned char *, unsigned, struct universe *)
void convert_subnet_statement(struct parse *, jrefproto)
int binding_scope_dereference(struct binding_scope **, const char *, int)
int parse_semi(struct parse *)
void(* v6_handler)(struct packet *, struct client_state *)
void indent_spaces(FILE *, int)
int option_state_dereference(struct option_state **, const char *, int)
int enter_dns_host(struct dns_host_entry **, const char *)
void dhcprelease(struct packet *, int)
void send_discover(void *)
void dhcp(struct packet *)
isc_result_t icmp_echoreply(omapi_object_t *)
void parse_ia_ta_declaration(struct parse *)
int parse_if_statement(struct executable_statement **, struct parse *, int *)
struct executable_statement * statements
void convert_num(struct parse *, unsigned char *, const char *, int, unsigned)
struct option_state * options
void convert_ip_addr_or_hostname(struct parse *, jrefproto, int)
isc_result_t binding_scope_stuff_values(omapi_object_t *, struct binding_scope *)
void dhcid_tolease(struct data_string *, struct data_string *)
void get_server_source_address(struct in_addr *from, struct option_state *options, struct option_state *out_options, struct packet *packet)
void flush_ackqueue(void *)
int executable_statement_allocate(struct executable_statement **, const char *, int)
int dns_zone_allocate(struct dns_zone **, const char *, int)
int buffer_dereference(struct buffer **, const char *, int)
const char * dhcp_failover_message_name(unsigned)
void interface_trace_setup(void)
isc_result_t dhcp_failover_state_transition(dhcp_failover_state_t *, const char *)
struct data_string rev_name
void convert_statement(struct parse *)
void parse_string_list(struct parse *, struct string_list **, int)
int fqdn6_option_space_encapsulate(struct data_string *result, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, struct universe *universe)
isc_result_t dhcp_failover_state_destroy(omapi_object_t *, const char *, int)
isc_result_t decline_lease6(struct ipv6_pool *pool, struct iasubopt *lease)
int parse_executable_statements(struct executable_statement **, struct parse *, int *, enum expression_context)
enum dhcp_token next_raw_token(const char **rval, unsigned *rlen, struct parse *cfile)
isc_result_t interface_destroy(omapi_object_t *, const char *, int)
isc_result_t dhcp_group_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
struct iaddr subnet_number(struct iaddr, struct iaddr)
isc_result_t dhcp_shared_network_create(omapi_object_t **, omapi_object_t *)
int binding_value_reference(struct binding_value **, struct binding_value *, const char *, int)
int fundef_allocate(struct fundef **, const char *, int)
void free_lease_state(struct lease_state *, const char *, int)
unsigned cons_agent_information_options(struct option_state *, struct dhcp_packet *, unsigned, unsigned)
isc_result_t dhcp_subnet_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
int make_substring(struct expression **, struct expression *, struct expression *, struct expression *)
int parse_ip6_prefix(struct parse *, struct iaddr *, u_int8_t *)
group_hash_t * group_name_hash
struct option_state * options
struct hardware hardware_addr
int fundef_reference(struct fundef **, struct fundef *, const char *, int)
int parse_option_data(struct expression **expr, struct parse *cfile, int lookups, struct option *option)
void postdb_startup(void)
int setup_fallback(struct interface_info **, const char *, int)
int evaluate_expression(struct binding_value **, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *, const char *, int)
void bind_lease(struct client_state *)
isc_result_t mark_lease_unavailble(struct ipv6_pool *pool, const struct in6_addr *addr)
isc_result_t dhcp_interface_destroy(omapi_object_t *, const char *, int)
isc_result_t dhcp_subclass_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
isc_result_t ipv6_pool_allocate(struct ipv6_pool **pool, u_int16_t type, const struct in6_addr *start_addr, int bits, int units, const char *file, int line)
Create a new IPv6 lease pool structure.
int linked_option_get(struct data_string *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct option_state *, struct binding_scope **, unsigned)
omapi_object_type_t * dhcp_type_failover_listener
int(* dhcp_interface_shutdown_hook)(struct interface_info *)
int get_option(struct data_string *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct option_state *, struct binding_scope **, unsigned, const char *, int)
void relinquish_timeouts(void)
failover_option_t skip_failover_option
void change_host_uid(struct host_decl *host, const char *data, int len)
isc_result_t readconf(void)
int dhcp_option_default_priority_list_count
void if_deregister6(struct interface_info *info)
struct string_list * medium
isc_result_t release_lease6(struct ipv6_pool *pool, struct iasubopt *lease)
int subnet_inner_than(const struct subnet *, const struct subnet *, int)
void skip_to_semi(struct parse *)
void schedule_lease_timeout(struct ipv6_pool *pool)
struct enumeration_value * find_enumeration_value(const char *, int, unsigned *, const char *)
isc_result_t dhcp_failover_listen(omapi_object_t *)
isc_result_t dhcp_lease_signal_handler(omapi_object_t *, const char *, va_list)
struct universe ** universes
isc_result_t dhcp_host_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
isc_result_t dhcp_group_signal_handler(omapi_object_t *, const char *, va_list)
void suboption_foreach(struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *, void(*)(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *), struct option_cache *, const char *)
void destroy_client_lease(struct client_lease *)
char * print_hex(unsigned, const u_int8_t *, unsigned, unsigned)
time_t hard_lifetime_end_time
struct universe fqdn_universe
void save_option(struct universe *, struct option_state *, struct option_cache *)
void make_release(struct client_state *, struct client_lease *)
int store_options(int *ocount, unsigned char *buffer, unsigned buflen, unsigned index, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, unsigned *priority_list, int priority_len, unsigned first_cutoff, int second_cutoff, int terminate, const char *vuname)
isc_result_t dhcp_failover_state_remove(omapi_object_t *, omapi_object_t *)
isc_result_t dhcp_lease_remove(omapi_object_t *, omapi_object_t *)
isc_result_t dhcp_failover_set_state(dhcp_failover_state_t *, enum failover_state)
struct permit * prohibit_list
void if_register_linklocal6(struct interface_info *info)
void build_server_oro(struct data_string *, struct option_state *, const char *, int)
isc_result_t dhcp_failover_process_bind_ack(dhcp_failover_state_t *, failover_message_t *)
int parse_option_list(struct parse *, struct option ***)
lease_id_hash_t extern struct option * vendor_cfg_option
int parse_option_statement(struct executable_statement **, struct parse *, int, struct option *, enum statement_op)
isc_result_t dhcp_control_create(omapi_object_t **, omapi_object_t *)
struct option_state * options
void static_lease_dereference(struct lease *, const char *, int)
void parse_subnet_declaration(struct parse *, struct shared_network *)
void free_domain_search_list(struct domain_search_list *, const char *, int)
void dhc6_lease_destroy(struct dhc6_lease **src, const char *file, int line)
host_hash_t * host_name_hash
void ia_remove_all_lease(struct ia_xx *ia, const char *file, int line)
void hashed_option_space_foreach(struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *, void(*)(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *))
struct option ** requested_options
void mark_phosts_unavailable(void)
isc_result_t dhcp_failover_state_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
void convert_class_decl(struct parse *, jrefproto)
void set_netmask(struct interface_info *, struct in_addr)
int parse_cshl(struct data_string *, struct parse *)
void write_billing_classes(void)
char * quotify_string(const char *, const char *, int)
struct iaddr interface_address
isc_result_t new_parse(struct parse **, int, char *, unsigned, const char *, int)
ssize_t send_fallback6(struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in6_addr *, struct sockaddr_in6 *, struct hardware *)
isc_result_t delete_host(struct host_decl *, int)
void send_request(void *)
void enter_shared_network(struct shared_network *)
void dhcp_failover_pool_rebalance(void *)
isc_result_t dhcp_failover_generate_update_queue(dhcp_failover_state_t *, int)
void state_requesting(void *)
isc_result_t dhcp_shared_network_remove(omapi_object_t *, omapi_object_t *)
int dns_zone_dereference(struct dns_zone **, const char *, int)
isc_result_t cleanup_lease6(ia_hash_t *ia_table, struct ipv6_pool *pool, struct iasubopt *lease, struct ia_xx *ia)
Cleans up leases when reading from a lease file.
int execute_statements(struct binding_value **result, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct executable_statement *, struct on_star *)
void abandon_lease(struct lease *, const char *)
int addr_and(struct iaddr *result, const struct iaddr *a1, const struct iaddr *a2)
struct dns_answer * answer
binding_state_t binding_state
isc_timer_t * isc_timeout
int parse_key(struct parse *)
int parse_string(struct parse *, char **, unsigned *)
dns_rdataclass_t dhcid_class
int option_reference(struct option **dest, struct option *src, const char *file, int line)
struct ipv6_pool * ipv6_pool
int parse_options(struct packet *)
isc_result_t dhcp_failover_put_message(dhcp_failover_link_t *, omapi_object_t *, int, u_int32_t,...)
int parse_allow_deny(struct option_cache **, struct parse *, int)
int option_cache_allocate(struct option_cache **, const char *, int)
int packet6_len_okay(const char *, int)
isc_result_t dhcp_failover_state_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
void dhcp_failover_rescind_updates(dhcp_failover_state_t *)
int dns_host_entry_dereference(struct dns_host_entry **, const char *, int)
struct class * classes[PACKET_MAX_CLASSES]
int addr_cmp(const struct iaddr *a1, const struct iaddr *a2)
char * default_option_format
isc_result_t dhcp_control_remove(omapi_object_t *, omapi_object_t *)
void script_write_requested(struct client_state *)
struct data_string server_id
struct interface_info * interface
void dhcp_failover_listener_restart(void *)
isc_result_t dhcp_failover_process_update_request_all(dhcp_failover_state_t *, failover_message_t *)
void postconf_initialization(int)
void linked_option_space_foreach(struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *, void(*)(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *))
isc_result_t dhcp_failover_send_disconnect(omapi_object_t *, int, const char *)
omapi_object_type_t * dhcp_type_control
ssize_t send_packet6(struct interface_info *, const unsigned char *, size_t, struct sockaddr_in6 *)
isc_result_t dhcp_failover_peer_state_changed(dhcp_failover_state_t *, failover_message_t *)
struct dhcp_ddns_cb * next_op
void delayed_ack_enqueue(struct lease *)
int find_matching_case(struct executable_statement **, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *, struct executable_statement *)
isc_result_t dhcp_failover_process_update_request(dhcp_failover_state_t *, failover_message_t *)
void save_linked_option(struct universe *, struct option_state *, struct option_cache *, isc_boolean_t appendp)
char * print_dec_1(unsigned long)
void convert_servername_decl(struct parse *, jrefproto)
trace_type_t * inpacket_trace
void enter_lease(struct lease *)
isc_result_t renew_leases(struct ia_xx *ia)
int parse_numeric_expression(struct expression **, struct parse *, int *)
int write_server_duid(void)
void assemble_hw_header(struct interface_info *, unsigned char *, unsigned *, struct hardware *)
void commit_leases_timeout(void *)
struct option_cache * lookup_fqdn6_option(struct universe *universe, struct option_state *options, unsigned code)
int make_const_int(struct expression **, unsigned long)
isc_result_t dhcp_class_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
int dns_host_entry_allocate(struct dns_host_entry **, const char *, const char *, int)
void unregister_eventhandler(struct eventqueue **, void(*handler)(void *))
int find_lease_by_hw_addr(struct lease **, const unsigned char *, unsigned, const char *, int)
int if_register_lpf(struct interface_info *)
omapi_object_type_t * dhcp_type_subclass
isc_result_t dhcp_subclass_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
void do_release(struct client_state *)
int linked_option_space_encapsulate(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *)
host_hash_t * host_hw_addr_hash
int dhcp_failover_queue_ack(dhcp_failover_state_t *, failover_message_t *msg)
struct data_string iaid_duid
int parse_switch_statement(struct executable_statement **, struct parse *, int *)
isc_result_t interface_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
void delete_hashed_option(struct universe *, struct option_state *, int)
void parse_pool_statement(struct parse *, struct group *, int)
Parse a pool statement.
int clone_group(struct group **, struct group *, const char *, int)
struct iaddr ip_addr(struct iaddr, struct iaddr, u_int32_t)
const char * path_dhcpd_pid
ssize_t send_packet(struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in_addr, struct sockaddr_in *, struct hardware *)
isc_result_t dhcp_failover_link_signal(omapi_object_t *, const char *, va_list)
void convert_host_decl(struct parse *, jrefproto)
struct dhc6_lease * advertised_leases
const char * dhcp_failover_state_name_print(enum failover_state)
int parse_ip_addr_with_subnet(struct parse *, struct iaddrmatch *)
int evaluate_boolean_option_cache(int *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct option_cache *, const char *, int)
omapi_object_type_t * dhcp_type_host
struct expression * submatch
isc_result_t dhcp_subclass_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
isc_result_t dhcp_subnet_destroy(omapi_object_t *, const char *, int)
int(* group_write_hook)(struct group_object *)
isc_result_t got_one_v6(omapi_object_t *)
binding_state_t normal_binding_state_transition_check(struct lease *, dhcp_failover_state_t *, binding_state_t, u_int32_t)
void start_confirm6(struct client_state *client)
void set_server_duid(struct data_string *new_duid)
isc_result_t dhcid_fromlease(struct data_string *, struct data_string *)
int executable_statement_dereference(struct executable_statement **, const char *, int)
isc_result_t add_ipv6_pool(struct ipv6_pool *pool)
struct dhcp_ddns_cb dhcp_ddns_cb_t
int addr_match(struct iaddr *, struct iaddrmatch *)
struct client_lease * next
void ddns_cancel(dhcp_ddns_cb_t *ddns_cb, const char *file, int line)
isc_result_t create_lease6(struct ipv6_pool *pool, struct iasubopt **addr, unsigned int *attempts, const struct data_string *uid, time_t soft_lifetime_end_time)
int parse_boolean_expression(struct expression **, struct parse *, int *)
isc_result_t dhcp_lease_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
void parse_reject_statement(struct parse *, struct client_config *)
struct host_decl * n_ipaddr
isc_result_t dhcp_failover_link_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
struct option_state * sent_options
int dns_zone_reference(struct dns_zone **, struct dns_zone *, const char *, int)
isc_result_t dhcp_pool_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
TIME parse_date(struct parse *)
enum dhcp_token next_token(const char **, unsigned *, struct parse *)
struct hardware hw_address
struct data_string host_id
void uid_hash_delete(struct lease *)
dhcp_failover_state_t * failover_states
isc_result_t dhcp_subclass_remove(omapi_object_t *, omapi_object_t *)
int free_bindings(struct binding_scope *, const char *, int)
int make_let(struct executable_statement **, const char *)
int load_balance_mine(struct packet *, dhcp_failover_state_t *)
unsigned char option_mask[16]
void parse_shared_net_declaration(struct parse *, struct group *)
void convert_class_statement(struct parse *, jrefproto, int)
void dhcp_failover_link_startup_timeout(void *)
isc_result_t dhcp_control_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
void convert_hardware_decl(struct parse *, jrefproto)
struct name_server * first_name_server(void)
struct client_state * client
isc_result_t dhcp_interface_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
isc_result_t dhcp_pool_remove(omapi_object_t *, omapi_object_t *)
int permitted(struct packet *, struct permit *)
struct option_state * options
void free_universe(struct universe *, const char *, int)
void rewrite_client_leases(void)
void trigger_event(struct eventqueue **)
int nwip_option_space_encapsulate(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *)
struct dhc6_lease * selected_lease
isc_result_t dhcp_shared_network_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
void set_server_duid_type(int type)
dhcp_type_control int option_chain_head_allocate(struct option_chain_head **, const char *, int)
void dhcp_db_objects_setup(void)
isc_sockaddrlist_t zone_server_list
int option_chain_head_reference(struct option_chain_head **, struct option_chain_head *, const char *, int)
void repudiate_zone(struct dns_zone **)
isc_result_t dhcp_subclass_destroy(omapi_object_t *, const char *, int)
struct ipv6_pool ** ipv6_pools
char * print_hw_addr(const int, const int, const unsigned char *)
struct option_tag * first
void dhcpnak(struct packet *)
isc_result_t write_named_billing_class(const void *, unsigned, void *)
isc_result_t interface_initialize(omapi_object_t *, const char *, int)
struct universe * new_universe(const char *, int)
isc_result_t interface_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
int parse_destination_descriptor(struct parse *, struct iaddr *)
int make_host_lookup(struct expression **, const char *)
void new_address_range(struct parse *, struct iaddr, struct iaddr, struct subnet *, struct pool *, struct lease **)
isc_result_t find_failover_peer(dhcp_failover_state_t **, const char *, const char *, int)
void add_route_net(struct interface_info *, struct in_addr, struct in_addr)
unsigned short cannot_reuse
int option_state_allocate(struct option_state **, const char *, int)
int token_print_indent(FILE *, int, int, const char *, const char *, const char *)
const char * path_dhclient_conf
struct shared_network * shared_network
u_int16_t validate_port(char *)
void parse_lease_time(struct parse *, TIME *)
isc_result_t ipv6_pool_dereference(struct ipv6_pool **pool, const char *file, int line)
de-reference an IPv6 pool structure.
isc_result_t find_ipv6_pool(struct ipv6_pool **pool, u_int16_t type, const struct in6_addr *addr)
int find_hosts_by_uid(struct host_decl **, const unsigned char *, unsigned, const char *, int)
struct interface_info * interfaces
int parse_option_decl(struct option_cache **, struct parse *)
void print_expression(const char *, struct expression *)
isc_result_t dhcp_control_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
int fqdn_universe_decode(struct option_state *, const unsigned char *, unsigned, struct universe *)
int write_group(struct group_object *)
isc_result_t delete_class(struct class *, int)
int make_encapsulation(struct expression **, struct data_string *)
isc_result_t enter_failover_peer(dhcp_failover_state_t *)
struct subnet * next_subnet
int option_cache_dereference(struct option_cache **, const char *, int)
void dhcpv4_client_assignments(void)
isc_boolean_t ipv6_in_pool(const struct in6_addr *addr, const struct ipv6_pool *pool)
void convert_shared_net_statement(struct parse *, jrefproto)
isc_result_t free_iaddrcidrnetlist(struct iaddrcidrnetlist **result)
void free_pair(pair, const char *, int)
int binding_value_allocate(struct binding_value **, const char *, int)
void delete_fqdn6_option(struct universe *universe, struct option_state *options, int code)
struct option ** required_options
ssize_t decode_ethernet_header(struct interface_info *, unsigned char *, unsigned, struct hardware *)
omapi_object_type_t * dhcp_type_class
void convert_filename_decl(struct parse *, jrefproto)
int token_print_indent_concat(FILE *, int, int, const char *, const char *,...)
struct dhcp_packet * new_dhcp_packet(const char *, int)
int make_concat(struct expression **, struct expression *, struct expression *)
omapi_object_type_t * dhcp_type_group
void write_client_pid_file(void)
isc_result_t dhcp_subnet_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
int(* dhcp_interface_setup_hook)(struct interface_info *, struct iaddr *)
int parse_base64(struct data_string *, struct parse *)
void add_timeout(struct timeval *, void(*)(void *), void *, tvref_t, tvunref_t)
struct shared_network * shared_network
void make_request(struct client_state *, struct client_lease *)
int parse_expression(struct expression **, struct parse *, int *, enum expression_context, struct expression **, enum expr_op)
int if_readsocket(omapi_object_t *)
isc_result_t dhcp_lease_get(omapi_object_t **, const char *, int)
int group_reference(struct group **, struct group *, const char *, int)
dhcp_control_object_t * dhcp_control_object
isc_result_t dhcp_host_remove(omapi_object_t *, omapi_object_t *)
struct universe vsio_universe
void echo_client_id(struct packet *, struct lease *, struct option_state *, struct option_state *)
Adds a dhcp-client-id option to a set of options Given a set of input options, it searches for echo-c...
struct lease ** billed_leases
void dhcpdiscover(struct packet *, int)
void dhcp_failover_reconnect(void *)
isc_result_t get_client_id(struct packet *, struct data_string *)
const char * path_dhcpd_conf
void set_broadcast_addr(struct interface_info *, struct in_addr)
void use_host_decl_name(struct packet *, struct lease *, struct option_state *)
Adds hostname option when use-host-decl-names is enabled.
void delete_linked_option(struct universe *, struct option_state *, int)
void dhcp_failover_startup(void)
struct option_cache * secondary
int parse_dns_expression(struct expression **, struct parse *, int *)
void convert_host_statement(struct parse *, jrefproto)
void if_register6(struct interface_info *info, int do_multicast)
void convert_date(struct parse *, jrefproto, char *)
void set_ip_address(struct interface_info *, struct in_addr)
int find_subnet(struct subnet **, struct iaddr, const char *, int)
struct client_lease * active
isc_result_t dhcp_lease_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
int data_string_new(struct data_string *, const char *, unsigned int, const char *, int)
Constructs a null-terminated data_string from a char* and length.
void nak_lease(struct packet *, struct iaddr *cip, struct group *)
Constructs and sends a DHCP Nak.
isc_result_t dhcp_class_destroy(omapi_object_t *, const char *, int)
int parse_X(struct parse *, u_int8_t *, unsigned)
int hashed_option_space_encapsulate(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *)
int parse_statement(struct parse *, struct group *, int, struct host_decl *, int)
isc_result_t client_dns_update(struct client_state *client, dhcp_ddns_cb_t *ddns_cb)
isc_result_t dhclient_interface_startup_hook(struct interface_info *)
isc_result_t release_leases(struct ia_xx *ia)
isc_result_t dhcp_group_remove(omapi_object_t *, omapi_object_t *)
struct iaddrcidrnetlist * fixed_prefix
void update_partner(struct lease *)
isc_result_t dhcp_failover_send_update_done(dhcp_failover_state_t *)
void make_discover(struct client_state *, struct client_lease *)
void start_init6(struct client_state *client)
isc_result_t dns_zone_lookup(struct dns_zone **, const char *)
struct group_object * named_group
isc_result_t ddns_removals(struct lease *, struct iasubopt *, struct dhcp_ddns_cb *, isc_boolean_t)
enum dhcp_shutdown_state shutdown_state
void parse_client_lease_declaration(struct parse *, struct client_lease *, struct interface_info **, struct client_state **)
void dhcpv6(struct packet *)
isc_result_t dhcp_class_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
int commit_leases_timed(void)
void trace_ddns_init(void)
isc_result_t ipv6_pond_allocate(struct ipv6_pond **pond, const char *file, int line)
Create a new IPv6 pond structure.
void unconfigure6(struct client_state *client, const char *reason)
void client_dns_remove(struct client_state *client, struct iaddr *addr)
isc_result_t dhcp_pool_signal_handler(omapi_object_t *, const char *, va_list)
struct shared_network * shared_network
int got_server_identifier
char * quotify_buf(const unsigned char *, unsigned, const char *, int)
struct universe * config_universe
void also_save_option(struct universe *, struct option_state *, struct option_cache *)
int lease_enqueue(struct lease *)
void register_eventhandler(struct eventqueue **, void(*handler)(void *))
const char * path_dhclient_pid
struct executable_statement * statements
__extension__ unsigned short dhcpd_main_semaphore __attribute__((unused)) __attribute__((section(".probes")))
int parse_agent_information_option(struct packet *, int, u_int8_t *)
binding_state_t rewind_binding_state
int peer_wants_lease(struct lease *)
void parse_failover_state(struct parse *, enum failover_state *, TIME *)
isc_uint64_t low_threshold
struct interface_info * next
isc_boolean_t prefix6_exists(const struct ipv6_pool *pool, const struct in6_addr *pref, u_int8_t plen)
void dhcp_failover_ack_queue_remove(dhcp_failover_state_t *, struct lease *)
isc_heap_t * inactive_timeouts
isc_result_t dhcp_failover_set_service_state(dhcp_failover_state_t *state)
isc_result_t dhcp_io_shutdown(omapi_object_t *, void *)
void if_register_fallback(struct interface_info *)
int ddns_updates(struct packet *, struct lease *, struct lease *, struct iasubopt *, struct iasubopt *, struct option_state *)
void convert_address_range(struct parse *, jrefproto)
int parse_encapsulated_suboptions(struct option_state *, struct option *, const unsigned char *, unsigned, struct universe *, const char *)
int parse_data_expression(struct expression **, struct parse *, int *)
void schedule_all_ipv6_lease_timeouts()
void make_binding_state_transition(struct lease *)
int script_go(struct client_state *)
struct string_list * next
void parse_failover_peer(struct parse *, struct group *, int)
void parse_address_range6(struct parse *cfile, struct group *group, struct ipv6_pond *)
int addr_or(struct iaddr *result, const struct iaddr *a1, const struct iaddr *a2)
void commit_leases_readerdry(void *)
isc_result_t iasubopt_dereference(struct iasubopt **iasubopt, const char *file, int line)
int validate_packet(struct packet *)
void failover_print(char *, unsigned *, unsigned, const char *)
int is_boolean_expression(struct expression *)
int dhcp_failover_queue_update(struct lease *, int)
int db_printable(const unsigned char *)
void execute_statements_in_scope(struct binding_value **result, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct group *, struct group *, struct on_star *)
void convert_lease_time(struct parse *, jrefproto, char *)
void ack_lease(struct packet *, struct lease *, unsigned int, TIME, char *, int, struct host_decl *)
isc_uint64_t num_abandoned
void report_jumbo_ranges()
void skip_to_rbrace(struct parse *, int)
isc_result_t set_server_duid_from_option(void)
void add_route_direct(struct interface_info *, struct in_addr)
struct shared_network * shared_network
struct domain_search_list * new_domain_search_list(const char *, int)
struct failover_option_info ft_options[]
void parse_prefix6(struct parse *cfile, struct group *group, struct ipv6_pond *)
pair new_pair(const char *, int)
struct option * host_id_option
int format_min_length(const char *, struct option_cache *)
void save_fqdn6_option(struct universe *universe, struct option_state *options, struct option_cache *oc, isc_boolean_t appendp)
isc_result_t ia_allocate(struct ia_xx **ia, u_int32_t iaid, const char *duid, unsigned int duid_len, const char *file, int line)
int parse_class_declaration(struct class **, struct parse *, struct group *, int)
enum dhcp_token peek_token(const char **, unsigned *, struct parse *)
isc_result_t enter_dns_zone(struct dns_zone *)
void parse_ia_pd_declaration(struct parse *)
ssize_t send_fallback(struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in_addr, struct sockaddr_in *, struct hardware *)
int read_client_conf_file(const char *, struct interface_info *, struct client_config *)
isc_result_t dhcp_shared_network_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
void data_string_forget(struct data_string *, const char *, int)
void free_dhcp_packet(struct dhcp_packet *, const char *, int)
isc_result_t dhcp_class_signal_handler(omapi_object_t *, const char *, va_list)
struct option_cache * primary6
binding_state_t desired_binding_state
isc_boolean_t agent_options_stashed
int dns_host_entry_reference(struct dns_host_entry **, struct dns_host_entry *, const char *, int)
struct subnet * next_sibling
isc_result_t ia_add_iasubopt(struct ia_xx *ia, struct iasubopt *iasubopt, const char *file, int line)
int dhcp_failover_write_all_states(void)
int write_expression(FILE *, struct expression *, int, int, int)
isc_uint64_t num_abandoned
void dhcpoffer(struct packet *)
isc_result_t dhcp_failover_listener_destroy(omapi_object_t *, const char *, int)
void convert_fixed_addr_decl(struct parse *, jrefproto)
void convert_hardware_addr(struct parse *, jrefproto)
isc_heap_t * active_timeouts
TIME parse_date_core(struct parse *)
isc_result_t binding_scope_set_value(struct binding_scope *, int, omapi_data_string_t *, omapi_typed_data_t *)
void initialize_common_option_spaces(void)
struct interface_info * interface
struct client_lease * offered_leases
isc_result_t ipv6_pond_dereference(struct ipv6_pond **pond, const char *file, int line)
de-reference an IPv6 pond structure.
time_t soft_lifetime_end_time
int find_lease_by_uid(struct lease **, const unsigned char *, unsigned, const char *, int)
int fundef_dereference(struct fundef **, const char *, int)
int supports_multiple_interfaces(struct interface_info *)
void parse_option_space_decl(struct parse *)
int evaluate_boolean_expression_result(int *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct expression *)
isc_result_t dhcp_failover_send_bind_update(dhcp_failover_state_t *, struct lease *)
struct string_list * media
void enter_subnet(struct subnet *)
isc_result_t dhcp_failover_send_state(dhcp_failover_state_t *)
struct iaddr broadcast_addr(struct iaddr, struct iaddr)
int fqdn6_universe_decode(struct option_state *options, const unsigned char *buffer, unsigned length, struct universe *u)
void(* func)(struct dns_query *)
isc_result_t dhcp_subnet_remove(omapi_object_t *, omapi_object_t *)
isc_result_t dhcp_subclass_create(omapi_object_t **, omapi_object_t *)
isc_result_t enter_host(struct host_decl *, int, int)
unsigned char * answers[1]
enum expression_context op_context(enum expr_op)
void dhcp_failover_timeout(void *)
struct universe * find_option_universe(struct option *, const char *)
int add_option(struct option_state *options, unsigned int option_num, void *data, unsigned int data_len)
isc_result_t dhcp_group_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
int make_const_data(struct expression **, const unsigned char *, unsigned, int, int, const char *, int)
int dhcp_failover_state_match(dhcp_failover_state_t *, u_int8_t *, unsigned)
int dhcpd_interface_setup_hook(struct interface_info *ip, struct iaddr *ia)
isc_result_t dhcp_lease_destroy(omapi_object_t *, const char *, int)
int token_indent_data_string(FILE *, int, int, const char *, const char *, struct data_string *)
void write_lease_option(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *)
void dhcpv6_client_assignments(void)
void dhcp_failover_toack_queue_timeout(void *)
isc_result_t dhcp_pool_destroy(omapi_object_t *, const char *, int)
int parse_case_statement(struct executable_statement **, struct parse *, int *, enum expression_context)
void interface_stash(struct interface_info *)
void delete_option(struct universe *, struct option_state *, int)
void dump_raw(const unsigned char *, unsigned)
int packet_allocate(struct packet **, const char *, int)
int unset(struct binding_scope *, const char *)
void print_hex_only(unsigned, const u_int8_t *, unsigned, char *)
u_int8_t hbuf[HARDWARE_ADDR_LEN+1]
void read_client_duid(void)
struct binding_scope ** scope
void send_decline(void *)
struct iaddrmatchlist * reject_list
struct string_list * medium
isc_result_t dhcp_lease_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
int cons_options(struct packet *, struct dhcp_packet *, struct lease *, struct client_state *, int, struct option_state *, struct option_state *, struct binding_scope **, int, int, int, struct data_string *, const char *)
struct option_cache * lookup_hashed_option(struct universe *, struct option_state *, unsigned)
struct client_config * config
isc_result_t read_client_conf(void)
isc_result_t dhcp_lease_create(omapi_object_t **, omapi_object_t *)
struct interface_info ** interface_vector
void(* ddns_action_t)(struct dhcp_ddns_cb *ddns_cb, isc_result_t result)
void free_protocol(struct protocol *, const char *, int)
struct universe agent_universe
#define HARDWARE_ADDR_LEN
isc_result_t parse_option_name(struct parse *, int, int *, struct option **)
void dhclient_schedule_updates(struct client_state *client, struct iaddr *addr, int offset)
void set_multicast_hop_limit(struct interface_info *info, int hop_limit)
const char * piaddr(struct iaddr)
isc_result_t dhcp_lease_free(omapi_object_t *, const char *, int)
int make_limit(struct expression **, struct expression *, int)
struct hardware anycast_mac_addr
isc_result_t dhcp_class_remove(omapi_object_t *, omapi_object_t *)
ssize_t receive_packet(struct interface_info *, unsigned char *, size_t, struct sockaddr_in *, struct hardware *)
int option_dereference(struct option **dest, const char *file, int line)
struct ipv6_pool ** pools
isc_result_t save_parse_state(struct parse *cfile)
void ddns_cb_forget_zone(dhcp_ddns_cb_t *ddns_cb)
struct iasubopt ** iasubopt
void classification_setup(void)
void(* handler)(struct protocol *)
int write_ia(const struct ia_xx *)
void dump_packet_option(struct option_cache *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *, void *)
struct option * new_option(const char *, const char *, int)
void parse_server_duid(struct parse *cfile)
struct universe dhcpv6_universe
int fqdn_option_space_encapsulate(struct data_string *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct universe *)
void remove_if_route(struct interface_info *, struct in_addr)
int store_option(struct data_string *, struct universe *, struct packet *, struct lease *, struct client_state *, struct option_state *, struct option_state *, struct binding_scope **, struct option_cache *)
isc_result_t dhcp_failover_listener_signal(omapi_object_t *, const char *, va_list)
const char * binding_state_names[]
struct executable_statement * on_expiry
int linked_option_state_dereference(struct universe *, struct option_state *, const char *, int)
const char * pdestdesc(struct iaddr)
struct shared_network * next
struct in6_addr dhcpv6_peer_address
int group_writer(struct group_object *)
isc_result_t dhcp_group_stuff_values(omapi_object_t *, omapi_object_t *, omapi_object_t *)
struct collection default_collection
struct shared_network * shared_network
void add_enumeration(struct enumeration *)
struct string_list * medium
isc_result_t dhcp_group_destroy(omapi_object_t *, const char *, int)
void client_envadd(struct client_state *, const char *, const char *, const char *,...) __attribute__((__format__(__printf__
void dhcp_reply(struct lease *)
isc_result_t find_cached_zone(dhcp_ddns_cb_t *, int)
struct dhcp_ddns_cb * ddns_cb
isc_result_t dhcp_interface_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
struct enumeration syslog_enum
void new_shared_network_interface(struct parse *, struct shared_network *, const char *)
struct permit * permit_list
struct data_string filename server_name
int make_const_option_cache(struct option_cache **, struct buffer **, u_int8_t *, unsigned, struct option *, const char *, int)
isc_result_t create_prefix6(struct ipv6_pool *pool, struct iasubopt **pref, unsigned int *attempts, const struct data_string *uid, time_t soft_lifetime_end_time)
const char * dhcp_failover_reject_reason_print(int)
struct domain_search_list * domains
int dhcp_failover_send_acks(dhcp_failover_state_t *)
ssize_t decode_hw_header(struct interface_info *, unsigned char *, unsigned, struct hardware *)
void if_reinitialize_receive(struct interface_info *)
int can_unicast_without_arp(struct interface_info *)
struct lease_state * new_lease_state(const char *, int)
void convert_lease_statement(struct parse *, jrefproto)
isc_result_t read_conf_file(const char *, struct group *, int, int)
void if_register_receive(struct interface_info *)
int bill_class(struct lease *, struct class *)
struct shared_network * shared_network
void trace_conf_stop(trace_type_t *ttype)
isc_result_t dhcp_failover_send_updates(dhcp_failover_state_t *)
unsigned char * parse_numeric_aggregate(struct parse *, unsigned char *, unsigned *, int, int, unsigned)
int format_has_text(const char *)
isc_result_t ia_reference(struct ia_xx **ia, struct ia_xx *src, const char *file, int line)
void make_client_config(struct client_state *, struct client_config *)
struct executable_statement * on_commit
isc_result_t dhcp_interface_remove(omapi_object_t *, omapi_object_t *)
isc_result_t dhcp_pool_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
void data_string_truncate(struct data_string *, int)
void dhcp_failover_startup_timeout(void *)
void print_hex_or_string(unsigned, const u_int8_t *, unsigned, char *)
isc_result_t dhcp_shared_network_destroy(omapi_object_t *, const char *, int)
isc_result_t dhcp_failover_send_update_request_all(dhcp_failover_state_t *)
struct interface_info * interface
void dhcp_common_objects_setup(void)
trace_type_t * outpacket_trace
isc_result_t generate_new_server_duid(void)
isc_result_t conf_file_subparse(struct parse *, struct group *, int)
struct binding_scope * scope
void parse_group_declaration(struct parse *, struct group *)
struct domain_search_list * next
isc_result_t ipv6_pool_reference(struct ipv6_pool **pool, struct ipv6_pool *src, const char *file, int line)
reference an IPv6 pool structure.
struct hardware interface
binding_state_t conflict_binding_state_transition_check(struct lease *, dhcp_failover_state_t *, binding_state_t, u_int32_t)
void parse_hardware_param(struct parse *, struct hardware *)
isc_result_t dhcp_failover_state_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
isc_result_t lease_instantiate(const void *, unsigned, void *)
struct permit * permit_list
struct enumeration prefix_length_modes
char * path_dhclient_script
struct host_decl * n_dynamic
isc_result_t dhcp_pool_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
int got_requested_address
int option_chain_head_dereference(struct option_chain_head **, const char *, int)
isc_result_t dhcp_interface_create(omapi_object_t **, omapi_object_t *)
int find_lease_by_ip_addr(struct lease **, struct iaddr, const char *, int)
isc_result_t fallback_discard(omapi_object_t *)
int data_subexpression_length(int *, struct expression *)
int append_option_buffer(struct universe *, struct option_state *, struct buffer *, unsigned char *, unsigned, unsigned, int)
struct client_lease * leases
void parse_ia_na_declaration(struct parse *)
struct data_string default_duid
isc_result_t dhcp_failover_listener_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
struct dhc6_lease * old_lease
HASH_FUNCTIONS_DECL(option_name, const char *, struct option, option_name_hash_t) HASH_FUNCTIONS_DECL(option_code
u_int32_t requested_lease
struct in6_addr dhcpv6_link_address
struct name_server * new_name_server(const char *, int)
isc_result_t dhcp_subnet_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
int dhcp_option_default_priority_list[]
isc_result_t form_duid(struct data_string *duid, const char *file, int line)
int expr_valid_for_context(struct expression *, enum expression_context)
struct timeval * process_outstanding_timeouts(struct timeval *)
isc_result_t dhcp_control_lookup(omapi_object_t **, omapi_object_t *, omapi_object_t *)
void make_client_state(struct client_state **)
isc_result_t dhcp_failover_link_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
binding_state_t next_binding_state
int store_options6(char *, int, struct option_state *, struct packet *, const int *, struct data_string *)
int concat_dclists(struct data_string *, struct data_string *, struct data_string *)
Adds two Dc-formatted lists into a single Dc-formatted list.
struct enumeration ddns_styles
int executable_statement_foreach(struct executable_statement *, int(*)(struct executable_statement *, void *, int), void *, int)
int expression_reference(struct expression **, struct expression *, const char *, int)
void ia_remove_iasubopt(struct ia_xx *ia, struct iasubopt *iasubopt, const char *file, int line)
int if_register_socket(struct interface_info *, int, int *, struct in6_addr *)
struct interface_info * interface
void convert_option_decl(struct parse *, jrefproto)
int dhcp_failover_state_pool_check(dhcp_failover_state_t *)
void hw_hash_add(struct lease *)
void classify_client(struct packet *)
omapi_object_type_t * dhcp_type_subnet
isc_result_t dhcp_control_signal_handler(omapi_object_t *, const char *, va_list)
struct dhc6_lease * active_lease
int parse_ip_addr_or_hostname(struct expression **, struct parse *, int)
isc_result_t dhcp_pool_create(omapi_object_t **, omapi_object_t *)
#define PACKET_MAX_CLASSES
isc_result_t dhcp_failover_process_bind_update(dhcp_failover_state_t *, failover_message_t *)
struct group_object * object
lease_ip_hash_t * lease_ip_addr_hash
char * print_dec_2(unsigned long)
isc_result_t dhcp_failover_process_update_done(dhcp_failover_state_t *, failover_message_t *)
int buffer_reference(struct buffer **, struct buffer *, const char *, int)
void remove_routes(struct in_addr)
u_int32_t host_addr(struct iaddr, struct iaddr)
int lease_mine_to_reallocate(struct lease *)
isc_result_t expire_lease6(struct iasubopt **leasep, struct ipv6_pool *pool, time_t now)
void dhcp_failover_send_contact(void *)
void write_statements(FILE *, struct executable_statement *, int)
isc_result_t dhcp_subclass_set_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_typed_data_t *)
isc_result_t range2cidr(struct iaddrcidrnetlist **result, const struct iaddr *lo, const struct iaddr *hi)
isc_result_t dhcp_pool_get_value(omapi_object_t *, omapi_object_t *, omapi_data_string_t *, omapi_value_t **)
int buffer_allocate(struct buffer **, unsigned, const char *, int)
struct dns_wakeup * wakeups
int lease_copy(struct lease **, struct lease *, const char *, int)
void add_route_default_gateway(struct interface_info *, struct in_addr)
void data_string_copy(struct data_string *, const struct data_string *, const char *, int)
int binding_scope_reference(struct binding_scope **, struct binding_scope *, const char *, int)
struct option_chain_head * agent_options
void struct client_lease * packet_to_lease(struct packet *, struct client_state *)
isc_result_t interface_setup(void)
int parse_warn(struct parse *, const char *,...) __attribute__((__format__(__printf__
void send_release(void *)
struct packet * dhcpv6_container_packet
struct option_cache * primary
ssize_t receive_packet6(struct interface_info *interface, unsigned char *buf, size_t len, struct sockaddr_in6 *from, struct in6_addr *to_addr, unsigned int *if_index)
isc_result_t ddns_modify_fwd(dhcp_ddns_cb_t *ddns_cb, const char *file, int line)
isc_result_t binding_scope_get_value(omapi_value_t **, struct binding_scope *, omapi_data_string_t *)
struct in6_addr * v6addresses
int is_dns_expression(struct expression *)
isc_result_t iasubopt_reference(struct iasubopt **iasubopt, struct iasubopt *src, const char *file, int line)
void remove_all_if_routes(struct interface_info *)
void dhcp_failover_auto_partner_down(void *vs)
struct interface_info * dummy_interfaces
int bootp_broadcast_always