-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Move packet craft logic (sendIpPacket(), Echo’s packet craft in sendSingleEcho(), ARP’s packet craft in sendRequest(), etc.) to Device class, dividing it into recursive modules.
For example, to run a ping from device A to device B, the programs flow would be:
Call SingleEcho’s sendSingleEcho() that would get the source and destination devices --> within the method, call source device’s module to craft an EchoRequest packet --> call IP datagram module inside device ICMP module --> call Ethernet frame module inside IP module --> call sendViewPacket() inside Ethernet frame module --> return the process result "upwards".
This would make the program to have a clearer responsabilities division and a better handling of scenarios.
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Ready