Home
last modified time | relevance | path

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

/external/usrsctp/usrsctplib/netinet/
Dsctp_userspace.c147 DWORD AdapterAddrsSize, Err; in sctp_userspace_get_mtu_from_ifn() local
151 AdapterAddrsSize = 0; in sctp_userspace_get_mtu_from_ifn()
153 if ((Err = GetAdaptersAddresses(AF_UNSPEC, 0, NULL, NULL, &AdapterAddrsSize)) != 0) { in sctp_userspace_get_mtu_from_ifn()
155 …tersAddresses() sizing failed with error code %d, AdapterAddrsSize = %d\n", Err, AdapterAddrsSize); in sctp_userspace_get_mtu_from_ifn()
160 if ((pAdapterAddrs = (PIP_ADAPTER_ADDRESSES) GlobalAlloc(GPTR, AdapterAddrsSize)) == NULL) { in sctp_userspace_get_mtu_from_ifn()
165 …if ((Err = GetAdaptersAddresses(AF_UNSPEC, 0, NULL, pAdapterAddrs, &AdapterAddrsSize)) != ERROR_SU… in sctp_userspace_get_mtu_from_ifn()
Dsctp_bsd_addr.c326 DWORD Err, AdapterAddrsSize; local
332 AdapterAddrsSize = 0;
334 if ((Err = GetAdaptersAddresses(AF_INET, 0, NULL, NULL, &AdapterAddrsSize)) != 0) {
337 SCTP_PRINTF("err = %d; AdapterAddrsSize = %d\n", Err, AdapterAddrsSize);
343 if ((pAdapterAddrs = (PIP_ADAPTER_ADDRESSES) GlobalAlloc(GPTR, AdapterAddrsSize)) == NULL) {
348 …if ((Err = GetAdaptersAddresses(AF_INET, 0, NULL, pAdapterAddrs, &AdapterAddrsSize)) != ERROR_SUCC…
378 AdapterAddrsSize = 0;
380 if ((Err = GetAdaptersAddresses(AF_INET6, 0, NULL, NULL, &AdapterAddrsSize)) != 0) {
383 SCTP_PRINTF("err = %d; AdapterAddrsSize = %d\n", Err, AdapterAddrsSize);
388 if ((pAdapterAddrs = (PIP_ADAPTER_ADDRESSES) GlobalAlloc(GPTR, AdapterAddrsSize)) == NULL) {
[all …]