| 403 | } |
| 404 | |
| 405 | TimeoutEvent* getWindowBySeq(TimeoutEvent *window, uint32_t seq) { |
| 406 | for (uint32_t i = 0; i < CONST_WINDOW; i++) { |
| 407 | if (window[i].udpPkg && window[i].udpPkg->seq == seq) { |
| 408 | return &window[i]; |
| 409 | } |
| 410 | } |
| 411 | return NULL; |
| 412 | } |
| 413 | |
| 414 | TimeoutEvent* checkEmptyWindow(TimeoutEvent *window, int expectSeq) { |
| 415 | uint32_t minSeq = INT_MAX; |
nothing calls this directly
no outgoing calls
no test coverage detected