Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

modem.h

Go to the documentation of this file.
00001 /*! \file modem.h
00002     Header file for the file 'modem.c'.
00003  */
00004 
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif
00008 
00009 #ifndef MODEM_HEADER_FILE
00010 #define MODEM_HEADER_FILE
00011 
00012 #include "config.h"
00013 #include "packets.h"
00014 
00015 #ifndef USE_PLUGINS
00016 
00017     /*! \brief This string of characters identifies an HITACHI hardware address (in hexa).
00018      */  
00019     
00020     #define HITACHI_MARK1  "0003C9"
00021     
00022     /*! \brief This string of characters identifies an HITACHI hardware address (in hexa).
00023      */
00024     
00025     #define HITACHI_MARK2  "001638"
00026     
00027     /*! \brief This string of characters identifies an SAGEM hardware address (in hexa).
00028      */
00029     
00030     #define SAGEM_MARK1    "00604C"
00031     
00032     /*! \brief This string of characters identifies an SAGEM hardware address (in hexa).
00033      */
00034     
00035     #define SAGEM_MARK2    "001556"
00036     
00037     /*! \brief Return value for the function get_modem_manufacturor().
00038                This value identifies an HITACHI modem.
00039      */
00040     
00041     #define MODEM_HITACHI 1
00042     
00043     /*! \brief Return value for the function get_modem_manufacturor().
00044                This value identifies an SAGEM modem.
00045      */
00046     
00047     #define MODEM_SAGEM 2
00048     
00049     /*! \brief Return value for the function get_modem_manufacturor().
00050                This value is returned if the function does not find the modem's manufacturor.
00051      */
00052     
00053     #define MODEM_UNKNOWN 0
00054 
00055 #endif
00056 
00057 void init_modem_syslog (int (*syslog)(const char *file, const char * fmt,...), char *log, int debug);
00058 int get_modem_manufacturor (struct dhcp_packet *packet);
00059 char *calculate_modem_mac_address (struct dhcp_packet *packet, int manufacturor);
00060 char *id_manufacturor_to_string (int id);
00061 
00062 
00063 #endif
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif

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