mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-18 04:49:55 +00:00
We'd like to benefit from the memory reduction from: https://github.com/google/gopacket/pull/377 I just ran: $ gvt update github.com/google/gopacket Fixes: https://github.com/weaveworks/scope/issues/2905
24 lines
539 B
Go
24 lines
539 B
Go
// Copyright 2012 Google, Inc. All rights reserved.
|
|
// Copyright 2009-2011 Andreas Krennmair. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license
|
|
// that can be found in the LICENSE file in the root of the source
|
|
// tree.
|
|
|
|
package pcap
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
func (p *Handle) openLive() error {
|
|
// do nothing
|
|
return nil
|
|
}
|
|
|
|
// waitForPacket waits for a packet or for the timeout to expire.
|
|
func (p *Handle) waitForPacket() {
|
|
// can't use select() so instead just switch goroutines
|
|
runtime.Gosched()
|
|
}
|