dhcp for dual tor: include all vlan intf into downstream intf (#6990)

* include all vlan intf into downstream intf

* add a comment
This commit is contained in:
trzhang-msft 2021-03-09 18:12:44 -08:00 committed by GitHub
parent f6fb72b7b6
commit 4e4f76c7ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,7 @@ index e158efe..055d97f 100644
(flags & INTERFACE_UPSTREAM ? 'Y' : 'N'),
(flags & INTERFACE_DOWNSTREAM ? 'Y' : 'N'));
+ if (flags & INTERFACE_DOWNSTREAM) {
+ if (flags & INTERFACE_DOWNSTREAM || flags & INTERFACE_UPSTREAM) { /* include all vlan intf in downstream_intf_list */
+ ci = ((struct downstream_intf_list *)dmalloc(sizeof *ci, MDL));
+ if (!ci)
+ log_fatal("no memory for downstream interface pointer.\n");