⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dhcpd.h

📁 DHCP服务器源码
💻 H
📖 第 1 页 / 共 5 页
字号:
char *quotify_buf (const unsigned char *, unsigned, const char *, int);char *print_base64 (const unsigned char *, unsigned, const char *, int);char *print_hw_addr PROTO ((int, int, unsigned char *));void print_lease PROTO ((struct lease *));void dump_raw PROTO ((const unsigned char *, unsigned));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 *);void dump_packet PROTO ((struct packet *));void hash_dump PROTO ((struct hash_table *));char *print_hex_1 PROTO ((unsigned, const u_int8_t *, unsigned));char *print_hex_2 PROTO ((unsigned, const u_int8_t *, unsigned));char *print_hex_3 PROTO ((unsigned, const u_int8_t *, unsigned));char *print_dotted_quads PROTO ((unsigned, const u_int8_t *));char *print_dec_1 PROTO ((unsigned long));char *print_dec_2 PROTO ((unsigned long));void print_expression PROTO ((const char *, struct expression *));int token_print_indent_concat (FILE *, int, int,			       const char *, const char *, ...);int token_indent_data_string (FILE *, int, int, const char *, const char *,			      struct data_string *);int token_print_indent (FILE *, int, int,			const char *, const char *, const char *);void indent_spaces (FILE *, int);#if defined (NSUPDATE)void print_dns_status (int, ns_updque *);#endif/* socket.c */#if defined (USE_SOCKET_SEND) || defined (USE_SOCKET_RECEIVE) \	|| defined (USE_SOCKET_FALLBACK)int if_register_socket PROTO ((struct interface_info *));#endif#if defined (USE_SOCKET_FALLBACK) && !defined (USE_SOCKET_SEND)void if_reinitialize_fallback PROTO ((struct interface_info *));void if_register_fallback PROTO ((struct interface_info *));ssize_t send_fallback PROTO ((struct interface_info *,			      struct packet *, struct dhcp_packet *, size_t, 			      struct in_addr,			      struct sockaddr_in *, struct hardware *));#endif#ifdef USE_SOCKET_SENDvoid if_reinitialize_send PROTO ((struct interface_info *));void if_register_send PROTO ((struct interface_info *));void if_deregister_send PROTO ((struct interface_info *));ssize_t send_packet PROTO ((struct interface_info *,			    struct packet *, struct dhcp_packet *, size_t, 			    struct in_addr,			    struct sockaddr_in *, struct hardware *));#endif#ifdef USE_SOCKET_RECEIVEvoid if_reinitialize_receive PROTO ((struct interface_info *));void if_register_receive PROTO ((struct interface_info *));void if_deregister_receive PROTO ((struct interface_info *));ssize_t receive_packet PROTO ((struct interface_info *,			       unsigned char *, size_t,			       struct sockaddr_in *, struct hardware *));#endif#if defined (USE_SOCKET_FALLBACK)isc_result_t fallback_discard PROTO ((omapi_object_t *));#endif#if defined (USE_SOCKET_SEND)int can_unicast_without_arp PROTO ((struct interface_info *));int can_receive_unicast_unconfigured PROTO ((struct interface_info *));int supports_multiple_interfaces (struct interface_info *);void maybe_setup_fallback PROTO ((void));#endif/* bpf.c */#if defined (USE_BPF_SEND) || defined (USE_BPF_RECEIVE)int if_register_bpf PROTO ( (struct interface_info *));#endif#ifdef USE_BPF_SENDvoid if_reinitialize_send PROTO ((struct interface_info *));void if_register_send PROTO ((struct interface_info *));void if_deregister_send PROTO ((struct interface_info *));ssize_t send_packet PROTO ((struct interface_info *,			    struct packet *, struct dhcp_packet *, size_t,			    struct in_addr,			    struct sockaddr_in *, struct hardware *));#endif#ifdef USE_BPF_RECEIVEvoid if_reinitialize_receive PROTO ((struct interface_info *));void if_register_receive PROTO ((struct interface_info *));void if_deregister_receive PROTO ((struct interface_info *));ssize_t receive_packet PROTO ((struct interface_info *,			       unsigned char *, size_t,			       struct sockaddr_in *, struct hardware *));#endif#if defined (USE_BPF_SEND)int can_unicast_without_arp PROTO ((struct interface_info *));int can_receive_unicast_unconfigured PROTO ((struct interface_info *));int supports_multiple_interfaces (struct interface_info *);void maybe_setup_fallback PROTO ((void));#endif/* lpf.c */#if defined (USE_LPF_SEND) || defined (USE_LPF_RECEIVE)int if_register_lpf PROTO ( (struct interface_info *));#endif#ifdef USE_LPF_SENDvoid if_reinitialize_send PROTO ((struct interface_info *));void if_register_send PROTO ((struct interface_info *));void if_deregister_send PROTO ((struct interface_info *));ssize_t send_packet PROTO ((struct interface_info *,			    struct packet *, struct dhcp_packet *, size_t,			    struct in_addr,			    struct sockaddr_in *, struct hardware *));#endif#ifdef USE_LPF_RECEIVEvoid if_reinitialize_receive PROTO ((struct interface_info *));void if_register_receive PROTO ((struct interface_info *));void if_deregister_receive PROTO ((struct interface_info *));ssize_t receive_packet PROTO ((struct interface_info *,			       unsigned char *, size_t,			       struct sockaddr_in *, struct hardware *));#endif#if defined (USE_LPF_SEND)int can_unicast_without_arp PROTO ((struct interface_info *));int can_receive_unicast_unconfigured PROTO ((struct interface_info *));int supports_multiple_interfaces (struct interface_info *);void maybe_setup_fallback PROTO ((void));#endif/* nit.c */#if defined (USE_NIT_SEND) || defined (USE_NIT_RECEIVE)int if_register_nit PROTO ( (struct interface_info *));#endif#ifdef USE_NIT_SENDvoid if_reinitialize_send PROTO ((struct interface_info *));void if_register_send PROTO ((struct interface_info *));void if_deregister_send PROTO ((struct interface_info *));ssize_t send_packet PROTO ((struct interface_info *,			    struct packet *, struct dhcp_packet *, size_t,			    struct in_addr,			    struct sockaddr_in *, struct hardware *));#endif#ifdef USE_NIT_RECEIVEvoid if_reinitialize_receive PROTO ((struct interface_info *));void if_register_receive PROTO ((struct interface_info *));void if_deregister_receive PROTO ((struct interface_info *));ssize_t receive_packet PROTO ((struct interface_info *,			       unsigned char *, size_t,			       struct sockaddr_in *, struct hardware *));#endif#if defined (USE_NIT_SEND)int can_unicast_without_arp PROTO ((struct interface_info *));int can_receive_unicast_unconfigured PROTO ((struct interface_info *));int supports_multiple_interfaces (struct interface_info *);void maybe_setup_fallback PROTO ((void));#endif/* dlpi.c */#if defined (USE_DLPI_SEND) || defined (USE_DLPI_RECEIVE)int if_register_dlpi PROTO ( (struct interface_info *));#endif#ifdef USE_DLPI_SENDvoid if_reinitialize_send PROTO ((struct interface_info *));void if_register_send PROTO ((struct interface_info *));void if_deregister_send PROTO ((struct interface_info *));ssize_t send_packet PROTO ((struct interface_info *,			    struct packet *, struct dhcp_packet *, size_t,			    struct in_addr,			    struct sockaddr_in *, struct hardware *));#endif#ifdef USE_DLPI_RECEIVEvoid if_reinitialize_receive PROTO ((struct interface_info *));void if_register_receive PROTO ((struct interface_info *));void if_deregister_receive PROTO ((struct interface_info *));ssize_t receive_packet PROTO ((struct interface_info *,			       unsigned char *, size_t,			       struct sockaddr_in *, struct hardware *));#endif/* raw.c */#ifdef USE_RAW_SENDvoid if_reinitialize_send PROTO ((struct interface_info *));void if_register_send PROTO ((struct interface_info *));void if_deregister_send PROTO ((struct interface_info *));ssize_t send_packet PROTO ((struct interface_info *,			    struct packet *, struct dhcp_packet *, size_t,			    struct in_addr,			    struct sockaddr_in *, struct hardware *));int can_unicast_without_arp PROTO ((struct interface_info *));int can_receive_unicast_unconfigured PROTO ((struct interface_info *));int supports_multiple_interfaces (struct interface_info *);void maybe_setup_fallback PROTO ((void));#endif/* discover.c */extern struct interface_info *interfaces,	*dummy_interfaces, *fallback_interface;extern struct protocol *protocols;extern int quiet_interface_discovery;isc_result_t interface_setup (void);void interface_trace_setup (void);extern struct in_addr limited_broadcast;extern struct in_addr local_address;extern u_int16_t local_port;extern u_int16_t remote_port;extern int (*dhcp_interface_setup_hook) (struct interface_info *,					 struct iaddr *);extern int (*dhcp_interface_discovery_hook) (struct interface_info *);isc_result_t (*dhcp_interface_startup_hook) (struct interface_info *);extern void (*bootp_packet_handler) PROTO ((struct interface_info *,					    struct dhcp_packet *, unsigned,					    unsigned int,					    struct iaddr, struct hardware *));extern struct timeout *timeouts;extern omapi_object_type_t *dhcp_type_interface;#if defined (TRACING)trace_type_t *interface_trace;trace_type_t *inpacket_trace;trace_type_t *outpacket_trace;#endifextern struct interface_info **interface_vector;extern int interface_count;extern int interface_max;isc_result_t interface_initialize (omapi_object_t *, const char *, int);void discover_interfaces PROTO ((int));int setup_fallback (struct interface_info **, const char *, int);int if_readsocket PROTO ((omapi_object_t *));void reinitialize_interfaces PROTO ((void));/* dispatch.c */void set_time (u_int32_t);struct timeval *process_outstanding_timeouts (struct timeval *);void dispatch PROTO ((void));isc_result_t got_one PROTO ((omapi_object_t *));isc_result_t interface_set_value (omapi_object_t *, omapi_object_t *,				  omapi_data_string_t *, omapi_typed_data_t *);isc_result_t interface_get_value (omapi_object_t *, omapi_object_t *,				  omapi_data_string_t *, omapi_value_t **); isc_result_t interface_destroy (omapi_object_t *, const char *, int);isc_result_t interface_signal_handler (omapi_object_t *,				       const char *, va_list);isc_result_t interface_stuff_values (omapi_object_t *,				     omapi_object_t *,				     omapi_object_t *);void add_timeout PROTO ((TIME, void (*) PROTO ((void *)), void *,			 tvref_t, tvunref_t));void cancel_timeout PROTO ((void (*) PROTO ((void *)), void *));void cancel_all_timeouts (void);void relinquish_timeouts (void);#if 0struct protocol *add_protocol PROTO ((const char *, int,				      void (*) PROTO ((struct protocol *)),				      void *));void remove_protocol PROTO ((struct protocol *));#endifOMAPI_OBJECT_ALLOC_DECL (interface,			 struct interface_info, dhcp_type_interface)/* tables.c */extern struct universe dhcp_universe;extern struct option dhcp_options [256];extern struct universe nwip_universe;extern struct option nwip_options [256];extern struct universe fqdn_universe;extern struct option fqdn_options [256];extern int dhcp_option_default_priority_list [];extern int dhcp_option_default_priority_list_count;extern const char *hardware_types [256];int universe_count, universe_max;struct universe **universes;extern universe_hash_t *universe_hash;void initialize_common_option_spaces PROTO ((void));struct universe *config_universe;/* stables.c */#if defined (FAILOVER_PROTOCOL)extern failover_option_t null_failover_option;extern failover_option_t skip_failover_option;extern struct failover_option_info ft_options [];extern u_int32_t fto_allowed [];extern int ft_sizes [];extern const char *dhcp_flink_state_names [];#endifextern const char *binding_state_names [];extern struct universe agent_universe;extern struct option agent_options [256];extern struct universe server_universe;extern struct option server_options [256];extern struct enumeration ddns_styles;extern struct enumeration syslog_enum;void initialize_server_option_spaces PROTO ((void));/* inet.c */struct iaddr subnet_number PROTO ((struct iaddr, struct iaddr));struct iaddr ip_addr PROTO ((struct iaddr, struct iaddr, u_int32_t));struct iaddr broadcast_addr PROTO ((struct iaddr, struct iaddr));u_int32_t host_addr PROTO ((struct iaddr, struct iaddr));int addr_eq PROTO ((struct iaddr, struct iaddr));char *piaddr PROTO ((struct iaddr));char *piaddrmask (struct iaddr, struct iaddr, const char *, int);char *piaddr1 PROTO ((struct iaddr));/* dhclient.c */extern const char *path_dhclient_conf;extern const char *path_dhclient_db;extern const char *path_dhclient_pid;extern char *path_dhclient_script;extern int interfaces_requested;extern struct client_config top_level_config;void dhcpoffer PROTO ((struct packet *));void dhcpack PROTO ((struct packet *));void dhcpnak PROTO ((struct packet *));void send_discover PROTO ((void *));void send_request PROTO ((void *));void send_release PROTO ((void *));void send_decline PROTO ((void *));void state_reboot PROTO ((void *));void state_init PROTO ((void *));void state_selecting PROTO ((void *));void state_requesting PROTO ((void *));void state_bound PROTO ((void *));void state_stop PROTO ((void *));void state_panic PROTO ((void *));void bind_lease PROTO ((struct client_state *));void make_client_options PROTO ((struct client_state *,				 struct client_lease *, u_int8_t *,				 struct option_cache *, struct iaddr *,				 u_int32_t *, struct option_state **));void make_discover PROTO ((struct client_state *, struct client_lease *));void make_request PROTO ((struct client_state *, struct client_lease *));void make_decline PROTO ((struct client_state *, struct client_lease *));void make_release PROTO ((struct client_state *, struct client_lease *));void destroy_client_lease PROTO ((struct client_lease *));void rewrite_client_leases PROTO ((void));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 *);int write_client_lease PROTO ((struct client_state *,			       struct client_lease *, int, int));int dhcp_option_ev_name (char *, size_t, struct option *);void script_init PROTO ((struct client_state *, const char *,			 struct string_list *));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 *);void script_write_params PROTO ((struct client_state *,				 const char *, struct client_lease *));int script_go PROTO ((struct client_state *));void client_envadd (struct client_state *,		    const char *, const char *, const char *, ...)	__attribute__((__format__(__printf__,4,5)));struct client_lease *packet_to_lease (struct packet *, struct client_state *);void go_daemon PROTO ((void));void write_client_pid_file PROTO ((void));void client_location_changed PROTO ((

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -