diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-05-15 00:18:08 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-05-15 00:18:08 +0000 |
commit | fb9b03d7878d7c4820cebdfc605639b669cb370b (patch) | |
tree | 6b012b249e163f27551e70253e38603c21d7c3ae | |
parent | dfca0be219074f8473683256b1b9ca986ec37c43 (diff) |
devip: maintain packet counters for pktmedium
-rw-r--r-- | sys/src/9/ip/pktmedium.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/ip/pktmedium.c b/sys/src/9/ip/pktmedium.c index 633ba66b2..8cabe2715 100644 --- a/sys/src/9/ip/pktmedium.c +++ b/sys/src/9/ip/pktmedium.c @@ -47,6 +47,7 @@ pktunbind(Ipifc*) static void pktbwrite(Ipifc *ifc, Block *bp, int, uchar*, Routehint*) { + ifc->out++; /* enqueue onto the conversation's rq */ if(ifc->conv->snoopers.ref > 0) qpass(ifc->conv->sq, copyblock(bp, BLEN(bp))); @@ -59,6 +60,7 @@ pktbwrite(Ipifc *ifc, Block *bp, int, uchar*, Routehint*) static void pktin(Fs *f, Ipifc *ifc, Block *bp) { + ifc->in++; if(ifc->lifc == nil) freeb(bp); else { |