Searched refs:dpkt (Results 1 - 7 of 7) sorted by relevance

/external/autotest/client/cros/netprotos/
H A Dzeroconf_unittest.py7 import dpkt namespace
30 @return a list of dpkt.dns.DNS.RR objects, one for each matching record.
32 q = dpkt.dns.DNS.Q(name=name, type=dpkt.dns.DNS_A)
45 q_srv = dpkt.dns.DNS.Q(name=fq_name, type=dpkt.dns.DNS_SRV)
46 q_txt = dpkt.dns.DNS.Q(name=fq_name, type=dpkt.dns.DNS_TXT)
47 q_ptr = dpkt.dns.DNS.Q(name=name, type=dpkt
[all...]
H A Dzeroconf.py6 import dpkt namespace
29 """Returns whether the two dpkt.dns.DNS.RR objects are equal."""
32 dpkt.dns.DNS.RR.__slots__)
81 # For example: _peer_records['somehost.local'][dpkt.dns.DNS_A] \
136 # Parse the mDNS request using dpkt's DNS module.
137 mdns = dpkt.dns.DNS(data)
140 dpkt.dns.DNS_A: self._process_A,
141 dpkt.dns.DNS_PTR: self._process_PTR,
142 dpkt.dns.DNS_TXT: self._process_TXT,
143 dpkt
[all...]
H A Dcros_p2p.py5 import dpkt namespace
108 ts = self._zeroconf.send_request([(self._p2p_domain, dpkt.dns.DNS_PTR)])
115 self._p2p_domain, dpkt.dns.DNS_PTR, ts)
118 queries.append((p2p_peer, dpkt.dns.DNS_ANY))
121 p2p_peer, dpkt.dns.DNS_SRV, ts)
125 queries.append((srvname, dpkt.dns.DNS_ANY))
140 if rrname == self._p2p_domain and rrtype == dpkt.dns.DNS_PTR:
142 queries.append((ptrname, dpkt.dns.DNS_ANY))
157 self._p2p_domain, dpkt.dns.DNS_PTR, timestamp)
161 p2p_peer, dpkt
[all...]
/external/autotest/client/deps/lansim/src/py/
H A Dhost.py5 import dpkt namespace
47 "arp.op": dpkt.arp.ARP_OP_REQUEST,
75 @param pkt: a dpkt.Packet with the ARP_REQUEST.
80 arp_resp = dpkt.arp.ARP(
81 op = dpkt.arp.ARP_OP_REPLY,
87 eth_resp = dpkt.ethernet.Ethernet(
90 type = dpkt.ethernet.ETH_TYPE_ARP,
149 hw_pkt = dpkt.ethernet.Ethernet(
152 type = dpkt.ethernet.ETH_TYPE_IP,
172 'ip.p': dpkt
[all...]
H A Dsimulator.py5 import dpkt namespace
81 @param callback: A callback function that receives the dpkt packet as
142 on the add_match() method. The packet |pkt| is any dpkt packet.
158 @param pkt: The dpkt.Packet to be received on the network interface.
160 # Converts the dpkt packet to: flags, proto, buffer.
262 pkt = dpkt.ethernet.Ethernet(raw[4:])
267 callback(dpkt.ethernet.Ethernet(raw[4:]))
/external/autotest/client/site_tests/peerd_AdvertiseServices/
H A Dpeerd_AdvertiseServices.py5 import dpkt namespace
108 @param record_type: one of dpkt.dns.DNS_*.
130 record_PTR = self._ask_for_record(PTR_name, dpkt.dns.DNS_PTR)
136 record_SRV = self._ask_for_record(SRV_name, dpkt.dns.DNS_SRV)
145 record_TXT = self._ask_for_record(TXT_name, dpkt.dns.DNS_TXT)
165 record_A = self._ask_for_record(self._hostname, dpkt.dns.DNS_A)
/external/autotest/client/site_tests/peerd_HandlesNameConflicts/
H A Dpeerd_HandlesNameConflicts.py5 import dpkt namespace
84 ptr_name, dpkt.dns.DNS_PTR)

Completed in 129 milliseconds