Skip to content

Commit

Permalink
re-parse ax25 header for pretty-printing by print_path before sending
Browse files Browse the repository at this point in the history
  • Loading branch information
iddq committed Dec 17, 2019
1 parent f88692c commit 1781e50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion axdigi2018.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,9 @@ int main(int argc, char *argv[])

outIfIndex = digipeat(buf+1, &ax25header, saddr_ll.sll_ifindex);

if (outIfIndex >= 0)
if (outIfIndex > 0)
{
parse_ax25_header(buf+1, size-1, &ax25header); // re-parse packet header
print_path(&ax25header);
saddr_ll.sll_ifindex = outIfIndex;
if (sendto(skt, buf, size, 0, (struct sockaddr *)&saddr_ll, sizeof(saddr_ll)) == -1)
Expand Down

0 comments on commit 1781e50

Please sign in to comment.