Searched refs:packet (Results 1 - 2 of 2) sorted by relevance

/system/core/libnetutils/
H A Dpacket.c164 } packet; local
170 nread = read(s, &packet, sizeof(packet));
175 * The raw packet interface gives us all packets received by the
184 } else if (packet.ip.version != IPVERSION || packet.ip.ihl != (sizeof(packet.ip) >> 2)) {
186 ALOGD("Not a valid IP packet");
188 } else if (nread < ntohs(packet.ip.tot_len)) {
190 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet
[all...]
H A DAndroid.mk9 packet.c

Completed in 50 milliseconds