Show
Ignore:
Timestamp:
06/27/2009 08:36:23 PM (9 months ago)
Author:
BrainSlayer
Message:

check target platform to prevent wrong firmware flashes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ar5315_microredboot/microredboot/ecos/packages/redboot/current/src/net/tftp_client.c

    r12385 r12388  
    223223                                if (ntohs(hdr->th_opcode) == DATA) { 
    224224                                        if (ntohs(hdr->th_block) == 
    225                                             (cyg_uint16) ((tftp_stream.last_good_block + 1) & 0xFFFF)) { 
     225                                            (cyg_uint16) ((tftp_stream. 
     226                                                           last_good_block + 
     227                                                           1) & 0xFFFF)) { 
    226228                                                // Consume this data 
    227229                                                data_len -= 4;  /* Sizeof TFTP header */