From be35812bb47abefd7eaf3bf8afc0abacda7ebe9b Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 12 Jul 2015 04:34:14 +0000 Subject: [PATCH] Suppose that's for the best --- include/patty/ax25.h | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/include/patty/ax25.h b/include/patty/ax25.h index a19c43f..aa74e4c 100644 --- a/include/patty/ax25.h +++ b/include/patty/ax25.h @@ -29,9 +29,15 @@ typedef struct _patty_ax25_address { #define PATTY_AX25_CONTROL_INFO(c) \ ((c & 0x01) == 0) +#define PATTY_AX25_CONTROL_INFO_RESET(c) \ + (c = 0x00) + #define PATTY_AX25_CONTROL_SUPER(c) \ ((c & 0x03) == 0x01) +#define PATTY_AX25_CONTROL_SUPER_RESET(c) \ + (c = 0x01) + #define PATTY_AX25_CONTROL_SUPER_RR(c) \ ((c & 0x0f) == 0x01) @@ -44,6 +50,9 @@ typedef struct _patty_ax25_address { #define PATTY_AX25_CONTROL_UNNUMBERED(c) \ ((c & 0x03) == 0x03) +#define PATTY_AX25_CONTROL_UNNUMBERED_RESET(c) \ + (c = 0x03) + #define PATTY_AX25_CONTROL_UNNUMBERED_SABM(c) \ (((c & 0xe0) == 0x10) && ((c & 0x0f) == 0x0f)) @@ -125,19 +134,4 @@ typedef struct _patty_ax25_packet { patty_ax25_address hops[8]; } patty_ax25_packet; -typedef struct _patty_ax25_frmr { - unsigned int w :1; - unsigned int x :1; - unsigned int y :1; - unsigned int z :1; - unsigned int reserved0 :4; - - unsigned int reserved1 :1; - unsigned int vs :3; - unsigned int cr :1; - unsigned int vr :3; - - uint8_t control; -} patty_ax25_frmr; - #endif /* _PATTY_AX25_H */