changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/kw/devether.c

revision 6250: ae7c1bf5cb85
parent 3146: e4c4c0d908ef
child 6255: 2de88464dd85
     1.1--- a/sys/src/9/kw/devether.c
     1.2+++ b/sys/src/9/kw/devether.c
     1.3@@ -336,29 +336,6 @@ addethercard(char* t, int (*r)(Ether*))
     1.4 	ncard++;
     1.5 }
     1.6 
     1.7-int
     1.8-parseether(uchar *to, char *from)
     1.9-{
    1.10-	char nip[4];
    1.11-	char *p;
    1.12-	int i;
    1.13-
    1.14-	p = from;
    1.15-	for(i = 0; i < Eaddrlen; i++){
    1.16-		if(*p == 0)
    1.17-			return -1;
    1.18-		nip[0] = *p++;
    1.19-		if(*p == 0)
    1.20-			return -1;
    1.21-		nip[1] = *p++;
    1.22-		nip[2] = 0;
    1.23-		to[i] = strtoul(nip, 0, 16);
    1.24-		if(*p == ':')
    1.25-			p++;
    1.26-	}
    1.27-	return 0;
    1.28-}
    1.29-
    1.30 static void
    1.31 etherreset(void)
    1.32 {