Replace ASN storage facility with Red Black tree macros (RB_)

This commit is contained in:
Job Snijders
2021-08-20 00:50:56 +00:00
parent 80b7dcf4de
commit b481111cf6
4 changed files with 532 additions and 865 deletions

7
main.c
View File

@@ -449,14 +449,18 @@ main(int argc, char* argv[])
case V_CISCO:
case V_MIKROTIK:
expander.aswidth = 4;
break;
case V_CISCO_XR:
expander.aswidth = 6;
break;
case V_JUNIPER:
case V_NOKIA:
case V_NOKIA_MD:
expander.aswidth = 8;
break;
case V_BIRD:
expander.aswidth = 10;
break;
}
} else if (expander.generation == T_OASPATH) {
int vendor = expander.vendor;
@@ -464,12 +468,15 @@ main(int argc, char* argv[])
case V_ARISTA:
case V_CISCO:
expander.aswidth = 5;
break;
case V_CISCO_XR:
expander.aswidth = 7;
break;
case V_JUNIPER:
case V_NOKIA:
case V_NOKIA_MD:
expander.aswidth = 8;
break;
}
}
}