Home
last modified time | relevance | path

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

/xnu-11417.121.6/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-11417.121.6/bsd/netinet6/
H A Dip6_output.c2196 u_char *optbuf; in ip6_insert_jumboopt() local
2213 optbuf = mtod(mopt, u_char *); in ip6_insert_jumboopt()
2214 optbuf[1] = 0; /* = ((JUMBOOPTLEN) >> 3) - 1 */ in ip6_insert_jumboopt()
2256 optbuf = mtod(n, u_char *) + oldoptlen; in ip6_insert_jumboopt()
2260 optbuf = mtod(mopt, u_char *) + mopt->m_len; in ip6_insert_jumboopt()
2263 optbuf[0] = IP6OPT_PADN; in ip6_insert_jumboopt()
2264 optbuf[1] = 1; in ip6_insert_jumboopt()
2275 optbuf[2] = IP6OPT_JUMBO; in ip6_insert_jumboopt()
2276 optbuf[3] = 4; in ip6_insert_jumboopt()
2278 bcopy(&v, &optbuf[4], sizeof(u_int32_t)); in ip6_insert_jumboopt()