Changes between Initial Version and Version 1 of Ticket #306


Ignore:
Timestamp:
May 28, 2007 1:00:19 PM (17 years ago)
Author:
bennylp
Comment:

Fixed in r1310.

The fix changes the key structure to:

struct pjsip_transport_key
{
  long          type;
  pj_sockaddr   rem_addr;
};

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #306

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
    • Property Summary changed from Error in SIP transport lookup because of memory alignment problem (thanks Samuel Vinson) to Error in SIP transport lookup because of memory alignment problem on Nintendo DS (thanks Samuel Vinson)
  • Ticket #306 – Description

    initial v1  
    1111This causes a problem when the compiler maps {{{type}}} field to {{{char}}} data type and when the {{{addr}}} field starts at {{{transport_key+4}}}, because there are three unitialized bytes between {{{type}}} and {{{addr}}}. 
    1212 
    13 More over, the key length is calculated as {{{sizeof(key.addr) + addr_len}}}, so this would cause the several bytes of the key to be ignored. 
     13More over, the key length is calculated as {{{sizeof(key.addr) + addr_len}}}, so this would cause several bytes of the key to be ignored. 
     14 
     15Currently this has been reported as a problem on Nintendo DS port only. 
    1416 
    1517Thanks Samuel Vinson <samuelv at users.sourceforge.net> for pointing this out!