Navigation


Changeset 378:41e3c2a3721c in freeDiameter for freeDiameter/tcp.c


Ignore:
Timestamp:
Jul 5, 2010, 4:21:22 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Replaced old mechanism to discover local addresses by a call to getifaddrs, lot cleaner!
Should close #4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freeDiameter/tcp.c

    r258 r378  
    170170}
    171171
    172 
    173 /* Get the local name of a TCP socket -- would be nice if it did not return "0.0.0.0"... */
    174 int fd_tcp_get_local_ep(int sock, sSS * ss, socklen_t *sl)
    175 {
    176         TRACE_ENTRY("%d %p %p", sock, ss, sl);
    177         CHECK_PARAMS( ss && sl );
    178        
    179         *sl = sizeof(sSS);
    180         CHECK_SYS(getsockname(sock, (sSA *)ss, sl));
    181        
    182         return 0;
    183 }
    184 
    185172/* Get the remote name of a TCP socket */
    186173int fd_tcp_get_remote_ep(int sock, sSS * ss, socklen_t *sl)
     
    194181        return 0;
    195182}
     183
Note: See TracChangeset for help on using the changeset viewer.