scapy.base_classes

Generators and packet meta classes.

class scapy.base_classes.BasePacket

Bases: scapy.base_classes.Gen

class scapy.base_classes.BasePacketList

Bases: object

class scapy.base_classes.Field_metaclass

Bases: type

class scapy.base_classes.Gen

Bases: object

class scapy.base_classes.Net(net)

Bases: scapy.base_classes.Gen

Generate a list of IPs from a network address or a name

choice()
ip_regex = re.compile('^(\\*|[0-2]?[0-9]?[0-9](-[0-2]?[0-9]?[0-9])?)\\.(\\*|[0-2]?[0-9]?[0-9](-[0-2]?[0-9]?[0-9])?)\\.(\\*|[0-2]?[0-9]?[0-9](-[0-2]?[0-9]?[0-9])?)\\.(\\*|[0-2]?[0-9]?[0-9](-[0-2]?[0-9]?[0-9])?)(/[0-3]?[0-9])
name = 'ip'
class scapy.base_classes.OID(oid)

Bases: scapy.base_classes.Gen

name = 'OID'
class scapy.base_classes.Packet_metaclass

Bases: type

class scapy.base_classes.SetGen(values, _iterpacket=1)

Bases: scapy.base_classes.Gen

transf(element)