Home
last modified time | relevance | path

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

/xnu-8019.80.24/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()
293 sizeof(struct in_multi *) * newmax, M_IPMOPTS, in imo_grow()
301 sizeof(struct in_mfilter) * newmax, M_INMFILTER, in imo_grow()
309 for (idx = oldmax; idx < newmax; idx++) { in imo_grow()
313 imo->imo_max_memberships = newmax; in imo_grow()
/xnu-8019.80.24/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()
293 sizeof(struct in6_multi *) * newmax, M_IP6MOPTS, in im6o_grow()
301 sizeof(struct in6_mfilter) * newmax, M_IN6MFILTER, in im6o_grow()
309 for (idx = oldmax; idx < newmax; idx++) { in im6o_grow()
313 imo->im6o_max_memberships = (u_short)newmax; in im6o_grow()
/xnu-8019.80.24/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.c1055 unsigned long newmax = newbufk * (1024 + 128); in pfkey_setup_socket() local
1059 if (sysctlbyname("kern.ipc.maxsockbuf", &oldmax, &oldmaxsize, &newmax, sizeof(newmax)) != 0) { in pfkey_setup_socket()