| 29 | } |
| 30 | |
| 31 | type DHCP struct { |
| 32 | OnError func(err error) |
| 33 | |
| 34 | mu sync.RWMutex |
| 35 | macs map[string][]string |
| 36 | addrs map[string][]string |
| 37 | names map[string][]string |
| 38 | fileInfo fileInfo |
| 39 | expires time.Time |
| 40 | } |
| 41 | |
| 42 | func (r *DHCP) refreshLocked() { |
| 43 | now := time.Now() |
nothing calls this directly
no outgoing calls
no test coverage detected