Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

hitachi.h File Reference

Go to the source code of this file.

Functions

char * calculate_mac (char *haddr)
 Subtract 4 from a given number writen in hexadecimal. More...


Detailed Description

Header file for the source "hitachi.c"

Definition in file hitachi.h.


Function Documentation

char* calculate_mac char *    haddr
 

Subtract 4 from a given number writen in hexadecimal.

Author:
Denis BEURIVE
Parameters:
haddr  Pointer to a zero terminated string of characters that represents the number writen in hexadecimal base.
Returns:
The function returns a pointer to "haddr". The string "haddr" now represents the value "haddr-4".
Warning:
This function modifies the content of the string pointed by "haddr"). If macro "USE_PLUGINS" is defined, then the function returns a pointer to a statically allocated buffer. Otherwize, the function returns "haddr" itself.
Remarks:
This function should be used to calculate the MAC address of an HITACHI modem.

Definition at line 97 of file hitachi.c.

References minus1(), and minus4().


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