trex version v2.90
I am using stateless.
Packet:
class STLS1(object):
def get_streams(self, port_id = 0,direction = 0, **kwargs):
streams = []
packet = (Ether(src="00:00:00:01:02:03",dst="ff:ff:ff:ff:ff:ff") /
Dot1Q(vlan=1552) /
ARP(op=1,plen=4,hwlen=6,hwtype=1, psrc="25.20.20.100",pdst="25.20.20.10",hwsrc="0e:be:2a:3f:46:94") /
Raw(0*50))
vm = STLVM()
stream = STLStream(packet = STLPktBuilder(pkt = packet, vm = vm),stream_id = 1,name = 'TC16_UC2_SCTP',mode =STLTXSingleBurst(total_pkts = 2,pps = 50),flow_stats = STLFlowLatencyStats(pg_id = 1))
streams.append(stream)
return streams
def register():
return STLS1()
But when i capture the packet sent out by trex , it manipulates the pdst to a different value . Can someone please help understand as to why is this happening?
Capture:
trex(service)>
Ether(dst='ff:ff:ff:ff:ff:ff',src='00:00:00:01:02:03',type=33024)/Dot1Q(prio=0,id=0,vlan=1552,type=2054)/ARP(hwtype=1,ptype=2048,hwlen=6,plen=4,op=1,hwsrc='0e:be:2a:3f:46:94',psrc='25.20.20.100',hwdst='00:00:00:00:00:00',pdst='25.20.171.49')/Padding(load=b'\x00\x00\xff\xff\xff\xffG\xdfN\x8f\x1d@\x0e\x00')
trex(service)>