SPO600 Project – inet/ether_aton_r.c

Due to the results I got from the last post with the function inet/ether_line.c, and the fact that both source codes are very similar. I come to the conclusion that I would get the same results that I got from ether_line.c trying to optimize this function.

ether_aton() converts the 48-bit Ethernet host address asc from the standard hex-digits-and-colons notation into binary data in network byte order and returns a pointer to it in a statically allocated buffer, which subsequent calls will overwrite. ether_aton() returns NULL if the address is invalid.

Source code: https://github.com/lawrencereyes/spo600-glibc/blob/master/inet/ether_aton_r.c

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s