mirror of
https://github.com/rtbrick/bngblaster.git
synced 2024-05-06 15:54:57 +00:00
ISIS MRT header length field
This commit is contained in:
@ -40,6 +40,7 @@ isis_mrt_load(isis_instance_t *instance, char *file_path) {
|
|||||||
while(fread(&mrt, sizeof(isis_mrt_hdr_t), 1, mrt_file) == 1) {
|
while(fread(&mrt, sizeof(isis_mrt_hdr_t), 1, mrt_file) == 1) {
|
||||||
mrt.type = be16toh(mrt.type);
|
mrt.type = be16toh(mrt.type);
|
||||||
mrt.subtype = be16toh(mrt.subtype);
|
mrt.subtype = be16toh(mrt.subtype);
|
||||||
|
mrt.length = be32toh(mrt.length);
|
||||||
//LOG(DEBUG, "MRT type: %u subtype: %u length: %u\n", mrt.type, mrt.subtype, mrt.length);
|
//LOG(DEBUG, "MRT type: %u subtype: %u length: %u\n", mrt.type, mrt.subtype, mrt.length);
|
||||||
if(!(mrt.type == ISIS_MRT_TYPE &&
|
if(!(mrt.type == ISIS_MRT_TYPE &&
|
||||||
mrt.subtype == 0 &&
|
mrt.subtype == 0 &&
|
||||||
|
Reference in New Issue
Block a user