Changeset 3741 for pjproject


Ignore:
Timestamp:
Aug 30, 2011 1:45:07 AM (13 years ago)
Author:
bennylp
Message:

Configurable pj_sockaddr_in padding/sin_zero length. This closes #1359

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjlib/include/pj/sock.h

    r3553 r3741  
    494494#define PJ_INET6_ADDRSTRLEN     46 
    495495 
     496/** 
     497 * The size of sin_zero field in pj_sockaddr_in structure. Most OSes 
     498 * use 8, but others such as the BSD TCP/IP stack in eCos uses 24. 
     499 */ 
     500#ifndef PJ_SOCKADDR_IN_SIN_ZERO_LEN 
     501#   define PJ_SOCKADDR_IN_SIN_ZERO_LEN  8 
     502#endif 
    496503 
    497504/** 
     
    513520    pj_uint16_t sin_port;       /**< Transport layer port number.   */ 
    514521    pj_in_addr  sin_addr;       /**< IP address.                    */ 
    515     char        sin_zero[8];    /**< Padding.                       */ 
     522    char        sin_zero[PJ_SOCKADDR_IN_SIN_ZERO_LEN]; /**< Padding.*/ 
    516523}; 
    517524 
Note: See TracChangeset for help on using the changeset viewer.