nr_in.c (1d6ae775d7a948c9575658eb41184fd2e506c0df) | nr_in.c (e21ce8c7c013fb223a002c70bb0a547de6c26c12) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright Darryl Miles G7LED (dlm@g7led.demon.co.uk) --- 84 unchanged lines hidden (view full) --- 93 sk->sk_state_change(sk); 94 break; 95 } 96 97 case NR_CONNACK | NR_CHOKE_FLAG: 98 nr_disconnect(sk, ECONNREFUSED); 99 break; 100 | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright Darryl Miles G7LED (dlm@g7led.demon.co.uk) --- 84 unchanged lines hidden (view full) --- 93 sk->sk_state_change(sk); 94 break; 95 } 96 97 case NR_CONNACK | NR_CHOKE_FLAG: 98 nr_disconnect(sk, ECONNREFUSED); 99 break; 100 |
101 case NR_RESET: 102 if (sysctl_netrom_reset_circuit); 103 nr_disconnect(sk, ECONNRESET); 104 break; 105 |
|
101 default: 102 break; 103 } 104 return 0; 105} 106 107/* 108 * State machine for state 2, Awaiting Release State. --- 10 unchanged lines hidden (view full) --- 119 120 case NR_DISCREQ: 121 nr_write_internal(sk, NR_DISCACK); 122 123 case NR_DISCACK: 124 nr_disconnect(sk, 0); 125 break; 126 | 106 default: 107 break; 108 } 109 return 0; 110} 111 112/* 113 * State machine for state 2, Awaiting Release State. --- 10 unchanged lines hidden (view full) --- 124 125 case NR_DISCREQ: 126 nr_write_internal(sk, NR_DISCACK); 127 128 case NR_DISCACK: 129 nr_disconnect(sk, 0); 130 break; 131 |
132 case NR_RESET: 133 if (sysctl_netrom_reset_circuit); 134 nr_disconnect(sk, ECONNRESET); 135 break; 136 |
|
127 default: 128 break; 129 } 130 return 0; 131} 132 133/* 134 * State machine for state 3, Connected State. --- 114 unchanged lines hidden (view full) --- 249 } else { 250 if (!(nrom->condition & NR_COND_ACK_PENDING)) { 251 nrom->condition |= NR_COND_ACK_PENDING; 252 nr_start_t2timer(sk); 253 } 254 } 255 break; 256 | 137 default: 138 break; 139 } 140 return 0; 141} 142 143/* 144 * State machine for state 3, Connected State. --- 114 unchanged lines hidden (view full) --- 259 } else { 260 if (!(nrom->condition & NR_COND_ACK_PENDING)) { 261 nrom->condition |= NR_COND_ACK_PENDING; 262 nr_start_t2timer(sk); 263 } 264 } 265 break; 266 |
267 case NR_RESET: 268 if (sysctl_netrom_reset_circuit); 269 nr_disconnect(sk, ECONNRESET); 270 break; 271 |
|
257 default: 258 break; 259 } 260 return queued; 261} 262 263/* Higher level upcall for a LAPB frame - called with sk locked */ 264int nr_process_rx_frame(struct sock *sk, struct sk_buff *skb) --- 25 unchanged lines hidden --- | 272 default: 273 break; 274 } 275 return queued; 276} 277 278/* Higher level upcall for a LAPB frame - called with sk locked */ 279int nr_process_rx_frame(struct sock *sk, struct sk_buff *skb) --- 25 unchanged lines hidden --- |