Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

#define SU_ADDRLEN ( su   ) 


((su)->su_family == AF_INET                     \
   ? (socklen_t)sizeof((su)->su_sin.sin_addr)         \
   : (socklen_t)sizeof((su)->su_sa.sa_data))
Get length of address field.

The macro SU_ADDRLEN() returns length of the address field (sin_data, sin_addr or sin_addr6, depending on the address family).

Definition at line 405 of file su.h.

Referenced by priv_find_matching_localadress().

Generated by  Doxygen 1.6.0   Back to index