ether_addr.c File Reference

Go to the source code of this file.

Functions

u_charether_aton (CONST char *str)
 Convert an ASCII string to a binary Ethernet address.
char * ether_ntoa (CONST u_char *mac)
 Convert a binary Ethernet address to an ASCII string.


Function Documentation

u_char* ether_aton ( CONST char *  str  ) 

Convert an ASCII string to a binary Ethernet address.

Note:
This function returns a pointer to internal static storage space that will be overwritten by subsequent calls.
Parameters:
str String to convert.
Returns:
Pointer to a static string that contains the converted binary address.

Definition at line 60 of file ether_addr.c.

References CONST, and memset().

char* ether_ntoa ( CONST u_char mac  ) 

Convert a binary Ethernet address to an ASCII string.

Note:
This function returns a pointer to internal static storage space that will be overwritten by subsequent calls.
Parameters:
mac Address to convert.
Returns:
Pointer to a static string that contains the converted ASCII string.

Definition at line 99 of file ether_addr.c.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/