Searched refs:oldmax (Results 1 – 4 of 4) sorted by relevance
| /xnu-12377.61.12/bsd/netinet/ |
| H A D | in_mcast.c | 274 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-12377.61.12/bsd/netinet6/ |
| H A D | in6_mcast.c | 273 uint16_t oldmax; in im6o_grow() local 283 oldmax = imo->im6o_max_memberships; in im6o_grow() 284 newmax = ((oldmax + 1) * 2) - 1; in im6o_grow() 304 VERIFY(oldmax <= newmax); in im6o_grow() 305 memcpy(nmships, omships, oldmax * sizeof(struct in6_multi *)); in im6o_grow() 306 kfree_type(struct in6_multi *, oldmax, omships); in im6o_grow() 311 VERIFY(oldmax <= newmax); in im6o_grow() 312 memcpy(nmfilters, omfilters, oldmax * sizeof(struct in6_mfilter)); in im6o_grow() 313 kfree_type(struct in6_mfilter, oldmax, omfilters); in im6o_grow() 317 for (idx = oldmax; idx < newmax; idx++) { in im6o_grow()
|
| /xnu-12377.61.12/tests/ |
| H A D | ipsec.m | 413 unsigned long oldmax; 414 size_t oldmaxsize = sizeof(oldmax); 417 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) {
|
| H A D | pfkey.c | 46 static unsigned long oldmax; variable 1091 if (oldmax != 0) { in pfkey_cleanup() 1092 (void)sysctlbyname("kern.ipc.maxsockbuf", NULL, NULL, &oldmax, sizeof(oldmax)); in pfkey_cleanup() 1102 size_t oldmaxsize = sizeof(oldmax); in pfkey_setup_socket() 1107 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) { in pfkey_setup_socket()
|