kernel: remove Ipifc.mbps, unused.

This commit is contained in:
cinap_lenrek 2017-12-23 02:58:47 +01:00
parent 47f40d8e26
commit 02b6831fa5
3 changed files with 0 additions and 9 deletions

View file

@ -188,13 +188,6 @@ etherbind(Ipifc *ifc, int argc, char **argv)
ptr += 6;
parsemac(ifc->mac, ptr, 6);
ptr = strstr(buf, "mbps: ");
if(ptr){
ptr += 6;
ifc->mbps = atoi(ptr);
} else
ifc->mbps = 100;
/*
* open arp conversation
*/

View file

@ -315,7 +315,6 @@ struct Ipifc
Medium *m; /* Media pointer */
int maxtu; /* Maximum transfer unit */
int mintu; /* Minumum tranfer unit */
int mbps; /* megabits per second */
void *arg; /* medium specific */
int reassemble; /* reassemble IP packets before forwarding */

View file

@ -31,7 +31,6 @@ loopbackbind(Ipifc *ifc, int, char**)
lb->f = ifc->conv->p->f;
lb->q = qopen(1024*1024, Qmsg, nil, nil);
ifc->arg = lb;
ifc->mbps = 1000;
kproc("loopbackread", loopbackread, ifc);