Make patty_print_header() use TNC2 format

Make patty_print_header() use TNC2 format for representing source,
destination and repeater addresses
This commit is contained in:
XANTRONIX Development 2020-09-18 14:34:50 -05:00 committed by XANTRONIX Industrial
parent 77bb1bf030
commit 8f01ab1cd4

View file

@ -65,13 +65,13 @@ static int print_frame_addrs(FILE *fh, const patty_ax25_frame *frame) {
fprintf(fh, ">"); fprintf(fh, ">");
for (i=0; i<frame->hops; i++) {
print_addr(fh, &frame->repeaters[i]);
fprintf(fh, ">");
}
print_addr(fh, &frame->dest); print_addr(fh, &frame->dest);
for (i=0; i<frame->hops; i++) {
fprintf(fh, ",");
print_addr(fh, &frame->repeaters[i]);
}
return 0; return 0;
} }