Lines Matching refs:protocol
82 uint8_t protocol; in ipv6_packet() local
116 protocol = ip6->ip6_nxt; in ipv6_packet()
122 fill_ip_header(ip_targ, 0, protocol, ip6); in ipv6_packet()
127 if (protocol == IPPROTO_FRAGMENT) { in ipv6_packet()
137 protocol = parse_frag_header(frag_hdr, ip_targ); in ipv6_packet()
141 if (protocol == IPPROTO_ICMPV6) { in ipv6_packet()
142 protocol = IPPROTO_ICMP; in ipv6_packet()
143 ip_targ->protocol = IPPROTO_ICMP; in ipv6_packet()
151 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol); in ipv6_packet()
157 } else if (protocol == IPPROTO_ICMP) { in ipv6_packet()
159 } else if (protocol == IPPROTO_TCP) { in ipv6_packet()
162 } else if (protocol == IPPROTO_UDP) { in ipv6_packet()
165 } else if (protocol == IPPROTO_GRE) { in ipv6_packet()