Home | History | Annotate | Download | only in android-clat

Lines Matching refs:protocol

72  * takes an ipv6 packet and hands it off to the layer 4 protocol function
82 uint8_t protocol;
116 protocol = ip6->ip6_nxt;
122 fill_ip_header(ip_targ, 0, protocol, ip6);
127 if (protocol == IPPROTO_FRAGMENT) {
137 protocol = parse_frag_header(frag_hdr, ip_targ);
140 // ICMP and ICMPv6 have different protocol numbers.
141 if (protocol == IPPROTO_ICMPV6) {
142 protocol = IPPROTO_ICMP;
143 ip_targ->protocol = IPPROTO_ICMP;
151 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol);
157 } else if (protocol == IPPROTO_ICMP) {
159 } else if (protocol == IPPROTO_TCP) {
162 } else if (protocol == IPPROTO_UDP) {
165 } else if (protocol == IPPROTO_GRE) {