rjarry / grout

grout # a graph router based on DPDK
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

graph: add duplicate checks for all dynamic nodes #41

Closed rjarry closed 2 weeks ago

rjarry commented 2 weeks ago

Ensure we don't register two handlers for the same ether type, ip proto, tunnel output interface type or control input type.

To avoid storing information about other modules (IP/ARP) into the infra module, change gr_control_input_register_handler to automatically return the next available control_input_t value. That function cannot fail and will ABORT() if the available values are exhausted.

Fixes: 94a69675b5cb ("graph: sanitize dynamic node attach to parent")