raman325 / ostinato

Automatically exported from code.google.com/p/ostinato
GNU General Public License v3.0
0 stars 0 forks source link

Some ports status is not being updated when many ports are available #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have many ports in the system (I am using TAP interface ports).
2. Run ostinato.
3.

What is the expected output? What do you see instead?

Expected behavior is that all TAP ports shall have correct link-status (for TAP 
interfaces it should be up) and statisics reported. What I see is that only 
some of the ports have the correct link-status / statisics.

What version and revision of the product are you using (available in the
About dialog)? On what operating system?

0.5.1 / build from source code.

Please provide any additional information below.

I tracked this problem to the code that reads the netlink msg. Code first 
calculates the buffer size and then reads the msg. However on some cases it 
does "goto _retry" and reads one more msg. Since on retry the buffer size is 
not being re-calculated the msg is truncated.

The attach patch resolves this issue.

Original issue reported on code.google.com by shlom...@gmail.com on 1 Jan 2013 at 1:05

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by pstav...@gmail.com on 13 Jan 2013 at 5:11

GoogleCodeExporter commented 9 years ago
This issue was closed by revision a95d85838d53.

Original comment by pstav...@gmail.com on 16 Jan 2013 at 4:27