Lines Matching refs:getaddrs
44 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()
82 memmove(getaddrs, getaddrs + 1, len); in sctp_getaddrs()
83 *addrs = (struct sockaddr*)getaddrs; in sctp_getaddrs()