"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "internal/dhcpd/nclient4/client_test.go" between
AdGuardHome-0.104.1.tar.gz and AdGuardHome-0.104.3.tar.gz

About: AdGuard Home is a network-wide ads & trackers blocking DNS server. It operates as a DNS server that re-routes tracking domains to a "black hole," thus preventing your devices from connecting to those servers.

client_test.go  (AdGuardHome-0.104.1):client_test.go  (AdGuardHome-0.104.3)
skipping to change at line 20 skipping to change at line 20
import ( import (
"bytes" "bytes"
"context" "context"
"fmt" "fmt"
"net" "net"
"sync" "sync"
"testing" "testing"
"time" "time"
"github.com/AdguardTeam/AdGuardHome/internal/testutil"
"github.com/hugelgupf/socketpair" "github.com/hugelgupf/socketpair"
"github.com/insomniacslk/dhcp/dhcpv4" "github.com/insomniacslk/dhcp/dhcpv4"
"github.com/insomniacslk/dhcp/dhcpv4/server4" "github.com/insomniacslk/dhcp/dhcpv4/server4"
) )
func TestMain(m *testing.M) {
testutil.DiscardLogOutput(m)
}
type handler struct { type handler struct {
mu sync.Mutex mu sync.Mutex
received []*dhcpv4.DHCPv4 received []*dhcpv4.DHCPv4
// Each received packet can have more than one response (in theory, // Each received packet can have more than one response (in theory,
// from different servers sending different Advertise, for example). // from different servers sending different Advertise, for example).
responses [][]*dhcpv4.DHCPv4 responses [][]*dhcpv4.DHCPv4
} }
func (h *handler) handle(conn net.PacketConn, peer net.Addr, m *dhcpv4.DHCPv4) { func (h *handler) handle(conn net.PacketConn, peer net.Addr, m *dhcpv4.DHCPv4) {
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)