#ifndef _X25_H
#define _X25_H
#include <linux/x25.h>
#include <linux/slab.h>
#include <linux/refcount.h>
#include <net/sock.h>
#define X25_ADDR_LEN …
#define X25_MAX_L2_LEN …
#define X25_STD_MIN_LEN …
#define X25_EXT_MIN_LEN …
#define X25_GFI_SEQ_MASK …
#define X25_GFI_STDSEQ …
#define X25_GFI_EXTSEQ …
#define X25_Q_BIT …
#define X25_D_BIT …
#define X25_STD_M_BIT …
#define X25_EXT_M_BIT …
#define X25_CALL_REQUEST …
#define X25_CALL_ACCEPTED …
#define X25_CLEAR_REQUEST …
#define X25_CLEAR_CONFIRMATION …
#define X25_DATA …
#define X25_INTERRUPT …
#define X25_INTERRUPT_CONFIRMATION …
#define X25_RR …
#define X25_RNR …
#define X25_REJ …
#define X25_RESET_REQUEST …
#define X25_RESET_CONFIRMATION …
#define X25_REGISTRATION_REQUEST …
#define X25_REGISTRATION_CONFIRMATION …
#define X25_RESTART_REQUEST …
#define X25_RESTART_CONFIRMATION …
#define X25_DIAGNOSTIC …
#define X25_ILLEGAL …
#define X25_COND_ACK_PENDING …
#define X25_COND_OWN_RX_BUSY …
#define X25_COND_PEER_RX_BUSY …
enum { … };
enum { … };
#define X25_DEFAULT_T20 …
#define X25_DEFAULT_T21 …
#define X25_DEFAULT_T22 …
#define X25_DEFAULT_T23 …
#define X25_DEFAULT_T2 …
#define X25_DEFAULT_WINDOW_SIZE …
#define X25_DEFAULT_PACKET_SIZE …
#define X25_DEFAULT_THROUGHPUT …
#define X25_DEFAULT_REVERSE …
#define X25_SMODULUS …
#define X25_EMODULUS …
#define X25_FAC_CLASS_MASK …
#define X25_FAC_CLASS_A …
#define X25_FAC_CLASS_B …
#define X25_FAC_CLASS_C …
#define X25_FAC_CLASS_D …
#define X25_FAC_REVERSE …
#define X25_FAC_THROUGHPUT …
#define X25_FAC_PACKET_SIZE …
#define X25_FAC_WINDOW_SIZE …
#define X25_MAX_FAC_LEN …
#define X25_MAX_CUD_LEN …
#define X25_FAC_CALLING_AE …
#define X25_FAC_CALLED_AE …
#define X25_MARKER …
#define X25_DTE_SERVICES …
#define X25_MAX_AE_LEN …
#define X25_MAX_DTE_FACIL_LEN …
#define X25_Q_BIT_FLAG …
#define X25_INTERRUPT_FLAG …
#define X25_ACCPT_APPRV_FLAG …
struct x25_route { … };
struct x25_neigh { … };
struct x25_sock { … };
struct x25_forward { … };
#define x25_sk(ptr) …
extern int sysctl_x25_restart_request_timeout;
extern int sysctl_x25_call_request_timeout;
extern int sysctl_x25_reset_request_timeout;
extern int sysctl_x25_clear_request_timeout;
extern int sysctl_x25_ack_holdback_timeout;
extern int sysctl_x25_forward;
int x25_parse_address_block(struct sk_buff *skb,
struct x25_address *called_addr,
struct x25_address *calling_addr);
int x25_addr_ntoa(unsigned char *, struct x25_address *, struct x25_address *);
int x25_addr_aton(unsigned char *, struct x25_address *, struct x25_address *);
struct sock *x25_find_socket(unsigned int, struct x25_neigh *);
void x25_destroy_socket_from_timer(struct sock *);
int x25_rx_call_request(struct sk_buff *, struct x25_neigh *, unsigned int);
void x25_kill_by_neigh(struct x25_neigh *);
void x25_send_frame(struct sk_buff *, struct x25_neigh *);
int x25_lapb_receive_frame(struct sk_buff *, struct net_device *,
struct packet_type *, struct net_device *);
void x25_establish_link(struct x25_neigh *);
void x25_terminate_link(struct x25_neigh *);
int x25_parse_facilities(struct sk_buff *, struct x25_facilities *,
struct x25_dte_facilities *, unsigned long *);
int x25_create_facilities(unsigned char *, struct x25_facilities *,
struct x25_dte_facilities *, unsigned long);
int x25_negotiate_facilities(struct sk_buff *, struct sock *,
struct x25_facilities *,
struct x25_dte_facilities *);
void x25_limit_facilities(struct x25_facilities *, struct x25_neigh *);
void x25_clear_forward_by_lci(unsigned int lci);
void x25_clear_forward_by_dev(struct net_device *);
int x25_forward_data(int, struct x25_neigh *, struct sk_buff *);
int x25_forward_call(struct x25_address *, struct x25_neigh *, struct sk_buff *,
int);
int x25_process_rx_frame(struct sock *, struct sk_buff *);
int x25_backlog_rcv(struct sock *, struct sk_buff *);
void x25_link_control(struct sk_buff *, struct x25_neigh *, unsigned short);
void x25_link_device_up(struct net_device *);
void x25_link_device_down(struct net_device *);
void x25_link_established(struct x25_neigh *);
void x25_link_terminated(struct x25_neigh *);
void x25_transmit_clear_request(struct x25_neigh *, unsigned int,
unsigned char);
void x25_transmit_link(struct sk_buff *, struct x25_neigh *);
int x25_subscr_ioctl(unsigned int, void __user *);
struct x25_neigh *x25_get_neigh(struct net_device *);
void x25_link_free(void);
static __inline__ void x25_neigh_hold(struct x25_neigh *nb)
{ … }
static __inline__ void x25_neigh_put(struct x25_neigh *nb)
{ … }
int x25_output(struct sock *, struct sk_buff *);
void x25_kick(struct sock *);
void x25_enquiry_response(struct sock *);
struct x25_route *x25_get_route(struct x25_address *addr);
struct net_device *x25_dev_get(char *);
void x25_route_device_down(struct net_device *dev);
int x25_route_ioctl(unsigned int, void __user *);
void x25_route_free(void);
static __inline__ void x25_route_hold(struct x25_route *rt)
{ … }
static __inline__ void x25_route_put(struct x25_route *rt)
{ … }
void x25_clear_queues(struct sock *);
void x25_frames_acked(struct sock *, unsigned short);
void x25_requeue_frames(struct sock *);
int x25_validate_nr(struct sock *, unsigned short);
void x25_write_internal(struct sock *, int);
int x25_decode(struct sock *, struct sk_buff *, int *, int *, int *, int *,
int *);
void x25_disconnect(struct sock *, int, unsigned char, unsigned char);
void x25_init_timers(struct sock *sk);
void x25_start_heartbeat(struct sock *);
void x25_start_t2timer(struct sock *);
void x25_start_t21timer(struct sock *);
void x25_start_t22timer(struct sock *);
void x25_start_t23timer(struct sock *);
void x25_stop_heartbeat(struct sock *);
void x25_stop_timer(struct sock *);
unsigned long x25_display_timer(struct sock *);
void x25_check_rbuf(struct sock *);
#ifdef CONFIG_SYSCTL
int x25_register_sysctl(void);
void x25_unregister_sysctl(void);
#else
static inline int x25_register_sysctl(void) { return 0; };
static inline void x25_unregister_sysctl(void) {};
#endif
struct x25_skb_cb { … };
#define X25_SKB_CB(s) …
extern struct hlist_head x25_list;
extern rwlock_t x25_list_lock;
extern struct list_head x25_route_list;
extern rwlock_t x25_route_list_lock;
extern struct list_head x25_forward_list;
extern rwlock_t x25_forward_list_lock;
extern struct list_head x25_neigh_list;
extern rwlock_t x25_neigh_list_lock;
int x25_proc_init(void);
void x25_proc_exit(void);
#endif