Network statistic events

This commit is contained in:
copy 2015-03-03 23:57:40 +01:00
parent ca11136404
commit e338ebd535

View file

@ -151,6 +151,7 @@ function Ne2k(cpu, bus)
var start = this.tpsr << 8;
var data = this.memory.subarray(start, start + this.tcnt);
this.bus.send("net0-send", data);
this.bus.send("eth-transmit-end", [data.length]);
this.do_interrupt(ENISR_TX);
if(this.rcnt === 0)
@ -578,6 +579,8 @@ Ne2k.prototype.receive = function(data)
return;
}
this.bus.send("eth-receive-end", [data.length]);
if(data.length < 60)
{
var old = data;