diff --git a/cmd/rtrdump/rtrdump.go b/cmd/rtrdump/rtrdump.go index fc77a0c..4b77320 100644 --- a/cmd/rtrdump/rtrdump.go +++ b/cmd/rtrdump/rtrdump.go @@ -15,7 +15,6 @@ import ( "net" "os" "runtime" - "time" ) const ( @@ -102,10 +101,6 @@ func (c *Client) HandlePDU(cs *rtr.ClientSession, pdu rtr.PDU) { log.Debugf("Received: %v", pdu) } case *rtr.PDUEndOfData: - t := time.Now().UTC().UnixNano() / 1000000000 - c.Data.Metadata.Generated = int(t) - c.Data.Metadata.Valid = int(t) + int(pdu.RefreshInterval) - c.Data.Metadata.Serial = int(pdu.SerialNumber) cs.Disconnect() log.Debugf("Received: %v", pdu) case *rtr.PDUCacheResponse: diff --git a/cmd/rtrmon/rtrmon.go b/cmd/rtrmon/rtrmon.go index 6948190..a327371 100644 --- a/cmd/rtrmon/rtrmon.go +++ b/cmd/rtrmon/rtrmon.go @@ -306,7 +306,6 @@ func (c *Client) Start(id int, ch chan int) { c.compLock.Lock() c.vrps = tmpVrpMap c.lastUpdate = time.Now().UTC() - c.serial = uint32(decoded.Metadata.Serial) c.compLock.Unlock() if ch != nil { ch <- id