patch-1.3.96 linux/net/ax25/ax25_in.c
Next file: linux/net/ax25/ax25_out.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Fri Apr 26 10:42:04 1996
- Orig file:
v1.3.95/linux/net/ax25/ax25_in.c
- Orig date:
Fri Apr 12 15:52:11 1996
diff -u --recursive --new-file v1.3.95/linux/net/ax25/ax25_in.c linux/net/ax25/ax25_in.c
@@ -163,13 +163,14 @@
unsigned char pid;
if (skb == NULL) return 0;
+
+ ax25->idletimer = ax25->idle;
pid = *skb->data;
switch (pid) {
#ifdef CONFIG_NETROM
case AX25_P_NETROM:
- ax25->idletimer = ax25->idle = ax25_dev_get_value(ax25->device, AX25_VALUES_IDLE);
if (ax25_dev_get_value(ax25->device, AX25_VALUES_NETROM)) {
skb_pull(skb, 1); /* Remove PID */
queued = nr_route_frame(skb, ax25);
@@ -178,23 +179,19 @@
#endif
#ifdef CONFIG_INET
case AX25_P_IP:
- ax25->idletimer = ax25->idle = ax25_dev_get_value(ax25->device, AX25_VALUES_IDLE);
skb_pull(skb, 1); /* Remove PID */
skb->h.raw = skb->data;
ax25_ip_mode_set(&ax25->dest_addr, ax25->device, 'V');
ip_rcv(skb, ax25->device, NULL); /* Wrong ptype */
queued = 1;
-
break;
#endif
case AX25_P_SEGMENT:
- ax25->idletimer = ax25->idle = ax25_dev_get_value(ax25->device, AX25_VALUES_IDLE);
skb_pull(skb, 1); /* Remove PID */
queued = ax25_rx_fragment(ax25, skb);
break;
default:
- ax25->idletimer = ax25->idle = 0;
if (ax25->sk != NULL && ax25_dev_get_value(ax25->device, AX25_VALUES_TEXT) && ax25->sk->protocol == pid) {
if (sock_queue_rcv_skb(ax25->sk, skb) == 0) {
queued = 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this