#ifndef _ROSE_H
#define _ROSE_H
#include <linux/rose.h>
#include <net/ax25.h>
#include <net/sock.h>
#define ROSE_ADDR_LEN …
#define ROSE_MIN_LEN …
#define ROSE_CALL_REQ_ADDR_LEN_OFF …
#define ROSE_CALL_REQ_ADDR_LEN_VAL …
#define ROSE_CALL_REQ_DEST_ADDR_OFF …
#define ROSE_CALL_REQ_SRC_ADDR_OFF …
#define ROSE_CALL_REQ_FACILITIES_OFF …
#define ROSE_GFI …
#define ROSE_Q_BIT …
#define ROSE_D_BIT …
#define ROSE_M_BIT …
#define ROSE_CALL_REQUEST …
#define ROSE_CALL_ACCEPTED …
#define ROSE_CLEAR_REQUEST …
#define ROSE_CLEAR_CONFIRMATION …
#define ROSE_DATA …
#define ROSE_INTERRUPT …
#define ROSE_INTERRUPT_CONFIRMATION …
#define ROSE_RR …
#define ROSE_RNR …
#define ROSE_REJ …
#define ROSE_RESET_REQUEST …
#define ROSE_RESET_CONFIRMATION …
#define ROSE_REGISTRATION_REQUEST …
#define ROSE_REGISTRATION_CONFIRMATION …
#define ROSE_RESTART_REQUEST …
#define ROSE_RESTART_CONFIRMATION …
#define ROSE_DIAGNOSTIC …
#define ROSE_ILLEGAL …
enum { … };
#define ROSE_DEFAULT_T0 …
#define ROSE_DEFAULT_T1 …
#define ROSE_DEFAULT_T2 …
#define ROSE_DEFAULT_T3 …
#define ROSE_DEFAULT_HB …
#define ROSE_DEFAULT_IDLE …
#define ROSE_DEFAULT_ROUTING …
#define ROSE_DEFAULT_FAIL_TIMEOUT …
#define ROSE_DEFAULT_MAXVC …
#define ROSE_DEFAULT_WINDOW_SIZE …
#define ROSE_MODULUS …
#define ROSE_MAX_PACKET_SIZE …
#define ROSE_COND_ACK_PENDING …
#define ROSE_COND_PEER_RX_BUSY …
#define ROSE_COND_OWN_RX_BUSY …
#define FAC_NATIONAL …
#define FAC_CCITT …
#define FAC_NATIONAL_RAND …
#define FAC_NATIONAL_FLAGS …
#define FAC_NATIONAL_DEST_DIGI …
#define FAC_NATIONAL_SRC_DIGI …
#define FAC_NATIONAL_FAIL_CALL …
#define FAC_NATIONAL_FAIL_ADD …
#define FAC_NATIONAL_DIGIS …
#define FAC_CCITT_DEST_NSAP …
#define FAC_CCITT_SRC_NSAP …
struct rose_neigh { … };
struct rose_node { … };
struct rose_route { … };
struct rose_sock { … };
#define rose_sk(sk) …
extern ax25_address rose_callsign;
extern int sysctl_rose_restart_request_timeout;
extern int sysctl_rose_call_request_timeout;
extern int sysctl_rose_reset_request_timeout;
extern int sysctl_rose_clear_request_timeout;
extern int sysctl_rose_no_activity_timeout;
extern int sysctl_rose_ack_hold_back_timeout;
extern int sysctl_rose_routing_control;
extern int sysctl_rose_link_fail_timeout;
extern int sysctl_rose_maximum_vcs;
extern int sysctl_rose_window_size;
int rosecmp(const rose_address *, const rose_address *);
int rosecmpm(const rose_address *, const rose_address *, unsigned short);
char *rose2asc(char *buf, const rose_address *);
struct sock *rose_find_socket(unsigned int, struct rose_neigh *);
void rose_kill_by_neigh(struct rose_neigh *);
unsigned int rose_new_lci(struct rose_neigh *);
int rose_rx_call_request(struct sk_buff *, struct net_device *,
struct rose_neigh *, unsigned int);
void rose_destroy_socket(struct sock *);
void rose_setup(struct net_device *);
int rose_process_rx_frame(struct sock *, struct sk_buff *);
void rose_start_ftimer(struct rose_neigh *);
void rose_stop_ftimer(struct rose_neigh *);
void rose_stop_t0timer(struct rose_neigh *);
int rose_ftimer_running(struct rose_neigh *);
void rose_link_rx_restart(struct sk_buff *, struct rose_neigh *,
unsigned short);
void rose_transmit_clear_request(struct rose_neigh *, unsigned int,
unsigned char, unsigned char);
void rose_transmit_link(struct sk_buff *, struct rose_neigh *);
void rose_loopback_init(void);
void rose_loopback_clear(void);
int rose_loopback_queue(struct sk_buff *, struct rose_neigh *);
void rose_kick(struct sock *);
void rose_enquiry_response(struct sock *);
extern struct rose_neigh *rose_loopback_neigh;
extern const struct seq_operations rose_neigh_seqops;
extern const struct seq_operations rose_node_seqops;
extern struct seq_operations rose_route_seqops;
void rose_add_loopback_neigh(void);
int __must_check rose_add_loopback_node(const rose_address *);
void rose_del_loopback_node(const rose_address *);
void rose_rt_device_down(struct net_device *);
void rose_link_device_down(struct net_device *);
struct net_device *rose_dev_first(void);
struct net_device *rose_dev_get(rose_address *);
struct rose_route *rose_route_free_lci(unsigned int, struct rose_neigh *);
struct rose_neigh *rose_get_neigh(rose_address *, unsigned char *,
unsigned char *, int);
int rose_rt_ioctl(unsigned int, void __user *);
void rose_link_failed(ax25_cb *, int);
int rose_route_frame(struct sk_buff *, ax25_cb *);
void rose_rt_free(void);
void rose_clear_queues(struct sock *);
void rose_frames_acked(struct sock *, unsigned short);
void rose_requeue_frames(struct sock *);
int rose_validate_nr(struct sock *, unsigned short);
void rose_write_internal(struct sock *, int);
int rose_decode(struct sk_buff *, int *, int *, int *, int *, int *);
int rose_parse_facilities(unsigned char *, unsigned int,
struct rose_facilities_struct *);
void rose_disconnect(struct sock *, int, int, int);
void rose_start_heartbeat(struct sock *);
void rose_start_t1timer(struct sock *);
void rose_start_t2timer(struct sock *);
void rose_start_t3timer(struct sock *);
void rose_start_hbtimer(struct sock *);
void rose_start_idletimer(struct sock *);
void rose_stop_heartbeat(struct sock *);
void rose_stop_timer(struct sock *);
void rose_stop_idletimer(struct sock *);
void rose_register_sysctl(void);
void rose_unregister_sysctl(void);
#endif