Move common little-endian and big-endian buffer helpers into tools.c and declare them in net.h. Replace local duplicate implementations in FLAG, FLAGDIR and NDIR with the shared helpers. This keeps the existing packet layouts unchanged while reducing copy/paste code across the DOS utilities. NCOPY and the experimental NCP copy code are intentionally left untouched for now.
11 KiB
11 KiB