[Rstplib-users] rstplib bug
Status: Alpha
Brought to you by:
ralex
From: Yakov S. <yak...@fo...> - 2013-12-26 06:44:42
|
Hi, I am starting evaluate rtsplib and think that I found a bug in stp_cli.c in function show_rstp_port(). In the line 198 you can find follow loop: * for (port_index = 0; port_index <= NUMBER_OF_PORTS; port_index++) {* * if (! BitmapGetBit(ports_bitmap, port_index - 1)) continue;* * uid_port.port_no = port_index;* *...* For may opinion the *port_index *should start from 1, otherwise we have problem in BitmapGetBit() macro. BR, Yakov |