Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

conversion.h

Go to the documentation of this file.
00001 /*! \file conversion.h
00002           Header file fot the conversion facilities (conversion.c).
00003  */
00004 
00005 #ifdef __cplusplus
00006 extern "C" {
00007 #endif
00008 
00009 #ifndef CONVERSION_HEADER_FILE
00010 #define CONVERSION_HEADER_FILE
00011 
00012 #include <sys/socket.h>
00013 #include <netinet/in.h>
00014 #include <arpa/inet.h>
00015 #include <string.h>
00016 #include <stdarg.h>
00017 
00018 #include "strings_utils.h"  /* EXT */
00019 
00020 void conversion_logging_service (int dbg,
00021                                  char *logfile,
00022                                  int (*logger) (const char *file, const char * fmt,...));
00023 
00024 char int_to_char (unsigned char c);
00025 unsigned char char_to_int (char c);
00026 unsigned char* haddr_to_hexa (char *haddr, int *length);
00027 unsigned long int get_network_ip (char *ip);
00028 char *get_doted_ip (unsigned long int ip);
00029 int uint32_to_network_byte_order (char* buffer_in, char *buffer_out, int len_out);
00030 int ip_to_network_byte_order (char* buffer_in, char *buffer_out, int len_out);
00031 int hexa_to_binary (char *buffer_in, char *buffer_out, int len_out);
00032 int ascii_to_binary (char *buffer_in, char *buffer_out, int len_in, int len_out);
00033 int uint16_to_network_byte_order (char* buffer_in, char *buffer_out, int len_out);
00034 int raw_ips_to_string (unsigned char *buffin, char *buffout, int lenin, int lenout);
00035 void radius2mydns (char *radius, char *mydns, int mydns_size);
00036 
00037 #endif
00038 
00039 #ifdef __cplusplus
00040 }
00041 #endif

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