All pastes #28185 Raw Edit

Untitled

public text v1 · immutable
#28185 ·published 2005-11-10 00:51 UTC
rendered paste body
[-- Attachment #1 --]                                                                                                                                                    
[-- Type: text/plain, Encoding: 7bit, Size: 0.1K --]                                                                                                                     
                                                                                                                                                                         
This patch fixes a comment in net/net.c                                                                                                                                  
                                                                                                                                                                         
CHANGELOG:                                                                                                                                                               
* Fix comment in net/net.c                                                                                                                                               
 Patch by Ron Alder, 09 Nov 2005                                                                                                                                         
                                                                                                                                                                         
                                                                                                                                                                         
[-- Attachment #2: netcomment.patch --]                                                                                                                                  
[-- Type: text/x-patch, Encoding: 7bit, Size: 0.4K --]                                                                                                                   
                                                                                                                                                                         
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)