AWW YISS
This commit is contained in:
parent
f539935ba7
commit
cd7ad0e6fc
2 changed files with 49 additions and 0 deletions
43
include/patty/ax25.h
Normal file
43
include/patty/ax25.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
#ifndef _PATTY_AX25_H
|
||||
#define _PATTY_AX25_H
|
||||
|
||||
enum patty_ax25_proto {
|
||||
PATTY_AX25_PROTO_ISO_8208 = 0x01,
|
||||
PATTY_AX25_PROTO_TCP_VJ_COMPR = 0x06,
|
||||
PATTY_AX25_PROTO_TCP_VJ = 0x07,
|
||||
PATTY_AX25_PROTO_FRAGMENT = 0x08,
|
||||
PATTY_AX25_PROTO_TEXNET = 0xc3,
|
||||
PATTY_AX25_PROTO_LQP = 0xc4,
|
||||
PATTY_AX25_PROTO_APPLETALK = 0xca,
|
||||
PATTY_AX25_PROTO_APPLETALK_ARP = 0xcb,
|
||||
PATTY_AX25_PROTO_INET = 0xcc,
|
||||
PATTY_AX25_PROTO_INET_ARP = 0xcd,
|
||||
PATTY_AX25_PROTO_FLEXNET = 0xce,
|
||||
PATTY_AX25_PROTO_NETROM = 0xcf,
|
||||
PATTY_AX25_PROTO_RAW = 0xf0,
|
||||
PATTY_AX25_PROTO_ESCAPE = 0xff
|
||||
};
|
||||
|
||||
typedef struct _patty_ax25_address {
|
||||
char callsign[6];
|
||||
unsigned int extension :1;
|
||||
unsigned int ssid :4;
|
||||
unsigned int reserved :2;
|
||||
unsigned int repeated :1;
|
||||
} patty_ax25_address;
|
||||
|
||||
typedef struct _patty_ax25_control {
|
||||
unsigned int control :1;
|
||||
|
||||
union {
|
||||
|
||||
};
|
||||
} patty_ax25_control;
|
||||
|
||||
typedef struct _patty_ax25_packet {
|
||||
patty_ax25_address dest;
|
||||
patty_ax25_address src;
|
||||
patty_ax25_address hops[8];
|
||||
} patty_ax25_packet;
|
||||
|
||||
#endif /* _PATTY_AX25_H */
|
|
@ -8,6 +8,12 @@
|
|||
#define PATTY_KISS_TFEND 0xdc
|
||||
#define PATTY_KISS_TFESC 0xdd
|
||||
|
||||
#define PATTY_KISS_COMMAND_PORT(cmd) \
|
||||
((cmd & 0xf0) >> 4)
|
||||
|
||||
#define PATTY_KISS_COMMAND(cmd) \
|
||||
(cmd & 0x0f)
|
||||
|
||||
enum patty_kiss_command {
|
||||
PATTY_KISS_DATA = 0x00,
|
||||
PATTY_KISS_TXDELAY = 0x01,
|
||||
|
|
Loading…
Add table
Reference in a new issue