support "gbe" ethermedium which allows jumbo frames. Reference: /n/sources/patch/applied/ipconfig-jumbo Date: Wed Nov 15 12:57:24 CET 2006 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/ip/ipconfig.c Wed Nov 15 12:56:50 2006 +++ /sys/src/cmd/ip/ipconfig.c Wed Nov 15 12:56:42 2006 @@ -28,6 +28,7 @@ Vremove, Vunbind, Vether, + Vgbe, Vloopback, }; @@ -368,6 +369,7 @@ break; case Vether: case Vloopback: + case Vgbe: conf.type = argv[0]; if(argc > 1){ conf.dev = argv[1]; @@ -575,7 +577,7 @@ void mkclientid(void) { - if(strcmp(conf.type, "ether") == 0) + if(strcmp(conf.type, "ether") == 0 || strcmp(conf.type, "gbe") == 0) if(myetheraddr(conf.hwa, conf.dev) == 0){ conf.hwalen = 6; conf.hwatype = 1; @@ -612,7 +614,7 @@ if(firstctl == nil) return; - if(strcmp(conf.type, "ether") == 0) + if(strcmp(conf.type, "ether") == 0 || strcmp(conf.type, "gbe") == 0) snprint(ctlfile, sizeof(ctlfile), "%s/clone", conf.dev); else return; @@ -1583,6 +1585,7 @@ [Vremove] "remove", [Vunbind] "unbind", [Vether] "ether", +[Vgbe] "gbe", [Vloopback] "loopback", }; @@ -1617,7 +1620,7 @@ db = ndbopen(0); if(db == nil) sysfatal("can't open ndb: %r"); - if(strcmp(conf.type, "ether") != 0 || myetheraddr(conf.hwa, conf.dev) != 0) + if((strcmp(conf.type, "ether") != 0 && strcmp(conf.type, "gbe") != 0) || myetheraddr(conf.hwa, conf.dev) != 0) sysfatal("can't read hardware address"); sprint(etheraddr, "%E", conf.hwa); nattr = 0;