plugin/trace: fix struct allignment (#4112)
* plugin/trace: fix struct allignment A 64 bit entity needs to be the first in a struct to make it work on 32 bit systems. Fixes: #4111 Signed-off-by: Miek Gieben <miek@miek.nl> * plugin/erratic does makes the same mistake Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
04af1c692c
commit
e082bb5a61
2 changed files with 6 additions and 7 deletions
|
@ -13,15 +13,13 @@ import (
|
|||
|
||||
// Erratic is a plugin that returns erratic responses to each client.
|
||||
type Erratic struct {
|
||||
drop uint64
|
||||
|
||||
q uint64 // counter of queries
|
||||
drop uint64
|
||||
delay uint64
|
||||
duration time.Duration
|
||||
|
||||
truncate uint64
|
||||
large bool // undocumented feature; return large responses for A request (>512B, to test compression).
|
||||
|
||||
q uint64 // counter of queries
|
||||
duration time.Duration
|
||||
large bool // undocumented feature; return large responses for A request (>512B, to test compression).
|
||||
}
|
||||
|
||||
// ServeDNS implements the plugin.Handler interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue