Home
last modified time | relevance | path

Searched refs:underlayer (Results 1 – 25 of 37) sorted by relevance

12

/external/scapy/scapy/contrib/
Digmp.py118 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 1
150 if isinstance(self.underlayer, IP):
[all …]
Dsebek.py45 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%)")
Dospf.py117 …tField("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 …]
Drsvp.py152 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),
Dppi.py70 out.payload.underlayer = out
73 out.payload.payload.underlayer = out.payload
76 out.payload.underlayer = out
Digmpv3.py96 if isinstance(self.underlayer, IP):
97 return self.underlayer.sprintf("IGMPv3: %IP.src% > %IP.dst% %IGMPv3.type%")
Dmqtt.py161 lambda pkt: (pkt.underlayer.QOS == 1
162 or pkt.underlayer.QOS == 2)),
164 length_from=lambda pkt: (pkt.underlayer.len -
Dtacacs.py324 cur = self.underlayer
330 cur = cur.underlayer
336 cur = self.underlayer
342 cur = cur.underlayer
Dpnio_rtc.py151 ether = ether.underlayer
232 if isinstance(self.underlayer, ProfinetIO) and \
233 isinstance(self.underlayer.underlayer, UDP):
Ddtp.py62 del(pad.underlayer.payload)
Dlldp.py142 under_layer = under_layer.underlayer
156 under_layer = self.underlayer
Dmacsec.py119 prev_layer = packet[MACsec].underlayer
Disis.py743 …__init__(self, "pdulength", None, length_of="tlvs", adjust=lambda pkt,x: x + pkt.underlayer.hdrlen)
748 …f, "tlvs", [], _ISIS_GuessTlvClass, length_from= lambda pkt: pkt.pdulength - pkt.underlayer.hdrlen)
/external/scapy/scapy/layers/
Dvrrp.py68 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)
Dinet.py461 while fl.underlayer is not None:
463 fl = fl.underlayer
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…
534 ck = scapy.layers.inet6.in6_chksum(socket.IPPROTO_TCP, self.underlayer, p)
575 if isinstance(self.underlayer, IP):
576 … return self.underlayer.sprintf("TCP %IP.src%:%TCP.sport% > %IP.dst%:%TCP.dport% %TCP.flags%")
577 elif conf.ipv6_enabled and isinstance(self.underlayer, scapy.layers.inet6.IPv6):
578 … return self.underlayer.sprintf("TCP %IPv6.src%:%TCP.sport% > %IPv6.dst%:%TCP.dport% %TCP.flags%")
[all …]
Dlltd.py94 isinstance(self.underlayer, Ether):
95 eth = self.underlayer
105 if isinstance(self.underlayer, Ether):
106 return self.underlayer.sprintf(
Dhsrp.py56 if self.underlayer.len > 28:
Dipsec.py990 encrypted.underlayer.nh = esp.nh
991 encrypted.underlayer.remove_payload()
1022 ah.underlayer.nh = ah.nh
1023 ah.underlayer.remove_payload()
Ddot11.py188 if isinstance(self.underlayer, Dot11):
189 if self.underlayer.FCfield & 0x40:
Dinet6.py586 if isinstance(self.underlayer, _ICMPv6) and self.underlayer.type < 128:
709 u = u.underlayer
1158 q[IPv6ExtHdrFragment].underlayer.nh = nh
1159 del q[IPv6ExtHdrFragment].underlayer.payload
1210 del pkt[IPv6ExtHdrFragment].underlayer.payload # detach payload
1404 chksum = in6_chksum(58, self.underlayer, p)
1413 if (isinstance(self.underlayer, IPerror6) or
1414 isinstance(self.underlayer, _IPv6ExtHdr) and
2878 cksum = in6_chksum(135, self.underlayer, p)
Dl2.py253 if isinstance(self.underlayer, Ether):
254 …return self.underlayer.sprintf("802.1q %Ether.src% > %Ether.dst% (%Dot1Q.type%) vlan %Dot1Q.vlan%")
Ddns.py269 lambda p: isinstance(p.underlayer, TCP)),
314 if isinstance(self.underlayer, TCP) and self.length is None:
/external/scapy/scapy/
Dsupersocket.py143 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)
Dpacket.py121 self.underlayer = _underlayer
189 def add_underlayer(self, underlayer): argument
190 self.underlayer = underlayer
192 self.underlayer = None
199 clone.underlayer = self.underlayer
789 pkt.underlayer = self.underlayer
937 while q.underlayer is not None:
938 q = q.underlayer
960 del(self[cls].underlayer.payload)
963 self[cls].underlayer.payload = val
[all …]
/external/scapy/scapy/modules/
Dp0f.py547 while pkt.underlayer:
548 pkt = pkt.underlayer

12