| plan 9 kernel history: overview | file list | diff list |
1992/0106/port/devip.c (diff list | history)
| 1992/0106/sys/src/9/port/devip.c:3,9 – 1992/0111/sys/src/9/port/devip.c:3,9 (short | long | prev | next) | ||
|
Move error.h to ../port. Change errors to actual strings.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1991/0424 | #include "mem.h" #include "dat.h" #include "fns.h" | |
| 1992/0111 | #include "../port/error.h" | |
| 1991/0424 | #include "arp.h" #include "ipdat.h" | |
| 1992/0106/sys/src/9/port/devip.c:234,245 – 1992/0111/sys/src/9/port/devip.c:234,245 | ||
| 1991/0516 | ||
| 1991/1024 | m = getfields(buf, field, 5, ' '); if(m < 1) | |
| 1992/0111 | error(Ebadarg); | |
| 1991/0424 | ||
| 1991/1024 | if(strcmp(field[0], "connect") == 0) { | |
| 1991/12171 | if((cp->stproto == &tcpinfo && cp->tcpctl.state != Closed) || | |
| 1991/1024 | (cp->stproto == &ilinfo && cp->ilctl.state != Ilclosed)) | |
| 1992/0111 | error(Enetbusy); | |
| 1991/0424 | ||
| 1991/1024 | if(m != 2) error(Ebadarg); | |
| 1992/0106/sys/src/9/port/devip.c:281,287 – 1992/0111/sys/src/9/port/devip.c:281,287 | ||
| 1991/1104 | else if(strcmp(field[0], "announce") == 0) { | |
| 1991/12171 | if((cp->stproto == &tcpinfo && cp->tcpctl.state != Closed) || | |
| 1991/1024 | (cp->stproto == &ilinfo && cp->ilctl.state != Ilclosed)) | |
| 1992/0111 | error(Enetbusy); | |
| 1991/0424 | ||
| 1991/1024 | if(m != 2) error(Ebadarg); | |