iproute2/bridge
Benjamin Poirier d205b5cf38 bridge: Provide rta_type()
Factor out the repeated code pattern
rta_type = attr->rta_type & NLA_TYPE_MASK
into a helper which is similar to the existing kernel function nla_type().

Reviewed-by: Petr Machata <petrm@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2023-12-22 09:58:16 -08:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: make print_vlan_info static 2023-06-02 09:33:34 -07:00
bridge.c bridge: vni: Fix vni filter help strings 2023-12-22 09:54:23 -08:00
fdb.c bridge: fdb: support match on [no]router flag in flush command 2023-10-20 09:43:05 -06:00
link.c bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
Makefile bridge: vxlan device vnifilter support 2022-05-08 09:50:32 -06:00
mdb.c bridge: mdb: Add get support 2023-11-06 10:08:50 -07:00
monitor.c bridge: use SPDX 2023-01-14 09:00:34 -08:00
vlan.c bridge: Provide rta_type() 2023-12-22 09:58:16 -08:00
vni.c bridge: Provide rta_type() 2023-12-22 09:58:16 -08:00