Skip to content

Commit

Permalink
Add documentation of package structure
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hauschild <[email protected]>
  • Loading branch information
Florian Hauschild authored and axel-h committed Jul 12, 2022
1 parent 806625a commit 9f0a534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/Arm/vm_virtio_net/components/PingClient/ping_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ int create_arp_req_reply(char *recv_data, unsigned int recv_data_size)
{
char reply_buffer[ETHERMTU];

// recv_data holds a packet of the form:
// +--------+-----------+
// | ethhdr | ether_arp |
// +--------+-----------+
struct ether_arp *arp_req = (struct ether_arp *)(recv_data + sizeof(struct ethhdr));

struct ethhdr *send_reply = (struct ethhdr *) reply_buffer;
Expand Down

0 comments on commit 9f0a534

Please sign in to comment.