Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

find_ip_and_reply.h

Go to the documentation of this file.
00001 /*! \file find_ip_and_reply.h
00002           Header file for the big functionnality that finds the IP address and reply to the client.
00003           Return values start from -100.
00004  */
00005 
00006 #ifndef FIND_IP_AND_REPLY_HEADER_FILE
00007 #define FIND_IP_AND_REPLY_HEADER_FILE
00008 
00009 #include <netinet/in.h>
00010 #include "packets_data.h"
00011 #include "mysql_interface.h"
00012 
00013 /*! \brief Return value for the function find_ip_and_reply(). Invailid DHCP message type.
00014  */
00015 
00016 #define DHCP_INVALID_MESSAGE_TYPE        -100
00017 
00018 /*! \brief Return value for the function find_ip_and_reply(). Could not find any available IP address.
00019  */
00020 
00021 #define DHCP_NO_DYNAMIC_IP_FOUND         -101
00022 
00023 /*! \brief Return value for the function find_ip_and_reply(). An unexpected error occured while trying
00024            to retrieve the lease value.
00025  */
00026 
00027 #define DHCP_LEASE_INCONSTANCY           -102
00028 
00029 /*! \brief Return value for the function find_ip_and_reply(). The server received a DHCP RELEASE from a user
00030            that got a dynamic IP address. But the server could not find any busy IP address associated to
00031            this user within the pool. This is not a problem. We just ignore this event.
00032  */
00033 
00034 #define DHCP_NO_DYNAMIC_IP_FOUND_RELEASE -103
00035 
00036 /*! \brief Return value for the function find_ip_and_reply(). Could not send a (START or STOP) ticket to
00037            Radonline. Some SQL error occured.
00038  */
00039 
00040 #define DHCP_RADONLINE_MYSQL_SQL_PROBLEM       -104
00041 
00042 /*! \brief Return value for the function find_ip_and_reply(). Could not send a (START or STOP) ticket to
00043            Radonline. An unexpected SQL error occured.
00044  */
00045 
00046 #define DHCP_RADONLINE_MYSQL_UNEXPECTED_ERROR  -105
00047 
00048 /*! \brief Return value for the function find_ip_and_reply(). Could not send a (START or STOP) ticket to
00049            MyDqs database. Some SQL error occured.
00050  */
00051 
00052 #define DHCP_MYDNS_MYSQL_SQL_PROBLEM           -106
00053 
00054 /*! \brief Return value for the function find_ip_and_reply(). Could not send a (START or STOP) ticket to
00055            MyDqs database. An unexpected SQL error occured.
00056  */
00057 
00058 #define DHCP_MYDNS_MYSQL_UNEXPECTED_ERROR      -107
00059 
00060 
00061 
00062 int find_ip_and_reply (struct smysql        *mysql_info_read,
00063                        struct smysql        *mysql_info_read_write,
00064                        struct smysql        *mysql_radonline,
00065                        struct smysql        *mysql_mydns,
00066                        struct mysql_tables  *mysql_tables,
00067                        struct dhcp_packet   *packet,
00068                        struct global_config *config,
00069                        int                  sck,
00070                        unsigned long int    broadcast,
00071                        unsigned long int    server_ip,
00072                        struct sockaddr_in   *client_address);
00073 
00074 #endif
00075 
00076 

Generated on Mon Jun 19 12:31:05 2006 for MyDhcp_V2 by doxygen1.2.15