Home
last modified time | relevance | path

Searched refs:getaddrs (Results 1 – 1 of 1) sorted by relevance

/external/ltp/utils/sctp/lib/
Daddrs.c44 struct sctp_getaddrs *getaddrs = (struct sctp_getaddrs*)malloc(bufsize); in sctp_getaddrs() local
45 if(!getaddrs) in sctp_getaddrs()
52 getaddrs->assoc_id = id; in sctp_getaddrs()
53 err = getsockopt(sd, SOL_SCTP, optname_new, getaddrs, &len); in sctp_getaddrs()
60 free(getaddrs); in sctp_getaddrs()
66 free(getaddrs); in sctp_getaddrs()
70 new_buf = realloc(getaddrs, bufsize+4096); in sctp_getaddrs()
72 free(getaddrs); in sctp_getaddrs()
76 getaddrs = (struct sctp_getaddrs*)new_buf; in sctp_getaddrs()
81 cnt = getaddrs->addr_num; in sctp_getaddrs()
[all …]