Home
last modified time | relevance | path

Searched refs:optbuf (Results 1 – 2 of 2) sorted by relevance

/xnu-8792.41.9/tests/
H A Dtcp_input_outputopts_uaf_56155583.c25 uint8_t optbuf[CMSG_LEN(0)]; in setopt_thread() local
28 memset(optbuf, 0, sizeof(optbuf)); in setopt_thread()
32 …T_ASSERT_POSIX_SUCCESS(setsockopt(s, IPPROTO_IPV6, IPV6_2292PKTOPTIONS, optbuf, sizeof(optbuf)), N… in setopt_thread()
35 T_ASSERT_EQ(setsockopt(s, IPPROTO_IPV6, IPV6_2292PKTOPTIONS, optbuf, 1), -1, NULL); in setopt_thread()
/xnu-8792.41.9/bsd/netinet6/
H A Dip6_output.c2142 u_char *optbuf; in ip6_insert_jumboopt() local
2159 optbuf = mtod(mopt, u_char *); in ip6_insert_jumboopt()
2160 optbuf[1] = 0; /* = ((JUMBOOPTLEN) >> 3) - 1 */ in ip6_insert_jumboopt()
2202 optbuf = mtod(n, u_char *) + oldoptlen; in ip6_insert_jumboopt()
2206 optbuf = mtod(mopt, u_char *) + mopt->m_len; in ip6_insert_jumboopt()
2209 optbuf[0] = IP6OPT_PADN; in ip6_insert_jumboopt()
2210 optbuf[1] = 1; in ip6_insert_jumboopt()
2221 optbuf[2] = IP6OPT_JUMBO; in ip6_insert_jumboopt()
2222 optbuf[3] = 4; in ip6_insert_jumboopt()
2224 bcopy(&v, &optbuf[4], sizeof(u_int32_t)); in ip6_insert_jumboopt()