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.
This commit is contained in:
parent
b05fd74006
commit
984e8802f7
@ -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
|
// XXX should this unpack relay messages and check the XID of the
|
||||||
// inner packet too?
|
// inner packet too?
|
||||||
if msg.TransactionID() != recvMsg.TransactionID() {
|
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
|
// different XID, we don't want this packet for sure
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user