Skip to content
Snippets Groups Projects
Commit 50754bf5 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Differentiate between type 2+ (FSC-48) and 2e (FSC-39) packets

Using the same logic that SBBSecho uses to decide if a packet header is in
fact 2+ (the auxNet field must be non-zero), otherwise, type reported is 2e.
parent 4f9a8b20
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -116,7 +116,8 @@ int pktdump(FILE* fp, const char* fname, FILE* good, FILE* bad)
if(pkthdr.type2plus.cword==BYTE_SWAP_16(pkthdr.type2plus.cwcopy) /* 2+ Packet Header */
&& pkthdr.type2plus.cword&1) {
fprintf(stdout,"2+ (prod: %02X%02X, rev: %u.%u)"
fprintf(stdout,"2%c (prod: %02X%02X, rev: %u.%u)"
,pkthdr.type2plus.auxnet == 0 ? 'e' : '+'
,pkthdr.type2plus.prodcodeHi ,pkthdr.type2plus.prodcodeLo
,pkthdr.type2plus.prodrevMajor ,pkthdr.type2plus.prodrevMinor);
dest.point=pkthdr.type2plus.destpoint;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment