def __init__(self, name, mymac=(0, 0, 0, 0, 0, 0), myip=(0, 0, 0, 0), pkts=1, sequential=False): Host.__init__(self, name, mymac, myip) self.pkts = pkts self.received_pkt_count = 0 self.sequential_packet_id = 1 self.sequential = sequential
def __init__(self, name, mymac=(0,0,0,0,0,0), myip=(0,0,0,0), destip=(0,0,0,0), pkts=1): Host.__init__(self, name, mymac, myip) self.pkts_to_send = pkts self.pkts_sent = 0 self.received_pkt_count = 0 self.current_destip_idx = 0 if isinstance(destip, list): self.destip = map(lambda x: IpAddress(x), destip) else: self.destip = [IpAddress(destip)] self.flows_started = 0 self.connections = {}
def __init__(self, name, mymac=(0, 0, 0, 0, 0, 0), dstmac=(0, 0, 0, 0, 0, 0), pkts=1, sequential=False): Host.__init__(self, name, mymac, "10.0.0.1") self.dstmac = MacAddress(dstmac) self.pkts = pkts self.received_pkt_count = 0 self.sequential_packet_id = 1 self.sequential = sequential
def __init__(self, name, mymac, filter_src_mac=True, max_pkts=1, max_burst=1): Host.__init__(self, name, mymac, "10.0.0.1") self.pkts = {} self.input_counter = 0 self.filter_src_mac = filter_src_mac self.pkts_to_send = max_burst self.total_pkts = max_pkts self.sent_pkts = 0 self.disabled_actions = [] self.sym_exec_states = set()
def __init__(self, name, mymac=(0, 0, 0, 0, 0, 0), myip=(0, 0, 0, 0), destip=(0, 0, 0, 0), pkts=1): Host.__init__(self, name, mymac, myip) self.pkts_to_send = pkts self.pkts_sent = 0 self.received_pkt_count = 0 self.current_destip_idx = 0 if isinstance(destip, list): self.destip = map(lambda x: IpAddress(x), destip) else: self.destip = [IpAddress(destip)] self.flows_started = 0 self.connections = {}
def __init__(self, **kwargs): """Constructor Initialize object's private data. rpcdebug: Set RPC kernel debug flags and save log messages [default: ''] nfsdebug: Set NFS kernel debug flags and save log messages [default: ''] dbgname: Base name for log messages files to create [default: 'dbgfile'] tracename: Base name for trace files to create [default: 'tracefile'] notrace: Debug option so a trace is not actually started [default: False] tcpdump: Tcpdump command [default: '/usr/sbin/tcpdump'] messages: Location of file for system messages [default: '/var/log/messages'] tmpdir: Temporary directory where trace files are created [default: '/tmp'] """ # Arguments self.rpcdebug = kwargs.pop("rpcdebug", '') self.nfsdebug = kwargs.pop("nfsdebug", '') self.dbgname = kwargs.pop("dbgname", 'dbgfile') self.tracename = kwargs.pop("tracename", 'tracefile') self.notrace = kwargs.pop("notrace", False) self.tcpdump = kwargs.pop("tcpdump", c.NFSTEST_TCPDUMP) self.messages = kwargs.pop("messages", c.NFSTEST_MESSAGESLOG) self.tmpdir = kwargs.pop("tmpdir", c.NFSTEST_TMPDIR) self._nfsdebug = False Host.__init__(self) # Initialize object variables self.dbgidx = 1 self.dbgfile = '' self.traceidx = 1 self.tracefile = '' self.tracefiles = [] self.clients = [] self.traceproc = None self.nii_name = '' # nii_name for the client self.nii_server = '' # nii_name for the server
def __init__(self, id, ip, name=None): Host.__init__(self, ip=ip, name=name) self._id = id
def __init__(self, name, mymac): Host.__init__(self, name, mymac, "10.0.0.1") self.packet_id = 1 # uses odd numbers self.move_host = False self.move_host_switch = None
def __init__(self): Host.__init__(self, "InSec", "65.32.2.133", ["sensenet.log", "a3f15cb.txt", "emplrec0451.log"], ["clientProtector", "sec0451", "SysAdmin"]) self.state = 1
def __init__(self, id, iqn=None): Host.__init__(self, id) if iqn: self.iqn = iqn
def __init__(self): Host.__init__(self, "CogDis", "112.43.67.2", [], ["greenwitchMean", "v0rt3x", "fortran4evr", "danielCowell", "c4s3"]) self.state = 0
def __init__(self, id): Host.__init__(self, id)
def __init__(self, host, katcp_port=7147, boffile=None, connect=False): Host.__init__(self, host, katcp_port) KatcpFpga.__init__(self, host, katcp_port, connect=connect) self.boffile = boffile
def __init__(self, name, mymac, myip, tcp_port=80): Host.__init__(self, name, mymac, myip) self.received_pkt_count = 0 self.myport = tcp_port self.controller = None self.connections = {}
def __init__(self): Host.__init__(self, "SenseNet", "243.12.44.8", ["access.log", "d4eff2b.txt", "forkbomb.exe", "firstQuarter.doc"], ["WatchDogDaemon", "FenceBuilder", "SysAdmin"]) self.state = 0 self.added = False
def __init__(self): Host.__init__(self, "localhost", "127.0.0.1", [], []) self.state = 0