#include <stdio.h>
#include "find_ip_and_reply.h"
#include "packets_operations.h"
#include "logging.h"
#include "packets.h"
#include "strings_utils.h"
Go to the source code of this file.
Functions | |
unsigned int | get_lease_from_context (struct mysql_tables *mysql_tables) |
Extract the ACK lease from a loaded context. More... | |
int | find_ip_and_reply (struct smysql *mysql_info_read, struct smysql *mysql_info_read_write, struct smysql *mysql_radonline, struct smysql *mysql_mydns, struct mysql_tables *mysql_tables, struct dhcp_packet *packet, struct global_config *config, int sck, unsigned long int broadcast, unsigned long int server_ip, struct sockaddr_in *client_address) |
Try to find an IP address for the client and send a DHCP response. More... |
Definition in file find_ip_and_reply.c.
|
Try to find an IP address for the client and send a DHCP response.
Definition at line 117 of file find_ip_and_reply.c. References mysql_tables::abonne_ip, mysql_tables::abonnes, table_abonnes::abonnes_id, dhcp_packet::ctrl, global_config::debug, DHCP_INVALID_MESSAGE_TYPE, DHCP_LEASE_INCONSTANCY, DHCP_MYDNS_MYSQL_SQL_PROBLEM, DHCP_MYDNS_MYSQL_UNEXPECTED_ERROR, DHCP_NO_DYNAMIC_IP_FOUND, DHCP_NO_DYNAMIC_IP_FOUND_RELEASE, DHCP_RADONLINE_MYSQL_SQL_PROBLEM, DHCP_RADONLINE_MYSQL_UNEXPECTED_ERROR, DHCPDISCOVER, DHCPINFORM, DHCPRELEASE, DHCPREQUEST, DYNAMIC_IP, find_ip_in_vlan_pool(), get_ip_from_pool(), get_lease_from_context(), mysql_tables::ip_lease, load_abonne_ip(), global_config::log_file, table_abonnes::login_radius, my_syslog(), MYDNS_START, MYDNS_STOP, MYSQL_CONNECTION_LOST, MYSQL_INTERFACE_CONNECTION_LOST, MYSQL_INTERFACE_MORE_THAN_ONE, MYSQL_INTERFACE_NO_IP_FOUND, MYSQL_INTERFACE_NO_LEASE_ID, MYSQL_INTERFACE_NO_TIMESTAMP, MYSQL_INTERFACE_NOT_FOUND, MYSQL_INTERFACE_RECONNECTION_FAILED, MYSQL_INTERFACE_REQUEST_SKIPED, MYSQL_INTERFACE_SQL_PROBLEM, MYSQL_INTERFACE_UNEXPECTED_ERROR, MYSQL_RECONNECTION_FAILED, MYSQL_REQUEST_SKIPED, MYSQL_SQL_PROBLEM, MYSQL_UNEXPECTED_ERROR, nack_flag_abonne(), packets_get_message_type(), packets_get_vlan_id(), packets_send_ack(), packets_send_nack(), packets_send_offer(), mysql_tables::pool, RADONLINE_START, RADONLINE_STOP, release_ip_from_pool(), reply_to_inform(), send_to_mydns(), send_to_radonline(), STATIC_IP, and mysql_tables::vlan. Referenced by main(). |
|
Extract the ACK lease from a loaded context.
Definition at line 24 of file find_ip_and_reply.c. References MAX_PROFILE_OPTIONS, mysql_tables::option_number, and mysql_tables::options. Referenced by find_ip_and_reply(). |