diff options
Diffstat (limited to 'include/net/ax25.h')
-rw-r--r-- | include/net/ax25.h | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 364b046e9f47..9dbcd9e51c00 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
@@ -26,11 +26,20 @@ | |||
26 | 26 | ||
27 | /* AX.25 Protocol IDs */ | 27 | /* AX.25 Protocol IDs */ |
28 | #define AX25_P_ROSE 0x01 | 28 | #define AX25_P_ROSE 0x01 |
29 | #define AX25_P_IP 0xCC | 29 | #define AX25_P_VJCOMP 0x06 /* Compressed TCP/IP packet */ |
30 | #define AX25_P_ARP 0xCD | 30 | /* Van Jacobsen (RFC 1144) */ |
31 | #define AX25_P_TEXT 0xF0 | 31 | #define AX25_P_VJUNCOMP 0x07 /* Uncompressed TCP/IP packet */ |
32 | #define AX25_P_NETROM 0xCF | 32 | /* Van Jacobsen (RFC 1144) */ |
33 | #define AX25_P_SEGMENT 0x08 | 33 | #define AX25_P_SEGMENT 0x08 /* Segmentation fragment */ |
34 | #define AX25_P_TEXNET 0xc3 /* TEXTNET datagram protocol */ | ||
35 | #define AX25_P_LQ 0xc4 /* Link Quality Protocol */ | ||
36 | #define AX25_P_ATALK 0xca /* Appletalk */ | ||
37 | #define AX25_P_ATALK_ARP 0xcb /* Appletalk ARP */ | ||
38 | #define AX25_P_IP 0xcc /* ARPA Internet Protocol */ | ||
39 | #define AX25_P_ARP 0xcd /* ARPA Adress Resolution */ | ||
40 | #define AX25_P_FLEXNET 0xce /* FlexNet */ | ||
41 | #define AX25_P_NETROM 0xcf /* NET/ROM */ | ||
42 | #define AX25_P_TEXT 0xF0 /* No layer 3 protocol impl. */ | ||
34 | 43 | ||
35 | /* AX.25 Segment control values */ | 44 | /* AX.25 Segment control values */ |
36 | #define AX25_SEG_REM 0x7F | 45 | #define AX25_SEG_REM 0x7F |
@@ -88,11 +97,11 @@ | |||
88 | /* Define Link State constants. */ | 97 | /* Define Link State constants. */ |
89 | 98 | ||
90 | enum { | 99 | enum { |
91 | AX25_STATE_0, | 100 | AX25_STATE_0, /* Listening */ |
92 | AX25_STATE_1, | 101 | AX25_STATE_1, /* SABM sent */ |
93 | AX25_STATE_2, | 102 | AX25_STATE_2, /* DISC sent */ |
94 | AX25_STATE_3, | 103 | AX25_STATE_3, /* Established */ |
95 | AX25_STATE_4 | 104 | AX25_STATE_4 /* Recovery */ |
96 | }; | 105 | }; |
97 | 106 | ||
98 | #define AX25_MODULUS 8 /* Standard AX.25 modulus */ | 107 | #define AX25_MODULUS 8 /* Standard AX.25 modulus */ |
@@ -258,7 +267,7 @@ extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *); | |||
258 | /* ax25_addr.c */ | 267 | /* ax25_addr.c */ |
259 | extern ax25_address null_ax25_address; | 268 | extern ax25_address null_ax25_address; |
260 | extern char *ax2asc(char *buf, ax25_address *); | 269 | extern char *ax2asc(char *buf, ax25_address *); |
261 | extern ax25_address *asc2ax(char *); | 270 | extern void asc2ax(ax25_address *addr, char *callsign); |
262 | extern int ax25cmp(ax25_address *, ax25_address *); | 271 | extern int ax25cmp(ax25_address *, ax25_address *); |
263 | extern int ax25digicmp(ax25_digi *, ax25_digi *); | 272 | extern int ax25digicmp(ax25_digi *, ax25_digi *); |
264 | extern unsigned char *ax25_addr_parse(unsigned char *, int, ax25_address *, ax25_address *, ax25_digi *, int *, int *); | 273 | extern unsigned char *ax25_addr_parse(unsigned char *, int, ax25_address *, ax25_address *, ax25_digi *, int *, int *); |
@@ -319,7 +328,7 @@ extern int ax25_rx_iframe(ax25_cb *, struct sk_buff *); | |||
319 | extern int ax25_kiss_rcv(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *); | 328 | extern int ax25_kiss_rcv(struct sk_buff *, struct net_device *, struct packet_type *, struct net_device *); |
320 | 329 | ||
321 | /* ax25_ip.c */ | 330 | /* ax25_ip.c */ |
322 | extern int ax25_encapsulate(struct sk_buff *, struct net_device *, unsigned short, void *, void *, unsigned int); | 331 | extern int ax25_hard_header(struct sk_buff *, struct net_device *, unsigned short, void *, void *, unsigned int); |
323 | extern int ax25_rebuild_header(struct sk_buff *); | 332 | extern int ax25_rebuild_header(struct sk_buff *); |
324 | 333 | ||
325 | /* ax25_out.c */ | 334 | /* ax25_out.c */ |