/external/scapy/scapy/contrib/ |
sebek.py | 45 if isinstance(self.underlayer, SebekHead): 46 return self.underlayer.sprintf("Sebek v1 %SebekHead.type% (%SebekV1.cmd%)") 61 if isinstance(self.underlayer, SebekHead): 62 return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV3.cmd%)") 68 if isinstance(self.underlayer, SebekHead): 69 return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV2.cmd%)") 93 if isinstance(self.underlayer, SebekHead): 94 return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV3Sock.cmd%)") 100 if isinstance(self.underlayer, SebekHead): 101 return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV2Sock.cmd%)" [all...] |
igmp.py | 118 underlayer = self.underlayer 121 if isinstance(underlayer, IP): 124 underlayer.dst = "224.0.0.1" # IP rule 1 126 underlayer.dst = gaddr # IP rule 3a 131 underlayer.dst = "224.0.0.2" # IP rule 2 133 underlayer.dst = gaddr # IP rule 3b 137 if not any(isinstance(x, IPOption_Router_Alert) for x in underlayer.options): 138 underlayer.options.append(IPOption_Router_Alert()) 142 _root[Ether].dst = getmacbyip(underlayer.dst) # Ether rule [all...] |
ppi.py | 70 out.payload.underlayer = out 73 out.payload.payload.underlayer = out.payload 76 out.payload.underlayer = out
|
rsvp.py | 152 fields_desc = [StrLenField("Data","",length_from= lambda pkt:pkt.underlayer.Length - 4)] 177 StrLenField("Tokens","",length_from= lambda pkt:pkt.underlayer.Length - 12) ] 194 StrLenField("Name","",length_from= lambda pkt:pkt.underlayer.Length - 8),
|
igmpv3.py | 96 if isinstance(self.underlayer, IP): 97 return self.underlayer.sprintf("IGMPv3: %IP.src% > %IP.dst% %IGMPv3.type%")
|
tacacs.py | 324 cur = self.underlayer 330 cur = cur.underlayer 336 cur = self.underlayer 342 cur = cur.underlayer
|
mqtt.py | 161 lambda pkt: (pkt.underlayer.QOS == 1 162 or pkt.underlayer.QOS == 2)), 164 length_from=lambda pkt: (pkt.underlayer.len -
|
ospf.py | 117 FieldListField("neighbors", [], IPField("", "0.0.0.0"), length_from=lambda pkt: (pkt.underlayer.len - 44))] 384 length_from = lambda pkt: pkt.underlayer.len - 24 - 8)] 408 length_from = lambda pkt:pkt.underlayer.len - 24)] 416 length_from = lambda pkt: pkt.underlayer.len - 24)] 423 length_from = lambda pkt: pkt.underlayer.len - 24)] 458 chksum = in6_chksum(89, self.underlayer, p) 483 length_from=lambda pkt: (pkt.underlayer.len - 36))] 703 length_from = lambda pkt:pkt.underlayer.len - 28)] 721 length_from = lambda pkt:pkt.underlayer.len - 16)] 729 length_from = lambda pkt:pkt.underlayer.len - 16) [all...] |
pnio_rtc.py | 110 """PacketList which binds each underlayer of packets to the current pkt""" 148 """Find the Ethernet packet of underlayer or None""" 151 ether = ether.underlayer 232 if isinstance(self.underlayer, ProfinetIO) and \ 233 isinstance(self.underlayer.underlayer, UDP):
|
dtp.py | 62 del(pad.underlayer.payload)
|
lldp.py | 142 under_layer = under_layer.underlayer 156 under_layer = self.underlayer
|
macsec.py | 119 prev_layer = packet[MACsec].underlayer
|
eigrp.py | 433 del(pad.underlayer.payload)
|
isis.py | 743 FieldLenField.__init__(self, "pdulength", None, length_of="tlvs", adjust=lambda pkt,x: x + pkt.underlayer.hdrlen) 748 PacketListField.__init__(self, "tlvs", [], _ISIS_GuessTlvClass, length_from= lambda pkt: pkt.pdulength - pkt.underlayer.hdrlen)
|
/external/scapy/scapy/layers/ |
vrrp.py | 68 if isinstance(self.underlayer, IP): 69 ck = in4_chksum(112, self.underlayer, p) 70 elif isinstance(self.underlayer, IPv6): 71 ck = in6_chksum(112, self.underlayer, p)
|
hsrp.py | 56 if self.underlayer.len > 28:
|
inet.py | 461 while fl.underlayer is not None: 463 fl = fl.underlayer 492 warning("No IP underlayer to compute checksum. Leaving null.") 530 if isinstance(self.underlayer, IP): 531 ck = in4_chksum(socket.IPPROTO_TCP, self.underlayer, p) 533 elif conf.ipv6_enabled and isinstance(self.underlayer, scapy.layers.inet6.IPv6) or isinstance(self.underlayer, scapy.layers.inet6._IPv6ExtHdr): 534 ck = scapy.layers.inet6.in6_chksum(socket.IPPROTO_TCP, self.underlayer, p) 537 warning("No IP underlayer to compute checksum. Leaving null.") 575 if isinstance(self.underlayer, IP) [all...] |
lltd.py | 94 isinstance(self.underlayer, Ether): 95 eth = self.underlayer 105 if isinstance(self.underlayer, Ether): 106 return self.underlayer.sprintf(
|
ipsec.py | [all...] |
dot11.py | 188 if isinstance(self.underlayer, Dot11): 189 if self.underlayer.FCfield & 0x40:
|
inet6.py | 586 if isinstance(self.underlayer, _ICMPv6) and self.underlayer.type < 128: 682 segleft field is present in underlayer classes, last address is used.) 684 IPv6 class instance available in the underlayer or the source address 685 in HAO option if some Destination Option header found in underlayer 709 u = u.underlayer 711 warning("No IPv6 underlayer to compute checksum. Leaving null.") [all...] |
bluetooth.py | 445 if not pkt.underlayer: 449 return pkt.underlayer.len - 1 [all...] |
/external/scapy/scapy/ |
supersocket.py | 143 if pad is not None and pad.underlayer is not None: 144 del(pad.underlayer.payload) 179 if pad is not None and pad.underlayer is not None: 180 del(pad.underlayer.payload)
|
packet.py | 53 # then payload and underlayer 54 "payload", "underlayer", 121 self.underlayer = _underlayer 189 def add_underlayer(self, underlayer): 190 self.underlayer = underlayer 192 self.underlayer = None 199 clone.underlayer = self.underlayer 789 pkt.underlayer = self.underlaye [all...] |
/external/scapy/scapy/modules/ |
p0f.py | 547 while pkt.underlayer: 548 pkt = pkt.underlayer
|