Xan needs a break
This commit is contained in:
parent
cd7ad0e6fc
commit
118a87c255
1 changed files with 37 additions and 6 deletions
|
@ -26,13 +26,44 @@ typedef struct _patty_ax25_address {
|
||||||
unsigned int repeated :1;
|
unsigned int repeated :1;
|
||||||
} patty_ax25_address;
|
} patty_ax25_address;
|
||||||
|
|
||||||
typedef struct _patty_ax25_control {
|
#define PATTY_AX25_CONTROL_INFO(c) \
|
||||||
unsigned int control :1;
|
((c & 0x01) == 0)
|
||||||
|
|
||||||
union {
|
#define PATTY_AX25_CONTROL_SUPER(c) \
|
||||||
|
((c & 0x03) == 0x01)
|
||||||
|
|
||||||
};
|
#define PATTY_AX25_CONTROL_UNNUMBERED(c) \
|
||||||
} patty_ax25_control;
|
((c & 0x03) == 0x03)
|
||||||
|
|
||||||
|
#define PATTY_AX25_CONTROL_SEQ_SEND(c) \
|
||||||
|
((c & 0x0e) >> 1)
|
||||||
|
|
||||||
|
#define PATTY_AX25_CONTROL_SEQ_RECV(c) \
|
||||||
|
((c & 0xe0) >> 5)
|
||||||
|
|
||||||
|
#define PATTY_AX25_CONTROL_POLL(c) \
|
||||||
|
((c & 0x10) >> 4)
|
||||||
|
|
||||||
|
typedef struct _patty_ax25_control_info {
|
||||||
|
unsigned int control :1;
|
||||||
|
unsigned int seq_send :3;
|
||||||
|
unsigned int poll :1;
|
||||||
|
unsigned int seq_recv :3;
|
||||||
|
} patty_ax25_control_info;
|
||||||
|
|
||||||
|
typedef struct _patty_ax25_control_super {
|
||||||
|
unsigned int control :2;
|
||||||
|
unsigned int function :2;
|
||||||
|
unsigned int poll :1;
|
||||||
|
unsigned int seq_recv :3;
|
||||||
|
} patty_ax25_control_super;
|
||||||
|
|
||||||
|
typedef struct _patty_ax25_control_unnumbered {
|
||||||
|
unsigned int control :2;
|
||||||
|
unsigned int modifier :2;
|
||||||
|
unsigned int poll :1;
|
||||||
|
unsigned int modifier2 :3;
|
||||||
|
} patty_ax25_control_unnumbered;
|
||||||
|
|
||||||
typedef struct _patty_ax25_packet {
|
typedef struct _patty_ax25_packet {
|
||||||
patty_ax25_address dest;
|
patty_ax25_address dest;
|
||||||
|
|
Loading…
Add table
Reference in a new issue