version 1.1.1.1.2.6, 2011/10/13 16:08:52
|
version 1.1.1.1.2.7, 2011/10/14 07:47:21
|
Line 139 pktRx(sched_task_t *task)
|
Line 139 pktRx(sched_task_t *task)
|
ioChgWinPTY(proc->proc_pty, ntohs(b[0]), ntohs(b[1]), ntohs(b[2]), ntohs(b[3])); |
ioChgWinPTY(proc->proc_pty, ntohs(b[0]), ntohs(b[1]), ntohs(b[2]), ntohs(b[3])); |
/* if not started login, lets start & go! */ |
/* if not started login, lets start & go! */ |
if (!proc->proc_pid) { |
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); |
spawnLogin(task, proc); |
} |
} |
default: |
default: |
Line 309 spawnLogin(sched_task_t *task, struct tagProc *proc)
|
Line 309 spawnLogin(sched_task_t *task, struct tagProc *proc)
|
case 0: |
case 0: |
printf("anshd ELWIX remote management system (%s)\n\n", proc->proc_ttyname); |
printf("anshd ELWIX remote management system (%s)\n\n", proc->proc_ttyname); |
strlcpy(str, "-hansh@", sizeof str); |
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); |
execl("/usr/bin/login", "login", str, NULL); |
/* never reached */ |
/* never reached */ |