public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* AW: [U-Boot-Users] [PATCH] fix comment in net.c
@ 2005-11-10  8:19 Jonas Mark *
  2005-11-10  8:28 ` Pantelis Antoniou
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Mark * @ 2005-11-10  8:19 UTC (permalink / raw)
  To: u-boot

Good morning Pantelis,

> Ron Alder wrote:
>> This patch fixes a comment in net/net.c
>> 
>> CHANGELOG:
>> * Fix comment in net/net.c
>>  Patch by Ron Alder, 09 Nov 2005
>> 
>> 
>>
------------------------------------------------------------------------
>> 
>> diff --git a/net/net.c b/net/net.c
>> --- a/net/net.c
>> +++ b/net/net.c
>> @@ -829,7 +829,6 @@ static ushort CDP_compute_csum(const uch
}
>>  		if (len) {
>>  			leftover = (signed short)(*(const signed char
*)buff);
>> -			/* * XXX CISCO SUCKS big time! (and blows too)
*/
>>  			result = (result & 0xffff0000) | ((result +
leftover) &
>>  		0x0000ffff);  		} while (result >> 16)
> 
> WTF is this? Politically correct day?

I've been with Motorola and Freescale and indeed political correctness
is
a high value there.

> Since I wrote the comment in question let me elaborate.
> 
> CDP uses the ip checksum algorithm with a twist; for the last
> byte it *sign* extends and sums. Obviously this is is completely
> braindead, and warants the comment and much more :)

I agree with you that removing your comment does not yield any real
benefit -
except maybe for the people working at Cisco. But I guess you agree that
instead of insulting people a comment that elaborates why you were
forced to
do what you did would have been much better.

> Regards
> 
> Pantelis

Regards
Mark

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-10  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-10  8:19 AW: [U-Boot-Users] [PATCH] fix comment in net.c Jonas Mark *
2005-11-10  8:28 ` Pantelis Antoniou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox