summaryrefslogtreecommitdiffstats
path: root/zebra/debug_nl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zebra: add some more netlink RTA_ stringsMark Stapp2024-05-091-0/+6
| | | | | | | Add a few more RTA_ attribute names to the netlink debug output. Signed-off-by: Mark Stapp <mjs@cisco.com>
* zebra: debug ifname in netlink link debugsMark Stapp2023-10-201-0/+1
| | | | | | Print the ifname with netlink LINK debug output. Signed-off-by: Mark Stapp <mjs@labn.net>
* *: manual SPDX License ID conversionsDavid Lamparter2023-02-091-12/+1
| | | | | | | | | | The files converted in this commit either had some random misspelling or formatting weirdness that made them escape automated replacement, or have a particularly "weird" licensing setup (e.g. dual-licensed.) This also marks a bunch of "public domain" files as SPDX License "NONE". Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* zebra: add tc netlink and dplane opsSiger Yang2022-08-101-0/+35
| | | | | | | | This commit implements necessary netlink encoders for traffic control including QDISC, TCLASS and TFILTER, and adds basic dplane operations. Co-authored-by: Stephen Worley <sworley@nvidia.com> Signed-off-by: Siger Yang <siger.yang@outlook.com>
* zebra: debug decode RTA_EXPIRES and RTA_MFC_STATSDavid Lamparter2022-07-071-0/+17
| | | | | | | Just adding two more attributes to decode and show nicely in netlink msgdump debug output. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* zebra: rtnetlink: flow attr per gateway attr in multipath updatesRicardo2022-06-231-2/+3
| | | | Signed-off-by: Ricardo <rbarroetavena@anura.com.ar>
* Merge pull request #11216 from chiragshah6/fdev2Sri Mohana Singamsetty2022-05-191-0/+59
|\ | | | | zebra: netlink registry of rtm tunnel notification
| * zebra: add netlink tunnel msg to dump routineChirag Shah2022-05-181-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch parses vxlan vnifilter rtm tunnel message which contains vni mapping to vxlan device. The new notifications are RTM_NEWTUNNEL, RTM_DELTUNNEL, and RTM_GETTUNNEL. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/ linux.git/commit/?h=v5.18-rc7&id=7b8135f4df98b155b23754b6065c157861e268f1 Testing Done: 2022/05/18 00:34:25 ZEBRA: netlink_recv_msg: << netlink message dump [recv] 2022/05/18 00:34:25 ZEBRA: nlmsghdr [len=36 type=(120) NEWTUNNEL flags=(0x0000) {} seq=0 pid=0] 2022/05/18 00:34:25 ZEBRA: tnlm [family=(7) AF_BRIDGE ifindex=46 2022/05/18 00:34:25 ZEBRA: vni_start 4001, vni_end 0 Signed-off-by: Chirag Shah <chirag@nvidia.com>
* | zebra: add protocol name to nexthop dumpChirag Shah2022-05-161-0/+6
|/ | | | Signed-off-by: Chirag Shah <chirag@nvidia.com>
* zebra: Add encap and group type decoding to nexthop dumpDonald Sharp2022-05-131-1/+41
| | | | | | | Add the ability to give data about the nexthop group type and encap type so that it is human readable. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* zebra: add support for protodown reason codeStephen Worley2022-03-091-9/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for setting the protodown reason code. https://github.com/torvalds/linux/commit/829eb208e80d6db95c0201cb8fa00c2f9ad87faf These patches handle all our netlink code for setting the reason. For protodown reason we only set `frr` as the reason externally but internally we have more descriptive reasoning available via `show interface IFNAME`. The kernel only provides a bitwidth of 32 that all userspace programs have to share so this makes the most sense. Since this is new functionality, it needs to be added to the dplane pthread instead. So these patches, also move the protodown setting we were doing before into the dplane pthread. For this, we abstract it a bit more to make it a general interface LINK update dplane API. This API can be expanded to support gernal link creation/updating when/if someone ever adds that code. We also move a more common entrypoint for evpn-mh and from zapi clients like vrrpd. They both call common code now to set our internal flags for protodown and protodown reason. Also add debugging code for dumping netlink packets with protodown/protodown_reason. Signed-off-by: Stephen Worley <sworley@nvidia.com>
* zebra: add netlink debug dump for netconf messagesMark Stapp2022-02-251-0/+93
| | | | | | | Add the RTM_NETCONF messages to the detailed netlink message dump module. Signed-off-by: Mark Stapp <mstapp@nvidia.com>
* zebra: cleanup multiline strings in debug_nl.cTrey Aspelund2022-02-101-13/+6
| | | | | | | NetDEF CI has been whining about multiline string style. Make the strings single-line and call it a day. Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
* zebra: add netlink debugs for ip rulesTrey Aspelund2022-02-101-0/+201
| | | | | | | Adds functions to parse + decode netlink rules. Adds RTM_NEWRULE + RTM_DELRULE to "debug zebra kernel". Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
* zebra: debug_nl.c ensure we can read RTM_NEWNEIGH bridge nested attrsDonald Sharp2021-10-281-1/+1
| | | | | | | The kernel can return to us nested attributes for BRIDGE RTM_NEWNEIGH attributes. Just ensure that we can parse and read them. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* zebra: Fix netlink RTM_NEWNEXTHOP parsing for nested attributesDonald Sharp2021-10-281-1/+1
| | | | | | | | | | | | With the addition of resillient hashing for nexthops, the parsing of nexthops requires telling the decoder functions that there may be nested attributes. This was found by code inspection of iproute2/ipnexthop.c when trying to understand resillient hashing as well as statistics gathering for nexthops that are / will be in upstream kernels in the near future. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* include, zebra: Add recent nexthop.hDonald Sharp2021-10-251-0/+1
| | | | | | | | | Add actual recent nexthop.h file from kernel and fix up resulting fallout because FRR's original nexthop.h did not match upstream linux kernel. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
* zebra: human readable netlink dumpsRafael Zalamena2020-09-241-0/+1246
Add new compile option to enable human readable netlink dumps with `debug zebra kernel msgdump`. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>