]> git.puffer.fish Git - mirror/frr.git/commit
lib: allow traps with differently indexed objects
authorPat Ruddy <pat@voltanet.io>
Wed, 21 Oct 2020 17:22:06 +0000 (18:22 +0100)
committerPat Ruddy <pat@voltanet.io>
Tue, 2 Feb 2021 09:37:14 +0000 (09:37 +0000)
commit4eb8c74f6cdddb310353b397edcda466b2a7e210
tree3d9e62d5b414e2abd1cb9fa96e9c145b27db82b6
parent98a9144fb427ad234dae0a62f57be9e1da51729f
lib: allow traps with differently indexed objects

The function smux_trap only allows the paaasin of one index which is
applied to all indexed objects. However there is a requirement for
differently indexed objects within a singe trap. This commit
introduces a new function smux_trap_multi_index which can be called
with an array of indices. If this array is onf length 1 the original
smux_trap behaviour is maintained. smux_trap now calls the new
function with and index array length of 1 to avoid changes to
existing callers.

Signed-off-by: Pat Ruddy <pat@voltanet.io>
lib/agentx.c
lib/smux.h