--- libelwix/src/net.c 2017/01/09 12:40:40 1.16.2.1 +++ libelwix/src/net.c 2017/01/09 12:53:18 1.17 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: net.c,v 1.16.2.1 2017/01/09 12:40:40 misho Exp $ +* $Id: net.c,v 1.17 2017/01/09 12:53:18 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -50,6 +50,18 @@ SUCH DAMAGE. static char hexlist[] = "0123456789abcdef"; #ifndef HAVE_LINK_ADDR + +/* States*/ +#define NAMING 0 +#define GOTONE 1 +#define GOTTWO 2 +#define RESET 3 +/* Inputs */ +#define DIGIT (4*0) +#define END (4*1) +#define DELIM (4*2) +#define LETTER (4*3) + void link_addr(const char *addr, struct sockaddr_dl *sdl) {