]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_mpls_openbsd.c
zebra: increase maximum label stack depth
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 22 Aug 2017 20:01:54 +0000 (17:01 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 22 Aug 2017 20:37:58 +0000 (17:37 -0300)
commit5e8c8947e3fb53d2fdbdf804c6014d6ecdb0b904
tree6d88033457ec6eb6022ba189b90afc47827f85d1
parent1d84515ca9d0a5e543be7e8e7ca9afc8b744e662
zebra: increase maximum label stack depth

* Bump MPLS_MAX_LABELS from 2 to 16;
* Adjust the static_nh_label structure and the mpls_label2str() function;
* On OpenBSD, print an error message when trying to push more than one
  label at once (kernel limitation). While here, add support for MPLSv6
  FTNs in OpenBSD.

This is not the full package. We still can't pop multiple labels at once,
or do things like swap a label and push other ones. We'll address that
in the future.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/rt_socket.c
zebra/zebra_mpls.c
zebra/zebra_mpls.h
zebra/zebra_mpls_openbsd.c
zebra/zebra_static.h