* defs.h (routing_types): New xlat prototype.
* rtnl_neigh.c (decode_ndmsg): Fix ndm_type decode.
* xlat/nda_types.in: Remove it.
* tests/netlink_route.c (test_rtnl_neigh): Update the test.
* tests/nlattr_ndmsg.c (init_ndmsg, print_ndmsg): Likewise.
extern const struct xlat resource_flags[];
extern const struct xlat routing_scopes[];
extern const struct xlat routing_table_ids[];
+extern const struct xlat routing_types[];
extern const struct xlat setns_types[];
extern const struct xlat sg_io_info[];
extern const struct xlat socketlayers[];
# include <linux/neighbour.h>
#endif
-#include "xlat/nda_types.h"
#include "xlat/neighbor_cache_entry_flags.h"
#include "xlat/neighbor_cache_entry_states.h"
#include "xlat/rtnl_neigh_attrs.h"
neighbor_cache_entry_flags,
"NTF_???");
PRINT_FIELD_XVAL(", ", ndmsg, ndm_type,
- nda_types, "NDA_???");
+ routing_types, "RTN_???");
decode_nla = true;
}
} else
.ndm_ifindex = ifindex_lo(),
.ndm_state = NUD_PERMANENT,
.ndm_flags = NTF_PROXY,
- .ndm_type = NDA_UNSPEC
+ .ndm_type = RTN_UNSPEC
};
TEST_NL_ROUTE(fd, nlh0, RTM_GETNEIGH, msg,
printf(", ndm_ifindex=" IFINDEX_LO_STR
", ndm_state=NUD_PERMANENT"
", ndm_flags=NTF_PROXY"
- ", ndm_type=NDA_UNSPEC}"));
+ ", ndm_type=RTN_UNSPEC}"));
}
static void
.ndm_ifindex = ifindex_lo(),
.ndm_state = NUD_PERMANENT,
.ndm_flags = NTF_PROXY,
- .ndm_type = NDA_UNSPEC
+ .ndm_type = RTN_UNSPEC
);
}
", ndm_ifindex=" IFINDEX_LO_STR
", ndm_state=NUD_PERMANENT"
", ndm_flags=NTF_PROXY"
- ", ndm_type=NDA_UNSPEC}",
+ ", ndm_type=RTN_UNSPEC}",
msg_len);
}
+++ /dev/null
-NDA_UNSPEC 0
-NDA_DST 1
-NDA_LLADDR 2
-NDA_CACHEINFO 3
-NDA_PROBES 4
-NDA_VLAN 5
-NDA_PORT 6
-NDA_VNI 7
-NDA_IFINDEX 8
-NDA_MASTER 9
-NDA_LINK_NETNSID 10
-NDA_SRC_VNI 11