Searched refs:udp (Results 1 - 9 of 9) sorted by relevance

/system/core/libnetutils/
H A Dpacket.c24 #include <netinet/udp.h>
94 struct udphdr udp; local
104 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size);
114 udp.source = htons(sport);
115 udp.dest = htons(dport);
116 udp.len = htons(sizeof(udp) + size);
117 udp.check = 0;
124 temp = udp.len;
127 /* Add in the checksum for the udp heade
163 struct udphdr udp; member in struct:dhcp_packet
[all...]
/system/connectivity/dhcp_client/
H A Ddhcpv4.cc25 #include <netinet/udp.h>
237 struct udphdr* udp = reinterpret_cast<struct udphdr*>(buffer + sizeof(*ip)); local
243 udp->uh_sport = htons(kDHCPClientPort);
244 udp->uh_dport = htons(kDHCPServerPort);
245 udp->uh_ulen =
246 htons(static_cast<uint16_t>(sizeof(*udp) + payload.GetLength()));
255 // Total length, use udp packet length for pseudo header.
256 ip->tot_len = udp->uh_ulen;
257 // Calculate udp checksum based on:
259 udp
329 const struct udphdr* udp = local
[all...]
/system/core/fastboot/
H A Dudp.h38 namespace udp { namespace
79 } // namespace udp
H A DAndroid.mk35 udp.cpp \
122 udp.cpp \
H A Dudp_test.cpp17 #include "udp.h"
24 using namespace udp;
25 using namespace udp::internal;
H A Dudp.cpp31 #include "udp.h"
45 namespace udp { namespace
391 } // namespace udp
H A Dfastboot.cpp62 #include "udp.h"
259 } else if (android::base::StartsWith(serial, "udp:")) {
261 port = udp::kDefaultPort;
262 net_address = serial + strlen("udp:");
281 transport = udp::Connect(host, port, &error).release();
362 " <protocol> is either tcp or udp.\n"
/system/connectivity/shill/shims/
H A Dnetfilter_queue_processor.cc25 #include <linux/udp.h>
109 struct udphdr udp; local
110 if (payload_len < iphdr_len + sizeof(udp)) {
114 memcpy(&udp, payload + iphdr_len, sizeof(udp));
118 source_port_ = ntohs(udp.source);
119 destination_port_ = ntohs(udp.dest);
368 VLOG(2) << "Incoming packet is not udp.";
405 VLOG(2) << "Outgoing packet is not udp.";
/system/extras/tests/net_test/
H A Dpackets.py157 udp = packet.getlayer("UDP")
158 udp.payload = str(udp.payload)[:1280-40-8]

Completed in 213 milliseconds