inet-framework / inet

INET Framework for the OMNeT++ discrete event simulator
https://inet.omnetpp.org
Other
429 stars 482 forks source link

Src mac address of the arp package during emulation is 00:00:00:00:00:00 #854

Closed Jimmy01240397 closed 1 year ago

Jimmy01240397 commented 1 year ago

I'm trying to edit emulation/pinger and make it can ping another host on LAN. But when I use tcpdump to capture traffic I saw the src mac address of the arp package is 00:00:00:00:00:00 and arp didn't response then ping failed. Why?

image

ZoltanBojthe commented 1 year ago

For reproduce your bug, need more information: Which inet version was used when the error occurred? Could you attach your modified ned/ini files?

Your patch is unnecessary, the EthernetMacHeaderInserter and EthernetEncapsulation modules contain code for replace 00-00-00-00-00-00 source MacAddress to MacAddress of the sender interface.

ZoltanBojthe commented 1 year ago

Fixed in INET master.