Lines Matching refs:dpkt
5 import dpkt
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.ip.IP_PROTO_TCP}, self._handle_tcp_forward)
316 pkt_udp = dpkt.udp.UDP(
321 # dpkt doesn't set the Length field on UDP packets according to RFC 768.
324 pkt_ip = dpkt.ip.IP(
327 off = dpkt.ip.IP_DF, # Don't frag.
328 p = dpkt.ip.IP_PROTO_UDP,