| 69 | const static int PACKAGE_FIN = 5; |
| 70 | |
| 71 | static const char* packageTypeStr(unsigned char t) { |
| 72 | if (t == PACKAGE_DATA) return "DATA"; |
| 73 | if (t == PACKAGE_ACK) return "ACK"; |
| 74 | if (t == PACKAGE_SYN) return "SYN"; |
| 75 | if (t == PACKAGE_FIN) return "FIN"; |
| 76 | return "ERR_TYPE"; |
| 77 | } |
| 78 | |
| 79 | typedef struct UdpPkg { |
| 80 | uint8_t version; |
nothing calls this directly
no outgoing calls
no test coverage detected