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")
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 availablecontrol_input_t
value. That function cannot fail and willABORT()
if the available values are exhausted.Fixes: 94a69675b5cb ("graph: sanitize dynamic node attach to parent")