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? :)

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
hat I am doing wrong as I still see an error message (see > > bottom of email). Excuse me for the slighty long thread. > > > > Here is my very simple line discipline code: > > > > int d; > > int ldisc; > > ldisc = NETGRAPHDISC; > &g

Re: netgraph TTY

2005-03-30 Thread Maksim Yevmenkin
e: int d; int ldisc; ldisc = NETGRAPHDISC; if ((d = open("/dev/cuaa0", O_RDWR)) == -1) { perror("open"); } else { printf("descripto # %d\n", d); if ((ioctl(d, TIOCSETD, &ld

netgraph TTY

2005-03-30 Thread Jerry Toung
((ioctl(d, TIOCSETD, &ldisc)) == -1) { 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 tes