protocol.texi
来自「zebra测试源代码用于 SOCKET 通信」· TEXI 代码 · 共 53 行
TEXI
53 行
@node Zebra Protocol, Packet Binary Dump Format, SNMP Support, Top@comment node-name, next, previous, up@appendix Zebra ProtocolZebra Protocol is a protocol which is used between protocol daemon andzebra. Each protocol daemon sends selected routes to zebra daemon. Thenzebra manages which route is installed into the forwarding table.Zebra Protocol is a TCP-based protocol. Below is common header of ZebraProtocol.@example@group0 1 2 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| Length (2) | Command (1) |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+@end group@end exampleLength is total packet length including this header length. So minimumlength is three. Command is Zebra Protocol command.@exampleZEBRA_INTERFACE_ADD 1ZEBRA_INTERFACE_DELETE 2ZEBRA_INTERFACE_ADDRESS_ADD 3ZEBRA_INTERFACE_ADDRESS_DELETE 4ZEBRA_INTERFACE_UP 5ZEBRA_INTERFACE_DOWN 6ZEBRA_IPV4_ROUTE_ADD 7ZEBRA_IPV4_ROUTE_DELETE 8ZEBRA_IPV6_ROUTE_ADD 9ZEBRA_IPV6_ROUTE_DELETE 10ZEBRA_REDISTRIBUTE_ADD 11ZEBRA_REDISTRIBUTE_DELETE 12ZEBRA_REDISTRIBUTE_DEFAULT_ADD 13ZEBRA_REDISTRIBUTE_DEFAULT_DELETE 14ZEBRA_IPV4_NEXTHOP_LOOKUP 15ZEBRA_IPV6_NEXTHOP_LOOKUP 16@end example@example@group0 1 2 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+| Type | Flags |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+@end group@end example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?