Home
last modified time | relevance | path

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

/xnu-8020.121.3/bsd/netinet/
H A Din_mcast.c268 imo_grow(struct ip_moptions *imo, uint16_t newmax) in imo_grow() argument
284 if (newmax == 0) { in imo_grow()
285 newmax = ((oldmax + 1) * 2) - 1; in imo_grow()
288 if (newmax > IP_MAX_MEMBERSHIPS) { in imo_grow()
292 if ((nmships = krealloc_type(struct in_multi *, oldmax, newmax, in imo_grow()
299 if ((nmfilters = krealloc_type(struct in_mfilter, oldmax, newmax, in imo_grow()
307 for (idx = oldmax; idx < newmax; idx++) { in imo_grow()
311 imo->imo_max_memberships = newmax; in imo_grow()
/xnu-8020.121.3/bsd/netinet6/
H A Din6_mcast.c277 size_t newmax; in im6o_grow() local
286 newmax = ((oldmax + 1) * 2) - 1; in im6o_grow()
288 if (newmax > IPV6_MAX_MEMBERSHIPS) { in im6o_grow()
292 if ((nmships = krealloc_type(struct in6_multi *, oldmax, newmax, in im6o_grow()
299 if ((nmfilters = krealloc_type(struct in6_mfilter, oldmax, newmax, in im6o_grow()
307 for (idx = oldmax; idx < newmax; idx++) { in im6o_grow()
311 imo->im6o_max_memberships = (u_short)newmax; in im6o_grow()
/xnu-8020.121.3/tests/
H A Dipsec.m404 unsigned long newmax = newbufk * (1024 + 128);
408 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) {
H A Dpfkey.c1056 unsigned long newmax = newbufk * (1024 + 128); in pfkey_setup_socket() local
1060 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) { in pfkey_setup_socket()