diff --git a/cmd/rtrdump/rtrdump.go b/cmd/rtrdump/rtrdump.go index 76c196e..136673c 100644 --- a/cmd/rtrdump/rtrdump.go +++ b/cmd/rtrdump/rtrdump.go @@ -113,6 +113,8 @@ func (c *Client) HandlePDU(cs *rtr.ClientSession, pdu rtr.PDU) { log.Debugf("Received: %v", pdu) } case *rtr.PDUEndOfData: + c.Data.Metadata.SessionID = int(pdu.SessionId) + c.Data.Metadata.Serial = int(pdu.SerialNumber) cs.Disconnect() log.Debugf("Received: %v", pdu) case *rtr.PDUCacheResponse: diff --git a/prefixfile/prefixfile.go b/prefixfile/prefixfile.go index f2721ee..0f1490c 100644 --- a/prefixfile/prefixfile.go +++ b/prefixfile/prefixfile.go @@ -19,6 +19,8 @@ type MetaData struct { CountBgpSecKeys int `json:"bgpsec_pubkeys"` Buildtime string `json:"buildtime,omitempty"` GeneratedUnix *int64 `json:"generated,omitempty"` + SessionID int `json:"sessionid,omitempty"` + Serial int `json:"serial"` } type VRPJson struct {