diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-12-23 02:58:47 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-12-23 02:58:47 +0100 |
commit | 02b6831fa5cb1222e42d548bf9d34aec56a5593e (patch) | |
tree | 3a461385152f9666b23691a5c3b077dc88e2867d /sys/src/9 | |
parent | 47f40d8e261db4db5ce09bf06c45203abc862add (diff) |
kernel: remove Ipifc.mbps, unused.
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/ip/ethermedium.c | 7 | ||||
-rw-r--r-- | sys/src/9/ip/ip.h | 1 | ||||
-rw-r--r-- | sys/src/9/ip/loopbackmedium.c | 1 |
3 files changed, 0 insertions, 9 deletions
diff --git a/sys/src/9/ip/ethermedium.c b/sys/src/9/ip/ethermedium.c index 5853ceec0..346093795 100644 --- a/sys/src/9/ip/ethermedium.c +++ b/sys/src/9/ip/ethermedium.c @@ -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 */ diff --git a/sys/src/9/ip/ip.h b/sys/src/9/ip/ip.h index 73c6a836c..7eb001ba8 100644 --- a/sys/src/9/ip/ip.h +++ b/sys/src/9/ip/ip.h @@ -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 */ diff --git a/sys/src/9/ip/loopbackmedium.c b/sys/src/9/ip/loopbackmedium.c index ec96d7939..38e2fd7ee 100644 --- a/sys/src/9/ip/loopbackmedium.c +++ b/sys/src/9/ip/loopbackmedium.c @@ -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); |