Lines Matching refs:rtmsg
85 const struct rtmsg *const rtmsg = opaque_data; in decode_route_addr() local
87 decode_inet_addr(tcp, addr, len, rtmsg->rtm_family, NULL); in decode_route_addr()
293 struct rtmsg rtmsg = { .rtm_family = family }; in DECL_NETLINK_ROUTE_DECODER() local
294 size_t offset = sizeof(rtmsg.rtm_family); in DECL_NETLINK_ROUTE_DECODER()
297 PRINT_FIELD_XVAL("{", rtmsg, rtm_family, addrfams, "AF_???"); in DECL_NETLINK_ROUTE_DECODER()
300 if (len >= sizeof(rtmsg)) { in DECL_NETLINK_ROUTE_DECODER()
302 sizeof(rtmsg) - offset, in DECL_NETLINK_ROUTE_DECODER()
303 (char *) &rtmsg + offset)) { in DECL_NETLINK_ROUTE_DECODER()
304 PRINT_FIELD_U("", rtmsg, rtm_dst_len); in DECL_NETLINK_ROUTE_DECODER()
305 PRINT_FIELD_U(", ", rtmsg, rtm_src_len); in DECL_NETLINK_ROUTE_DECODER()
306 PRINT_FIELD_FLAGS(", ", rtmsg, rtm_tos, in DECL_NETLINK_ROUTE_DECODER()
308 PRINT_FIELD_XVAL(", ", rtmsg, rtm_table, in DECL_NETLINK_ROUTE_DECODER()
310 PRINT_FIELD_XVAL(", ", rtmsg, rtm_protocol, in DECL_NETLINK_ROUTE_DECODER()
312 PRINT_FIELD_XVAL(", ", rtmsg, rtm_scope, in DECL_NETLINK_ROUTE_DECODER()
314 PRINT_FIELD_XVAL(", ", rtmsg, rtm_type, in DECL_NETLINK_ROUTE_DECODER()
316 PRINT_FIELD_FLAGS(", ", rtmsg, rtm_flags, in DECL_NETLINK_ROUTE_DECODER()
324 offset = NLMSG_ALIGN(sizeof(rtmsg)); in DECL_NETLINK_ROUTE_DECODER()
330 ARRAY_SIZE(rtmsg_nla_decoders), &rtmsg); in DECL_NETLINK_ROUTE_DECODER()