Home
last modified time | relevance | path

Searched refs:getlayer (Results 1 – 24 of 24) sorted by relevance

/external/scapy/scapy/modules/
Dvoip.py83 ip=pkt.getlayer(IP)
85 dsp.write(pkt.getlayer(conf.raw_layer).load[12:])
122 ip=pkt.getlayer(IP)
125 x1 += pkt.getlayer(conf.raw_layer).load[12:]
127 x2 += pkt.getlayer(conf.raw_layer).load[12:]
144 dsp.write(pkt.getlayer(RTP).load)
Dp0f.py119 pkt = pkt.getlayer(IP)
363 pkt = pkt.getlayer(IP)
/external/scapy/scapy/layers/
Ddot11.py415 ip = pkt.getlayer(IP)
416 tcp = pkt.getlayer(TCP)
425 ip = p.getlayer(IP)
426 tcp = p.getlayer(TCP)
438 q.getlayer(TCP).flags="RA"
439 q.getlayer(TCP).seq+=len(self.replace)
Ddhcp.py340 reqb = req.getlayer(BOOTP)
346 print("Reply %s to %s" % (reply.getlayer(IP).dst,reply.dst))
357 repb = req.getlayer(BOOTP).copy()
Ddns.py769 return r.getlayer(DNS).rcode
791 return r.getlayer(DNS).rcode
808 return req.haslayer(DNS) and req.getlayer(DNS).qr == 0
811 ip = req.getlayer(IP)
812 dns = req.getlayer(DNS)
Dl2.py558 req.getlayer(ARP).op == 1 and
559 (self.IP_addr == None or self.IP_addr == req.getlayer(ARP).pdst))
562 ether = req.getlayer(Ether)
563 arp = req.getlayer(ARP)
Dradius.py269 def getlayer(self, cls, nb=1, _track=None, _subclass=True, **flt): member in RadiusAttribute
270 return super(RadiusAttribute, self).getlayer(cls, nb=nb, _track=_track,
Deap.py249 def getlayer(self, cls, nb=1, _track=None, _subclass=True, **flt): member in EAP
250 return super(EAP, self).getlayer(cls, nb=nb, _track=_track,
Dnetflow.py354 current_ftl = root.getlayer(NetflowDataflowsetV9, templateID=ntv9.templateID)
Ddhcp6.py1509 reqtype = g + norm(req.getlayer(UDP).payload.name) + n
1510 reqsrc = req.getlayer(IPv6).src
1517 reptype = g + norm(reply.getlayer(UDP).payload.name) + n
Dntp.py222 def getlayer(self, cls, nb=1, _track=None, _subclass=True, **flt): member in NTP
223 return super(NTP, self).getlayer(cls, nb=nb, _track=_track,
Dinet.py1021 opts = p.getlayer(TCP).options
1300 r = r.getlayer(IP) or (conf.ipv6_enabled and r[scapy.layers.inet6.IPv6]) or r
1301 s = s.getlayer(IP) or (conf.ipv6_enabled and s[scapy.layers.inet6.IPv6]) or s
1419 p = rcv.getlayer(conf.padding_layer).load
1703 leak = ans.getlayer(conf.padding_layer).load
Dtftp.py323 options = pkt.getlayer(TFTP_Options)
/external/scapy/scapy/
Dplist.py248 hexdump(p.getlayer(conf.raw_layer).load)
271 hexdump(p.getlayer(conf.padding_layer).load)
278 pad = p.getlayer(conf.padding_layer).load
285 hexdump(p.getlayer(conf.padding_layer).load)
Dsupersocket.py142 pad = pkt.getlayer(conf.padding_layer)
177 pad = pkt.getlayer(conf.padding_layer)
Dpacket.py892 def getlayer(self, cls, nb=1, _track=None, _subclass=False, **flt): member in Packet
927 ret = fvalue.getlayer(cls, nb=nb, _track=track,
932 return self.payload.getlayer(cls, nb=nb, _track=_track,
945 ret = self.getlayer(cls.start, nb=cls.stop, **(cls.step or {}))
947 ret = self.getlayer(cls.start, **(cls.step or {}))
950 ret = self.getlayer(cls)
1300 def getlayer(self, cls, nb=1, _track=None, **flt): member in NoPayload
Dasn1fields.py116 cpad = c.getlayer(packet.Raw)
/external/scapy/scapy/contrib/
Dbgp.py616 def getlayer(self, cls, nb=1, _track=None, _subclass=True, **flt): member in BGPCapability
617 return super(BGPCapability, self).getlayer(
Dbgp.uts125 = BGPCapability - Test getlayer()
126 assert isinstance(BGPCapFourBytesASN().getlayer(BGPCapability), BGPCapFourBytesASN)
/external/scapy/test/
Dfields.uts331 assert(b.getlayer(TestPkt,4) is None)
422 assert(b.getlayer(TestPkt,4) is None)
Dregression.uts508 = getlayer function
509 ~ basic getlayer IP ISAKMP UDP
514 x.getlayer(IP,3)
515 x.getlayer(IP,4)
520 x.getlayer(IP).id == 1 and x.getlayer(IP,3).id == 3 and
521 x.getlayer(IP,4) == None and
530 = getlayer with a filter
531 ~ getlayer IP
534 assert pkt.getlayer(IP, ttl=3).ttl == 3
536 = specific haslayer and getlayer implementations for NTP
[all …]
Dtls.uts956 rec_fin = t6.getlayer(4)
1007 t.getlayer(2).msg[0].data == b"To boldly go where no man has gone before...\n"
/external/scapy/doc/scapy/
Dbuild_dissect.rst84 and followings layers. This is a shortcut for ``p.getlayer(TCP)``.
549 pkt = pkt.getlayer(Padding)
Dusage.rst1232 >>> res.nsummary( lfilter=lambda (s,r): (r.haslayer(TCP) and (r.getlayer(TCP).flags & 2)) )