Trifling in things that matter not
This commit is contained in:
parent
548c7149fb
commit
aa8cd2f350
2 changed files with 7 additions and 7 deletions
|
@ -31,13 +31,13 @@ typedef struct _patty_ax25_frame {
|
||||||
|
|
||||||
unsigned int hops;
|
unsigned int hops;
|
||||||
|
|
||||||
|
uint16_t control;
|
||||||
|
uint8_t proto;
|
||||||
|
|
||||||
enum patty_ax25_version version;
|
enum patty_ax25_version version;
|
||||||
enum patty_ax25_frame_type type;
|
enum patty_ax25_frame_type type;
|
||||||
enum patty_ax25_frame_cr cr;
|
enum patty_ax25_frame_cr cr;
|
||||||
|
|
||||||
uint16_t control;
|
|
||||||
uint8_t proto;
|
|
||||||
|
|
||||||
void *info;
|
void *info;
|
||||||
size_t len;
|
size_t len;
|
||||||
} patty_ax25_frame;
|
} patty_ax25_frame;
|
||||||
|
|
|
@ -140,10 +140,6 @@ static ssize_t decode_info(patty_ax25_frame *frame,
|
||||||
|
|
||||||
int info = 0;
|
int info = 0;
|
||||||
|
|
||||||
frame->control = control;
|
|
||||||
|
|
||||||
decoded++;
|
|
||||||
|
|
||||||
if (PATTY_AX25_CONTROL_INFO(control)) {
|
if (PATTY_AX25_CONTROL_INFO(control)) {
|
||||||
frame->type = PATTY_AX25_FRAME_INFO;
|
frame->type = PATTY_AX25_FRAME_INFO;
|
||||||
|
|
||||||
|
@ -164,6 +160,10 @@ static ssize_t decode_info(patty_ax25_frame *frame,
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frame->control = control;
|
||||||
|
|
||||||
|
decoded++;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we've received either an Info or Unnumbered Info frame, then decode
|
* If we've received either an Info or Unnumbered Info frame, then decode
|
||||||
* the Protocol Identifier field, and calculate the location and size of
|
* the Protocol Identifier field, and calculate the location and size of
|
||||||
|
|
Loading…
Add table
Reference in a new issue