[net] remove redundant semicolons
[net test] fix decl. after statement
[net] use only enumerated values for event iteration