Suppose that's for the best

This commit is contained in:
XANTRONIX Development 2015-07-12 04:34:14 +00:00
parent c05e02e303
commit be35812bb4

View file

@ -29,9 +29,15 @@ typedef struct _patty_ax25_address {
#define PATTY_AX25_CONTROL_INFO(c) \ #define PATTY_AX25_CONTROL_INFO(c) \
((c & 0x01) == 0) ((c & 0x01) == 0)
#define PATTY_AX25_CONTROL_INFO_RESET(c) \
(c = 0x00)
#define PATTY_AX25_CONTROL_SUPER(c) \ #define PATTY_AX25_CONTROL_SUPER(c) \
((c & 0x03) == 0x01) ((c & 0x03) == 0x01)
#define PATTY_AX25_CONTROL_SUPER_RESET(c) \
(c = 0x01)
#define PATTY_AX25_CONTROL_SUPER_RR(c) \ #define PATTY_AX25_CONTROL_SUPER_RR(c) \
((c & 0x0f) == 0x01) ((c & 0x0f) == 0x01)
@ -44,6 +50,9 @@ typedef struct _patty_ax25_address {
#define PATTY_AX25_CONTROL_UNNUMBERED(c) \ #define PATTY_AX25_CONTROL_UNNUMBERED(c) \
((c & 0x03) == 0x03) ((c & 0x03) == 0x03)
#define PATTY_AX25_CONTROL_UNNUMBERED_RESET(c) \
(c = 0x03)
#define PATTY_AX25_CONTROL_UNNUMBERED_SABM(c) \ #define PATTY_AX25_CONTROL_UNNUMBERED_SABM(c) \
(((c & 0xe0) == 0x10) && ((c & 0x0f) == 0x0f)) (((c & 0xe0) == 0x10) && ((c & 0x0f) == 0x0f))
@ -125,19 +134,4 @@ typedef struct _patty_ax25_packet {
patty_ax25_address hops[8]; patty_ax25_address hops[8];
} patty_ax25_packet; } 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 */ #endif /* _PATTY_AX25_H */