public void Init() { this.dumper = new SimpleBinaryPacketDumper (); this.clock = new ClockMock (100); this.broadcast_backbone = new BroadcastBackboneMock ("1", BACKBONE_SIZE, ulong.MaxValue, this.clock); for (var i = 0; i < BACKBONE_SIZE; ++i) new InterfaceMock ().SetBackbone (this.broadcast_backbone); this.unicast_backbone = new UnicastBackboneMock ("2", BACKBONE_SIZE, ulong.MaxValue, this.clock); for (var i = 0; i < BACKBONE_SIZE; ++i) new InterfaceMock ().SetBackbone (this.unicast_backbone); }
public void Init() { this.clock = new ClockMock (100); this.dumper = new PCAPPacketDumper (this.clock); this.broadcast_backbone = new BroadcastBackboneMock ("1", BACKBONE_SIZE, ulong.MaxValue, this.clock); for (var i = 0; i < BACKBONE_SIZE; ++i) new InterfaceMock ().SetBackbone (this.broadcast_backbone); this.unicast_backbone = new UnicastBackboneMock ("2", BACKBONE_SIZE, ulong.MaxValue, this.clock); for (var i = 0; i < BACKBONE_SIZE; ++i) new InterfaceMock ().SetBackbone (this.unicast_backbone); this.unicast_backbone.SetPCAPType (PCAPNetworkTypes.LINKTYPE_C_HDLC); }