mirror of
https://github.com/ScottESanDiego/virtwold.git
synced 2024-12-22 13:45:33 +00:00
Add capture for len=102, which Moonlight client sends now
This commit is contained in:
parent
a372d706b8
commit
6e37945f95
@ -7,7 +7,7 @@
|
||||
// Assumes the VM has a static MAC configured
|
||||
// Assumes libvirtd connection is at /var/run/libvirt/libvirt-sock
|
||||
//
|
||||
// Filters on len=144 (WOL packet) and len=234 (WOL packet with password)
|
||||
// Filters on len=102 and len=144 (WOL packet) and len=234 (WOL packet with password)
|
||||
|
||||
package main
|
||||
|
||||
@ -29,7 +29,7 @@ import (
|
||||
func main() {
|
||||
var iface string // Interface we'll listen on
|
||||
var buffer = int32(1600) // Buffer for packets received
|
||||
var filter = "udp and broadcast and (len = 144 or len=234)" // PCAP filter to catch UDP WOL packets
|
||||
var filter = "udp and broadcast and (len = 102 or len = 144 or len=234)" // PCAP filter to catch UDP WOL packets
|
||||
|
||||
flag.StringVar(&iface, "interface", "", "Network interface name to listen on")
|
||||
flag.Parse()
|
||||
|
Loading…
Reference in New Issue
Block a user