patch-2.1.25 linux/net/netrom/nr_in.c
Next file: linux/net/netrom/nr_out.c
Previous file: linux/net/netrom/nr_dev.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Sun Feb 2 15:18:52 1997
- Orig file:
v2.1.24/linux/net/netrom/nr_in.c
- Orig date:
Thu Jan 23 21:06:58 1997
diff -u --recursive --new-file v2.1.24/linux/net/netrom/nr_in.c linux/net/netrom/nr_in.c
@@ -67,8 +67,6 @@
if ((skbn = alloc_skb(sk->protinfo.nr->fraglen, GFP_ATOMIC)) == NULL)
return 1;
- skbn->arp = 1;
- skb_set_owner_r(skbn, sk);
skbn->h.raw = skbn->data;
skbo = skb_dequeue(&sk->protinfo.nr->frag_queue);
@@ -97,7 +95,6 @@
switch (frametype) {
case NR_CONNACK:
- nr_calculate_rtt(sk);
sk->protinfo.nr->your_index = skb->data[17];
sk->protinfo.nr->your_id = skb->data[18];
sk->protinfo.nr->t1timer = 0;
@@ -311,7 +308,7 @@
int nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
{
int queued = 0, frametype;
-
+
if (sk->protinfo.nr->state == NR_STATE_0)
return 0;
@@ -319,8 +316,7 @@
frametype = skb->data[19];
- switch (sk->protinfo.nr->state)
- {
+ switch (sk->protinfo.nr->state) {
case NR_STATE_1:
queued = nr_state1_machine(sk, skb, frametype);
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov