[SOLVED] ARP problem




[SOLVED] ARP problem

Postby Mixony » 13. Apr 2017, 19:19

I did episode A02 and when i send ARP Request it sends FF FF FF FF FF FF as srcMAC and dstMAC. and FF FF FF FF as srcIP and 02 02 00 0A as dstIP.
I get response with correct dstIP and dstMAC but all FF srcMAC and srcIP.
When I add printing of GetIPAddress anywhere in kernelMain after SetIPAddress it prints 0F 02 00 0A
but when i run it in Request it prints FF FF FF FF
did anyone had this problem before?

https://www.dropbox.com/s/9dunpo3cyhzcaeu/epA2.zip?dl=0

This is the code.
Konzola::pisi(char *) is printf(char*)
Konzola::pisiHeks(uint8_t) is printfHex(uint8_t)

Thanks in advance.
Mixony
 
Posts: 24
Joined: 12. Mar 2017, 08:18

by Advertising » 13. Apr 2017, 19:19

Advertising
 

Re: ARP problem

Postby Mixony » 14. Apr 2017, 10:50

I found mistake. I've put EtherFrameProvider* backend; in protected area in class AddressResolutionProtocol : public EtherFrameHandler but it doesnt need it there because it inherits it from EtherFrameHandler.
Mixony
 
Posts: 24
Joined: 12. Mar 2017, 08:18


Return to Network & Network-Protocols

Who is online

No registered users

cron