From 984e8802f78814898e2d9f96fe8e6e5600f88a6f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 3 Jul 2018 17:37:25 +0200 Subject: [PATCH] dhcp6: log XIDs when they differ Encountering this message can be perfectly normal, e.g. in a high-availability setup, where two DHCP servers answer to your requests. --- internal/dhcp6/dhcp6.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dhcp6/dhcp6.go b/internal/dhcp6/dhcp6.go index 06d758c..e072a23 100644 --- a/internal/dhcp6/dhcp6.go +++ b/internal/dhcp6/dhcp6.go @@ -208,7 +208,7 @@ func (c *Client) sendReceive(packet dhcpv6.DHCPv6, expectedType dhcpv6.MessageTy // XXX should this unpack relay messages and check the XID of the // inner packet too? if msg.TransactionID() != recvMsg.TransactionID() { - log.Printf("different XID") + log.Printf("different XID: got %v, want %v", recvMsg.TransactionID(), msg.TransactionID()) // different XID, we don't want this packet for sure continue }