Transaction is a locked transaction of the dnsmasq config files that allows IP allocations for a host.
| 98 | |
| 99 | // Transaction is a locked transaction of the dnsmasq config files that allows IP allocations for a host. |
| 100 | type Transaction struct { |
| 101 | opts *Options |
| 102 | currentDHCPMAC net.HardwareAddr |
| 103 | currentDHCPv4 dnsmasq.DHCPAllocation |
| 104 | currentDHCPv6 dnsmasq.DHCPAllocation |
| 105 | allocationsDHCPv4 map[[4]byte]dnsmasq.DHCPAllocation |
| 106 | allocationsDHCPv6 map[[16]byte]dnsmasq.DHCPAllocation |
| 107 | allocatedIPv4 net.IP |
| 108 | allocatedIPv6 net.IP |
| 109 | } |
| 110 | |
| 111 | // AllocateIPv4 allocate an IPv4 static DHCP allocation. |
| 112 | func (t *Transaction) AllocateIPv4() (net.IP, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected