]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: new utility functions for working with enetaddr's
authorMike Frysinger <vapier@gentoo.org>
Fri, 30 Jan 2009 00:43:44 +0000 (19:43 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 20 Mar 2009 21:39:09 +0000 (22:39 +0100)
commit3f6e6993e92fd0658da1746d1c84644612ee520b
treec0dd1c3077e30083cb94bfeb96064138cfd73485
parentb6446b67758ea1e41223f0782924bb73fd0a89d0
net: new utility functions for working with enetaddr's

Declare new utility functions for converting between the environment
variables (eth*addr) and the binary MAC address representation.  This way
we can unify all the random places that already do this kind of thing.

The functions in question:
eth_parse_enetaddr - "..." -> {...}
eth_getenv_enetaddr - env -> {...}
eth_setenv_enetaddr - {...} -> env

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Ben Warren <biggerbadderben@gmail.com>
include/net.h
net/eth.c