1
0
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:
Christian Giese
2022-02-15 20:06:19 +01:00
parent 0b48509473
commit 5c9430fb51

View File

@ -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 &&