--- ansh/src/daemon2.c 2011/10/13 16:08:52 1.1.1.1.2.6 +++ ansh/src/daemon2.c 2011/10/14 07:47:21 1.1.1.1.2.7 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: daemon2.c,v 1.1.1.1.2.6 2011/10/13 16:08:52 misho Exp $ + * $Id: daemon2.c,v 1.1.1.1.2.7 2011/10/14 07:47:21 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -139,7 +139,7 @@ pktRx(sched_task_t *task) ioChgWinPTY(proc->proc_pty, ntohs(b[0]), ntohs(b[1]), ntohs(b[2]), ntohs(b[3])); /* if not started login, lets start & go! */ if (!proc->proc_pid) { - memcpy(&proc->proc_ea.octet, ð.ether_shost, ETHER_ADDR_LEN); + memcpy(&proc->proc_ea, ð.ether_shost, ETHER_ADDR_LEN); spawnLogin(task, proc); } default: @@ -309,7 +309,7 @@ spawnLogin(sched_task_t *task, struct tagProc *proc) case 0: printf("anshd ELWIX remote management system (%s)\n\n", proc->proc_ttyname); strlcpy(str, "-hansh@", sizeof str); - ether_ntoa_r(&proc->proc_ea, str + 7); + io_ether_ntoa((const struct io_ether_addr*) &proc->proc_ea, str + 7, 18); execl("/usr/bin/login", "login", str, NULL); /* never reached */