[Linux-decnet-commit] CVS: dnprogs/dnroute send_route.c,1.9,1.10
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Patrick C. <pa...@us...> - 2006-04-27 09:00:18
|
Update of /cvsroot/linux-decnet/dnprogs/dnroute In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5807 Modified Files: send_route.c Log Message: get hops & cost in the right bits of a routing message Index: send_route.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dnroute/send_route.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** send_route.c 6 Apr 2006 12:46:25 -0000 1.9 --- send_route.c 27 Apr 2006 09:00:13 -0000 1.10 *************** *** 82,87 **** if (node_table[j].valid) { ! packet[i++] = node_table[j].cost; /* cost can use the low bit of the next byte... */ ! packet[i++] = (node_table[j].hops << 1) | ((node_table[j].cost>>8) & 1); /* hops - starting bit 1 */ } else --- 82,87 ---- if (node_table[j].valid) { ! packet[i++] = node_table[j].cost; /* cost can use the low 2 bit of the next byte... */ ! packet[i++] = (node_table[j].hops << 2) | ((node_table[j].cost>>8) & 3); /* hops - starting bit 2 */ } else |