Lines Matching defs:UDP
90 def UDP(cls, version, srcaddr, dstaddr, sport=0):
97 scapy.UDP(sport=sport, dport=53) / UDP_PAYLOAD)
103 scapy.UDP(sport=sport, dport=53) /
108 scapy.UDP(sport=sport, dport=53) /
198 udp = packet.getlayer("UDP")
199 udp.payload = str(udp.payload)[:1280-40-8]
326 desc, expected = Packets.UDP(version, myaddr, dstaddr, sport=None)
327 msg = "IPv%s UDP %%s: expected %s on %s" % (
346 inner = str(Packets.UDP(inner_version, inner_src, inner_dst, sport=None)[1])
355 msg = "Raw IPv%d GRE with inner IPv%d UDP: expected %s on %s" % (
424 desc, expected = Packets.UDP(version, unspec, dstaddr, sport)
469 "\x11\x02", # Next header=UDP, 24 bytes of options.
493 scapy.UDP(sport=sport, dport=53) /
495 msg = "IPv6 UDP using sticky pktinfo: expected UDP packet on %s" % (
530 msg = "IPv%d UDP using pktinfo routing: expected %s on %s" % (
586 self.CheckReflection(4, Packets.UDP, Packets.ICMPPortUnreachable)
590 self.CheckReflection(6, Packets.UDP, Packets.ICMPPortUnreachable)
639 # UDP, 8 bytes dstopts; PAD1, 4 bytes padding; 4 bytes zeros.
812 # Send a UDP packet to a random on-link destination.
826 msg = "Sending UDP packet to on-link destination: expecting %s" % desc
839 # Expect the kernel to send the original UDP packet now that the ND cache
842 UDP(6, myaddr, dstaddr, sport=sport)