Re: netgraph TTY

2005-03-30 Thread Jerry Toung
) { perror(open); } else { printf(descripto # %d\n, d); if ((ioctl(d, TIOCSETD, ldisc)) == -1) { perror(ioctl); } } printf(Netgraph TTY node initialized successfully\nPress any key to destroy it); getc(stdin

Re: netgraph TTY

2005-03-30 Thread Maksim Yevmenkin
Jerry Toung wrote: Hey Max, all I can say is thank you. That's a very nice tutorial. I am sure other people will benefit. so, did i get job at nasa? :) btw, i did miss one command (naming one2many node) while cut-and-paste'ing this from my screen, i.e. + mkpeer tee: one2many left2right many0 +

Re: netgraph TTY

2005-03-30 Thread Jerry Toung
only if you can answer this: Is there another Luke Skywalker? :-) On Wednesday 30 March 2005 07:21 pm, Maksim Yevmenkin wrote: Jerry Toung wrote: Hey Max, all I can say is thank you. That's a very nice tutorial. I am sure other people will benefit. so, did i get job at nasa? :)

netgraph TTY

2005-03-30 Thread Jerry Toung
) { perror(ioctl); } } printf(Netgraph TTY node initialized successfully\nPress any key to destroy it); getc(stdin); close(d); exit; mrcrab# gcc -g netgraph.c -o test mrcrab# ./test descripto # 3 Netgraph TTY node initialized successfully

Re: netgraph TTY

2005-03-30 Thread Maksim Yevmenkin
(open); } else { printf(descripto # %d\n, d); if ((ioctl(d, TIOCSETD, ldisc)) == -1) { perror(ioctl); } } printf(Netgraph TTY node initialized successfully\nPress any key to destroy it); getc(stdin); close(d