Skip to content

Commit

Permalink
Fix bug #2 BroadcastWakeups would not actually use the supplied MAC
Browse files Browse the repository at this point in the history
This closes #2
  • Loading branch information
benjojo committed Jun 27, 2016
1 parent d115dac commit d32cbab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ func BroadcastWakeups(ifname string, sendermac string) {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

packet[0] = macbytes[0]
packet[0] = macbytes[1]
packet[0] = macbytes[2]
packet[0] = macbytes[3]
packet[0] = macbytes[4]
packet[0] = macbytes[5]
packet[1] = macbytes[1]
packet[2] = macbytes[2]
packet[3] = macbytes[3]
packet[4] = macbytes[4]
packet[5] = macbytes[5]

for {
conn, err := raw.ListenPacket(ifc, raw.ProtocolARP)
Expand Down

0 comments on commit d32cbab

Please sign in to comment.