Searched refs:newmax (Results 1 – 4 of 4) sorted by relevance
| /xnu-10002.1.13/bsd/netinet/ |
| H A D | in_mcast.c | 266 imo_grow(struct ip_moptions *imo, uint16_t newmax) in imo_grow() argument 285 if (newmax == 0) { in imo_grow() 286 newmax = ((oldmax + 1) * 2) - 1; in imo_grow() 287 } else if (newmax <= oldmax) { in imo_grow() 292 if (newmax > IP_MAX_MEMBERSHIPS) { in imo_grow() 297 if ((nmships = kalloc_type(struct in_multi *, newmax, in imo_grow() 303 if ((nmfilters = kalloc_type(struct in_mfilter, newmax, in imo_grow() 311 VERIFY(oldmax <= newmax); in imo_grow() 318 VERIFY(oldmax <= newmax); in imo_grow() 324 for (idx = oldmax; idx < newmax; idx++) { in imo_grow() [all …]
|
| /xnu-10002.1.13/bsd/netinet6/ |
| H A D | in6_mcast.c | 272 size_t newmax; in im6o_grow() local 281 newmax = ((oldmax + 1) * 2) - 1; in im6o_grow() 283 if (newmax > IPV6_MAX_MEMBERSHIPS) { 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() 306 imo->im6o_max_memberships = (u_short)newmax; in im6o_grow()
|
| /xnu-10002.1.13/tests/ |
| H A D | ipsec.m | 415 unsigned long newmax = newbufk * (1024 + mbstat.m_msize / 2); 417 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) {
|
| H A D | pfkey.c | 1071 unsigned long newmax = newbufk * (1024 + 128); in pfkey_setup_socket() local 1075 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) { in pfkey_setup_socket()
|