netrom.h (bf61c8840efe60fd8f91446860b63338fb424158) | netrom.h (96496127fe2f37c3670facfdbcc5cc51460c439c) |
---|---|
1/* 2 * Declarations of NET/ROM type objects. 3 * 4 * Jonathan Naylor G4KLX 9/4/95 5 */ 6 7#ifndef _NETROM_H 8#define _NETROM_H --- 169 unchanged lines hidden (view full) --- 178extern int sysctl_netrom_transport_acknowledge_delay; 179extern int sysctl_netrom_transport_busy_delay; 180extern int sysctl_netrom_transport_requested_window_size; 181extern int sysctl_netrom_transport_no_activity_timeout; 182extern int sysctl_netrom_routing_control; 183extern int sysctl_netrom_link_fails_count; 184extern int sysctl_netrom_reset_circuit; 185 | 1/* 2 * Declarations of NET/ROM type objects. 3 * 4 * Jonathan Naylor G4KLX 9/4/95 5 */ 6 7#ifndef _NETROM_H 8#define _NETROM_H --- 169 unchanged lines hidden (view full) --- 178extern int sysctl_netrom_transport_acknowledge_delay; 179extern int sysctl_netrom_transport_busy_delay; 180extern int sysctl_netrom_transport_requested_window_size; 181extern int sysctl_netrom_transport_no_activity_timeout; 182extern int sysctl_netrom_routing_control; 183extern int sysctl_netrom_link_fails_count; 184extern int sysctl_netrom_reset_circuit; 185 |
186extern int nr_rx_frame(struct sk_buff *, struct net_device *); 187extern void nr_destroy_socket(struct sock *); | 186int nr_rx_frame(struct sk_buff *, struct net_device *); 187void nr_destroy_socket(struct sock *); |
188 189/* nr_dev.c */ | 188 189/* nr_dev.c */ |
190extern int nr_rx_ip(struct sk_buff *, struct net_device *); 191extern void nr_setup(struct net_device *); | 190int nr_rx_ip(struct sk_buff *, struct net_device *); 191void nr_setup(struct net_device *); |
192 193/* nr_in.c */ | 192 193/* nr_in.c */ |
194extern int nr_process_rx_frame(struct sock *, struct sk_buff *); | 194int nr_process_rx_frame(struct sock *, struct sk_buff *); |
195 196/* nr_loopback.c */ | 195 196/* nr_loopback.c */ |
197extern void nr_loopback_init(void); 198extern void nr_loopback_clear(void); 199extern int nr_loopback_queue(struct sk_buff *); | 197void nr_loopback_init(void); 198void nr_loopback_clear(void); 199int nr_loopback_queue(struct sk_buff *); |
200 201/* nr_out.c */ | 200 201/* nr_out.c */ |
202extern void nr_output(struct sock *, struct sk_buff *); 203extern void nr_send_nak_frame(struct sock *); 204extern void nr_kick(struct sock *); 205extern void nr_transmit_buffer(struct sock *, struct sk_buff *); 206extern void nr_establish_data_link(struct sock *); 207extern void nr_enquiry_response(struct sock *); 208extern void nr_check_iframes_acked(struct sock *, unsigned short); | 202void nr_output(struct sock *, struct sk_buff *); 203void nr_send_nak_frame(struct sock *); 204void nr_kick(struct sock *); 205void nr_transmit_buffer(struct sock *, struct sk_buff *); 206void nr_establish_data_link(struct sock *); 207void nr_enquiry_response(struct sock *); 208void nr_check_iframes_acked(struct sock *, unsigned short); |
209 210/* nr_route.c */ | 209 210/* nr_route.c */ |
211extern void nr_rt_device_down(struct net_device *); 212extern struct net_device *nr_dev_first(void); 213extern struct net_device *nr_dev_get(ax25_address *); 214extern int nr_rt_ioctl(unsigned int, void __user *); 215extern void nr_link_failed(ax25_cb *, int); 216extern int nr_route_frame(struct sk_buff *, ax25_cb *); | 211void nr_rt_device_down(struct net_device *); 212struct net_device *nr_dev_first(void); 213struct net_device *nr_dev_get(ax25_address *); 214int nr_rt_ioctl(unsigned int, void __user *); 215void nr_link_failed(ax25_cb *, int); 216int nr_route_frame(struct sk_buff *, ax25_cb *); |
217extern const struct file_operations nr_nodes_fops; 218extern const struct file_operations nr_neigh_fops; | 217extern const struct file_operations nr_nodes_fops; 218extern const struct file_operations nr_neigh_fops; |
219extern void nr_rt_free(void); | 219void nr_rt_free(void); |
220 221/* nr_subr.c */ | 220 221/* nr_subr.c */ |
222extern void nr_clear_queues(struct sock *); 223extern void nr_frames_acked(struct sock *, unsigned short); 224extern void nr_requeue_frames(struct sock *); 225extern int nr_validate_nr(struct sock *, unsigned short); 226extern int nr_in_rx_window(struct sock *, unsigned short); 227extern void nr_write_internal(struct sock *, int); | 222void nr_clear_queues(struct sock *); 223void nr_frames_acked(struct sock *, unsigned short); 224void nr_requeue_frames(struct sock *); 225int nr_validate_nr(struct sock *, unsigned short); 226int nr_in_rx_window(struct sock *, unsigned short); 227void nr_write_internal(struct sock *, int); |
228 | 228 |
229extern void __nr_transmit_reply(struct sk_buff *skb, int mine, 230 unsigned char cmdflags); | 229void __nr_transmit_reply(struct sk_buff *skb, int mine, unsigned char cmdflags); |
231 232/* 233 * This routine is called when a Connect Acknowledge with the Choke Flag 234 * set is needed to refuse a connection. 235 */ 236#define nr_transmit_refusal(skb, mine) \ 237do { \ 238 __nr_transmit_reply((skb), (mine), NR_CONNACK | NR_CHOKE_FLAG); \ 239} while (0) 240 241/* 242 * This routine is called when we don't have a circuit matching an incoming 243 * NET/ROM packet. This is an G8PZT Xrouter extension. 244 */ 245#define nr_transmit_reset(skb, mine) \ 246do { \ 247 __nr_transmit_reply((skb), (mine), NR_RESET); \ 248} while (0) 249 | 230 231/* 232 * This routine is called when a Connect Acknowledge with the Choke Flag 233 * set is needed to refuse a connection. 234 */ 235#define nr_transmit_refusal(skb, mine) \ 236do { \ 237 __nr_transmit_reply((skb), (mine), NR_CONNACK | NR_CHOKE_FLAG); \ 238} while (0) 239 240/* 241 * This routine is called when we don't have a circuit matching an incoming 242 * NET/ROM packet. This is an G8PZT Xrouter extension. 243 */ 244#define nr_transmit_reset(skb, mine) \ 245do { \ 246 __nr_transmit_reply((skb), (mine), NR_RESET); \ 247} while (0) 248 |
250extern void nr_disconnect(struct sock *, int); | 249void nr_disconnect(struct sock *, int); |
251 252/* nr_timer.c */ | 250 251/* nr_timer.c */ |
253extern void nr_init_timers(struct sock *sk); 254extern void nr_start_heartbeat(struct sock *); 255extern void nr_start_t1timer(struct sock *); 256extern void nr_start_t2timer(struct sock *); 257extern void nr_start_t4timer(struct sock *); 258extern void nr_start_idletimer(struct sock *); 259extern void nr_stop_heartbeat(struct sock *); 260extern void nr_stop_t1timer(struct sock *); 261extern void nr_stop_t2timer(struct sock *); 262extern void nr_stop_t4timer(struct sock *); 263extern void nr_stop_idletimer(struct sock *); 264extern int nr_t1timer_running(struct sock *); | 252void nr_init_timers(struct sock *sk); 253void nr_start_heartbeat(struct sock *); 254void nr_start_t1timer(struct sock *); 255void nr_start_t2timer(struct sock *); 256void nr_start_t4timer(struct sock *); 257void nr_start_idletimer(struct sock *); 258void nr_stop_heartbeat(struct sock *); 259void nr_stop_t1timer(struct sock *); 260void nr_stop_t2timer(struct sock *); 261void nr_stop_t4timer(struct sock *); 262void nr_stop_idletimer(struct sock *); 263int nr_t1timer_running(struct sock *); |
265 266/* sysctl_net_netrom.c */ | 264 265/* sysctl_net_netrom.c */ |
267extern void nr_register_sysctl(void); 268extern void nr_unregister_sysctl(void); | 266void nr_register_sysctl(void); 267void nr_unregister_sysctl(void); |
269 270#endif | 268 269#endif |