patch-1.3.7 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

diff -u --recursive --new-file v1.3.6/linux/net/netrom/nr_in.c linux/net/netrom/nr_in.c
@@ -58,9 +58,9 @@
 
 		case NR_CONNACK:
 			nr_calculate_rtt(sk);
-			sk->window         = skb->data[37];
-			sk->nr->your_index = skb->data[34];
-			sk->nr->your_id    = skb->data[35];
+			sk->window         = skb->data[5];
+			sk->nr->your_index = skb->data[2];
+			sk->nr->your_id    = skb->data[3];
 			sk->nr->t1timer    = 0;
 			sk->nr->t2timer    = 0;
 			sk->nr->t4timer    = 0;
@@ -135,8 +135,8 @@
 	unsigned short nr, ns;
 	int queued = 0;
 
-	nr = skb->data[18];
-	ns = skb->data[17];
+	nr = skb->data[3];
+	ns = skb->data[2];
 
 	switch (frametype) {
 
@@ -241,7 +241,7 @@
 			do {
 				save_vr = sk->nr->vr;
 				while ((skbn = skb_dequeue(&sk->nr->reseq_queue)) != NULL) {
-					ns = skbn->data[17];
+					ns = skbn->data[2];
 					if (ns == sk->nr->vr) {
 						if (sock_queue_rcv_skb(sk, skbn) == 0) {
 							sk->nr->vr = (sk->nr->vr + 1) % NR_MODULUS;
@@ -293,7 +293,7 @@
 
 	del_timer(&sk->timer);
 
-	frametype = skb->data[19];
+	frametype = skb->data[4];
 
 	switch (sk->nr->state)
 	{

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