mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-09 08:01:31 +00:00
tstest/integration: add tests for tun mode (requiring root)
Updates #7894 Change-Id: Iff0b07b21ae28c712dd665b12918fa28d6f601d0 Co-authored-by: Maisem Ali <maisem@tailscale.com> Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
a6270826a3
commit
c363b9055d
@@ -484,9 +484,9 @@ func (p *pingResultAndCallback) reply() bool {
|
||||
return p != nil && p.taken.CompareAndSwap(false, true)
|
||||
}
|
||||
|
||||
// discoPing starts a disc-level ping for the "tailscale ping" command (or other
|
||||
// discoPing starts a disco-level ping for the "tailscale ping" command (or other
|
||||
// callers, such as c2n). res is value to call cb with, already partially
|
||||
// filled. cb must be called at most once. Once called, ownership of res passes to db.
|
||||
// filled. cb must be called at most once. Once called, ownership of res passes to cb.
|
||||
func (de *endpoint) discoPing(res *ipnstate.PingResult, size int, cb func(*ipnstate.PingResult)) {
|
||||
de.mu.Lock()
|
||||
defer de.mu.Unlock()
|
||||
|
Reference in New Issue
Block a user