mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
vendor: Update pfilter (fixes #4537)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4539
This commit is contained in:
parent
ce29d3a574
commit
67c39b2512
4
vendor/github.com/AudriusButkevicius/pfilter/conn.go
generated
vendored
4
vendor/github.com/AudriusButkevicius/pfilter/conn.go
generated
vendored
@ -7,6 +7,9 @@ import (
|
||||
)
|
||||
|
||||
type FilteredConn struct {
|
||||
// Alignment
|
||||
deadline atomic.Value
|
||||
|
||||
source *PacketFilter
|
||||
priority int
|
||||
|
||||
@ -14,7 +17,6 @@ type FilteredConn struct {
|
||||
|
||||
filter Filter
|
||||
|
||||
deadline atomic.Value
|
||||
closed chan struct{}
|
||||
}
|
||||
|
||||
|
7
vendor/github.com/AudriusButkevicius/pfilter/filter.go
generated
vendored
7
vendor/github.com/AudriusButkevicius/pfilter/filter.go
generated
vendored
@ -26,13 +26,14 @@ func NewPacketFilter(conn net.PacketConn) *PacketFilter {
|
||||
|
||||
// PacketFilter embeds a net.PacketConn to perform the filtering.
|
||||
type PacketFilter struct {
|
||||
// Alignment
|
||||
dropped uint64
|
||||
overflow uint64
|
||||
|
||||
net.PacketConn
|
||||
|
||||
conns []*FilteredConn
|
||||
mut sync.Mutex
|
||||
|
||||
dropped uint64
|
||||
overflow uint64
|
||||
}
|
||||
|
||||
// NewConn returns a new net.PacketConn object which filters packets based
|
||||
|
4
vendor/manifest
vendored
4
vendor/manifest
vendored
@ -29,7 +29,7 @@
|
||||
"importpath": "github.com/AudriusButkevicius/pfilter",
|
||||
"repository": "https://github.com/AudriusButkevicius/pfilter",
|
||||
"vcs": "git",
|
||||
"revision": "09b3cfdd04de89f0196caecb0b335d7149a6593a",
|
||||
"revision": "56143fe9cebe95636de1275acf30fcca36a1383d",
|
||||
"branch": "master",
|
||||
"notests": true
|
||||
},
|
||||
@ -679,4 +679,4 @@
|
||||
"notests": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user