Struct bgp_models::mrt::MrtRecord [−][src]
pub struct MrtRecord {
pub common_header: CommonHeader,
pub message: MrtMessage,
}
Expand description
MrtRecord is a wrapper struct that contains a header and a message.
A MRT record is constructed as the following:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Header... (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Message... (variable)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
See CommonHeader for the content in header, and MrtMessage for the message format.
Fields
common_header: CommonHeader
message: MrtMessage