* Helper function to check if socket is already discovered. * If yes, return positive value. If not, return zero. */
| 728 | * If yes, return positive value. If not, return zero. |
| 729 | */ |
| 730 | int |
| 731 | new_socket_id(unsigned int socket_id) |
| 732 | { |
| 733 | unsigned int i; |
| 734 | |
| 735 | for (i = 0; i < num_sockets; i++) { |
| 736 | if (socket_ids[i] == socket_id) |
| 737 | return 0; |
| 738 | } |
| 739 | return 1; |
| 740 | } |
| 741 | |
| 742 | /* |
| 743 | * Setup default configuration. |
no outgoing calls
no test coverage detected