Lines Matching defs:protocol
71 * takes an ipv6 packet and hands it off to the layer 4 protocol function
81 uint8_t protocol;
115 protocol = ip6->ip6_nxt;
121 fill_ip_header(ip_targ, 0, protocol, ip6);
126 if (protocol == IPPROTO_FRAGMENT) {
136 protocol = parse_frag_header(frag_hdr, ip_targ);
139 // ICMP and ICMPv6 have different protocol numbers.
140 if (protocol == IPPROTO_ICMPV6) {
141 protocol = IPPROTO_ICMP;
142 ip_targ->protocol = IPPROTO_ICMP;
150 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol);
156 } else if (protocol == IPPROTO_ICMP) {
158 } else if (protocol == IPPROTO_TCP) {
161 } else if (protocol == IPPROTO_UDP) {
164 } else if (protocol == IPPROTO_GRE) {