Thread (4 messages) 4 messages, 4 authors, 2004-01-19

[2.6.0, pktgen] divide-by-zero

From: Lennert Buytenhek <hidden>
Date: 2003-12-31 11:17:06
Also in: lkml

Hi,

When generating packets with pktgen with count=10, I get a divide-by-zero
oops in inject().

Line 273 in net/core/pktgen.c seems unsafe:
	__u64 pps = (__u32)(info->sofar * 1000) / ((__u32)(total) / 1000);

What if total < 1000 ?


cheers,
Lennert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help