Skip to content

Packet craft logic from Device #225

@Manuel-Pol

Description

@Manuel-Pol

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions