Apply suggestions from code review
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
Yorgos Thessalonikefs authored 1 year, 7 months ago
GitHub committed 1 year, 7 months ago
566 | 566 |
/* We want comparison in the tree to include only address and port.
|
567 | 567 |
* We don't care about comparing node->net. All addresses in the
|
568 | 568 |
* acl_interface->tree should have either 32 (ipv4) or 128 (ipv6).
|
569 | |
* Initialise with the appropriate compare fucntion but keep treating
|
|
569 |
* Initialise with the appropriate compare function but keep treating
|
570 | 570 |
* it as an addr_tree. */
|
571 | 571 |
addr_tree_addrport_init(&acl_interface->tree);
|
572 | 572 |
}
|
119 | 119 |
void acl_list_delete(struct acl_list* acl);
|
120 | 120 |
|
121 | 121 |
/**
|
122 | |
* Insert interface in the alc_list. This should happen when the listening
|
|
122 |
* Insert interface in the acl_list. This should happen when the listening
|
123 | 123 |
* interface is setup.
|
124 | 124 |
* @param acl_interface: acl_list to insert to.
|
125 | 125 |
* @param addr: interface IP.
|