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

#define SU_ADDR (   su )
((su)->su_family == AF_INET ? (void *)&(su)->su_sin.sin_addr : \
  (void *)&(su)->su_sa.sa_data)

Get pointer to address field.

The macro SU_ADDR() returns pointer to the address field (sin_data, sin_addr or sin_addr6, depending on the address family).

Definition at line 386 of file su.h.

Referenced by assign_socket(), forwarder_accept(), forwarder_close(), init_test(), priv_find_matching_localadress(), stun_bind_callback(), stun_keepalive(), stun_test_lifetime(), tport_by_name(), tport_deliver(), and tport_hostport().

Generated by  Doxygen 1.6.0   Back to index