Lines Matching defs:nexthdr

543 	uint8_t		nexthdr;
574 nexthdr = *nexthdrp;
577 switch (nexthdr) {
634 if ((uint8_t *)in_ip6h + (nexthdr == IPPROTO_ENCAP ?
773 uint8_t nexthdr;
787 nexthdr = *nexthdrp;
788 ira->ira_protocol = nexthdr;
797 rip6h.ip6_nxt = nexthdr;
800 switch (nexthdr) {
878 if (nexthdr == IPPROTO_ESP)
994 ASSERT(ira->ira_protocol == nexthdr);
1828 /* Determine the offset of the bad nexthdr value */
2389 * e.g., port unreachable and nexthdr unknown. Check that the packet
2591 * - Return a pointer to the last nexthdr value
2610 uint8_t nexthdr;
2626 nexthdr = ip6h->ip6_nxt;
2628 /* Is there enough left for len + nexthdr? */
2632 switch (nexthdr) {
2643 nexthdr = tmphopopts->ip6h_nxt;
2680 nexthdr = tmpdstopts->ip6d_nxt;
2698 nexthdr = tmprthdr->ip6r_nxt;
2723 nexthdr = tmpfraghdr->ip6f_nxt;
2739 *nexthdrp = nexthdr;
2745 * pointer to nexthdr value for the upper layer protocol (or an
2748 * Parameters returns a pointer to the nexthdr value;
2772 /* Is there enough left for len + nexthdr? */
2865 * the expected nexthdr (hbh or dest)
3140 ipsec_needs_processing_v6(mblk_t *mp, uint8_t *nexthdr)
3166 * We can't just use the argument nexthdr in the place
3172 /* Is there enough left for len + nexthdr? */
3213 *nexthdr = IPPROTO_AH;
3241 uint8_t nexthdr;
3247 switch (ipsec_needs_processing_v6(mp, &nexthdr)) {
3258 ASSERT(nexthdr == IPPROTO_AH);
3290 * the headers prior to the fragment header, with the nexthdr value updated
3300 uint8_t nexthdr = fraghdr->ip6f_nxt;
3331 if (nexthdr == IPPROTO_UDP && dohwcksum &&
3375 * of the nexthdr value which has IPPROTO_FRAGMENT. We use
3616 ipf->ipf_protocol = nexthdr;
3796 nexthdr = ipf->ipf_protocol;
3865 ((char *)ip6h)[prev_nexthdr_offset] = nexthdr;
3877 ira->ira_protocol = nexthdr;
3941 uint8_t nexthdr;
3954 nexthdr = ip6h->ip6_nxt;
3963 while (nexthdr == IPPROTO_HOPOPTS || nexthdr == IPPROTO_DSTOPTS ||
3964 nexthdr == IPPROTO_ROUTING) {
3965 if (nexthdr == IPPROTO_ROUTING)
3986 nexthdr = *whereptr;
3992 if (nexthdr == IPPROTO_FRAGMENT && is_fragment != NULL)
4017 uint8_t nexthdr;
4026 nexthdr = ip6h->ip6_nxt;
4030 while (nexthdr == IPPROTO_HOPOPTS ||
4031 nexthdr == IPPROTO_DSTOPTS) {
4045 nexthdr = hbhhdr->ip6h_nxt;
4048 switch (nexthdr) {
4120 uint8_t nexthdr;
4147 nexthdr = ip6h->ip6_nxt;
4150 if (nexthdr == IPPROTO_HOPOPTS) {
4156 nexthdr = hbh_hdr->ip6h_nxt;
4159 if (nexthdr == IPPROTO_DSTOPTS) {
4166 nexthdr = dest_hdr->ip6d_nxt;
4170 if (nexthdr == IPPROTO_ROUTING) {
4175 nexthdr = rthdr->ip6r_nxt;
4179 if (nexthdr != IPPROTO_FRAGMENT) {
4181 ip_drop_output("FragFails: bad nexthdr", mp, ill);
4324 uint8_t nexthdr;
4336 nexthdr = ip6h->ip6_nxt;
4340 if (nexthdr == IPPROTO_HOPOPTS) {
4346 nexthdr = hbh_hdr->ip6h_nxt;
4351 if (nexthdr == IPPROTO_DSTOPTS) {
4358 nexthdr = dest_hdr->ip6d_nxt;
4364 if (nexthdr == IPPROTO_ROUTING) {
4369 nexthdr = rthdr->ip6r_nxt;
4402 fraghdr->ip6f_nxt = nexthdr;
4707 uint8_t nexthdr;
4724 nexthdr = ip6h->ip6_nxt;
4726 /* Is there enough left for len + nexthdr? */
4730 switch (nexthdr) {
4736 nexthdr = desthdr->ip6d_nxt;
4745 nexthdr = fraghdr->ip6f_nxt;
4943 uint8_t nexthdr;
4954 nexthdr = ip6h->ip6_nxt;
4958 ASSERT(nexthdr != IPPROTO_FRAGMENT);
4959 switch (nexthdr) {
4962 nexthdr = hbhhdr->ip6h_nxt;
4967 nexthdr = dsthdr->ip6d_nxt;
4972 nexthdr = rthdr->ip6r_nxt;
4977 ASSERT(nexthdr == IPPROTO_AH);
4986 if (nexthdr != IPPROTO_AH) {
4998 nexthdr = ah->ah_nexthdr;
5001 if (nexthdr == IPPROTO_DSTOPTS) {