Home
last modified time | relevance | path

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

/xnu-8796.121.2/bsd/netinet/
H A Din_mcast.c274 uint16_t oldmax; in imo_grow() local
283 oldmax = imo->imo_max_memberships; in imo_grow()
286 newmax = ((oldmax + 1) * 2) - 1; in imo_grow()
287 } else if (newmax <= oldmax) { in imo_grow()
311 VERIFY(oldmax <= newmax); in imo_grow()
312 memcpy(nmships, omships, oldmax * sizeof(struct in_multi *)); in imo_grow()
313 kfree_type(struct in_multi *, oldmax, omships); in imo_grow()
318 VERIFY(oldmax <= newmax); in imo_grow()
319 memcpy(nmfilters, omfilters, oldmax * sizeof(struct in_mfilter)); in imo_grow()
320 kfree_type(struct in_mfilter, oldmax, omfilters); in imo_grow()
[all …]
/xnu-8796.121.2/tests/
H A Dipsec.m402 unsigned long oldmax;
403 size_t oldmaxsize = sizeof(oldmax);
408 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) {
H A Dpfkey.c1065 unsigned long oldmax; in pfkey_setup_socket() local
1066 size_t oldmaxsize = sizeof(oldmax); in pfkey_setup_socket()
1071 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) { in pfkey_setup_socket()
/xnu-8796.121.2/bsd/netinet6/
H A Din6_mcast.c271 size_t oldmax; in im6o_grow() local
280 oldmax = imo->im6o_max_memberships; in im6o_grow()
281 newmax = ((oldmax + 1) * 2) - 1; in im6o_grow()
287 if ((nmships = krealloc_type(struct in6_multi *, oldmax, newmax, in im6o_grow()
294 if ((nmfilters = krealloc_type(struct in6_mfilter, oldmax, newmax, in im6o_grow()
302 for (idx = oldmax; idx < newmax; idx++) { in im6o_grow()