Skip to content

Commit

Permalink
Update with some additional comments to help explain the program.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvcraven authored Nov 23, 2021
1 parent 65265ee commit 45e798e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions send_raw_ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <netinet/ether.h>
#include <unistd.h>

/* Replace the bytes below with the MAC address
/* ALERT: Replace the bytes below with the MAC address
you are sending to.
So if 'ifconfig' on the RECEIVER (not the sender) says:
wlan0 Link encap:Ethernet HWaddr b8:27:eb:44:08:62
Expand All @@ -41,7 +41,10 @@
#define DEST_MAC4 0x08
#define DEST_MAC5 0x62

/* ALERT: Update the field below to specify what network
adapter should we send data through. */
#define DEFAULT_IF "wlan0"

#define BUF_SIZ 1024

int main(int argc, char *argv[])
Expand Down Expand Up @@ -111,7 +114,7 @@ int main(int argc, char *argv[])
sendbuf[tx_len++] = 0x00;

/*
Packet data
UPDATE: Packet data
This is the 'payload'. Replace this with your real data.
Because you'll probably have more interesting things to send
than the hex 0xDEAD 0xBEEF
Expand Down

0 comments on commit 45e798e

Please sign in to comment.