/[dynamips]/trunk/utils.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/utils.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.6-RC5/utils.c revision 6 by dpavlin, Sat Oct 6 16:09:07 2007 UTC upstream/dynamips-0.2.7-RC1/utils.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC
# Line 1  Line 1 
1  /*    /*  
2   * Cisco C7200 (Predator) simulation platform.   * Cisco router simulation platform.
3   * Copyright (c) 2005,2006 Christophe Fillot.  All rights reserved.   * Copyright (c) 2005,2006 Christophe Fillot.  All rights reserved.
4   *   *
5   * Utility functions.   * Utility functions.
# Line 441  m_uint16_t nvram_cksum(m_uint16_t *ptr,s Line 441  m_uint16_t nvram_cksum(m_uint16_t *ptr,s
441    
442     return(~sum);     return(~sum);
443  }  }
444    
445    /* Byte-swap a memory block */
446    void mem_bswap32(void *ptr,size_t len)
447    {
448       m_uint32_t *p = ptr;
449       size_t count = len >> 2;
450       int i;
451    
452       for(i=0;i<count;i++,p++)
453          *p = swap32(*p);
454    }

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.26