Home
last modified time | relevance | path

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

/xnu-10063.141.1/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-10063.141.1/bsd/netinet6/ !
H A Dip6_output.c2140 u_char *optbuf; in ip6_insert_jumboopt() local
2157 optbuf = mtod(mopt, u_char *); in ip6_insert_jumboopt()
2158 optbuf[1] = 0; /* = ((JUMBOOPTLEN) >> 3) - 1 */ in ip6_insert_jumboopt()
2200 optbuf = mtod(n, u_char *) + oldoptlen; in ip6_insert_jumboopt()
2204 optbuf = mtod(mopt, u_char *) + mopt->m_len; in ip6_insert_jumboopt()
2207 optbuf[0] = IP6OPT_PADN; in ip6_insert_jumboopt()
2208 optbuf[1] = 1; in ip6_insert_jumboopt()
2219 optbuf[2] = IP6OPT_JUMBO; in ip6_insert_jumboopt()
2220 optbuf[3] = 4; in ip6_insert_jumboopt()
2222 bcopy(&v, &optbuf[4], sizeof(u_int32_t)); in ip6_insert_jumboopt()