Skip to content

Commit 926bbd6

Browse files
committed
netdevs_test: return stats64
1 parent c2d971b commit 926bbd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyplugins/testing/netdevs_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def stats64_handler(self, pt_regs, netdev_ptr, stats64_ptr):
2323
stats64.tx_bytes = 1340
2424
# Just return zeroed stats for now
2525
yield from mem.write_bytes(stats64_ptr, bytes(stats64))
26+
return stats64_ptr
2627

2728
def ioctl_handler(self, pt_regs, netdev_ptr, ifreq_ptr, cmd):
2829
args = yield from plugins.osi.get_args()
@@ -50,6 +51,7 @@ def stats64_handler(self, pt_regs, netdev_ptr, stats64_ptr):
5051
stats64.tx_bytes = 431
5152
# Just return zeroed stats for now
5253
yield from mem.write_bytes(stats64_ptr, bytes(stats64))
54+
return stats64_ptr
5355

5456
def ioctl_handler(self, pt_regs, netdev_ptr, ifreq_ptr, cmd):
5557
args = yield from plugins.osi.get_args()

0 commit comments

Comments
 (0)