Home
last modified time | relevance | path

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

/system/uapp/netdump/
A Dnetdump.c144 struct iphdr* ipv4 = (struct iphdr*)(packet + sizeof(struct ethhdr)); in parse_packet() local
150 if (ipv4->version == 4) { in parse_packet()
152 printf("%s > ", inet_ntop(AF_INET, &ipv4->saddr, buf, sizeof(buf))); in parse_packet()
153 printf("%s: ", inet_ntop(AF_INET, &ipv4->daddr, buf, sizeof(buf))); in parse_packet()
154 printf("%s, ", protocol_to_string(ipv4->protocol)); in parse_packet()
155 printf("length %u, ", ntohs(ipv4->tot_len)); in parse_packet()
156 transport_packet = (void*)((uintptr_t) ipv4 + sizeof(struct iphdr) + in parse_packet()
157 (ipv4->ihl > 5 ? ipv4->ihl * 4 : 0)); in parse_packet()
158 transport_protocol = ipv4->protocol; in parse_packet()
159 } else if (ipv4->version == 6) { in parse_packet()
[all …]
/system/fidl/fuchsia-net/
A Dnet.fidl20 IPv4Address ipv4;

Completed in 4 milliseconds