* Function to set all the node statistic values to zero. * Called at program startup. */
| 202 | * Called at program startup. |
| 203 | */ |
| 204 | static void |
| 205 | clear_stats(void) |
| 206 | { |
| 207 | unsigned int i; |
| 208 | |
| 209 | for (i = 0; i < num_nodes; i++) |
| 210 | nodes[i].stats.rx = nodes[i].stats.rx_drop = 0; |
| 211 | } |
| 212 | |
| 213 | /* |
| 214 | * send a burst of traffic to a node, assuming there are packets |