| 2926 | |
| 2927 | #ifdef DEBUG |
| 2928 | static void packet_print(const TEXT* string, const UCHAR* packet, int length, ULONG counter) |
| 2929 | { |
| 2930 | /************************************** |
| 2931 | * |
| 2932 | * p a c k e t _ p r i n t |
| 2933 | * |
| 2934 | ************************************** |
| 2935 | * |
| 2936 | * Functional description |
| 2937 | * Print a summary of packet. |
| 2938 | * |
| 2939 | **************************************/ |
| 2940 | int sum = 0; |
| 2941 | for (int l = length; l > 0; --l) |
| 2942 | sum += *packet++; |
| 2943 | |
| 2944 | fprintf(stdout, "%05u: PKT %s\t(%u): length = %4d, checksum = %d\n", |
| 2945 | inet_debug_timer(), string, counter, length, sum); |
| 2946 | fflush(stdout); |
| 2947 | } |
| 2948 | #endif |
| 2949 | |
| 2950 | static bool packet_receive(rem_port* port, UCHAR* buffer, SSHORT buffer_length, SSHORT* length) |
no test coverage detected