Lines Matching refs:rtm
731 struct rtmsg *rtm; in rtm_to_fib_config() local
733 err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX, in rtm_to_fib_config()
740 rtm = nlmsg_data(nlh); in rtm_to_fib_config()
742 if (!inet_validate_dscp(rtm->rtm_tos)) { in rtm_to_fib_config()
748 cfg->fc_dscp = inet_dsfield_to_dscp(rtm->rtm_tos); in rtm_to_fib_config()
750 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib_config()
751 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config()
752 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib_config()
753 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config()
754 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config()
755 cfg->fc_flags = rtm->rtm_flags; in rtm_to_fib_config()
913 struct rtmsg *rtm; in ip_valid_fib_dump_req() local
918 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { in ip_valid_fib_dump_req()
923 rtm = nlmsg_data(nlh); in ip_valid_fib_dump_req()
924 if (rtm->rtm_dst_len || rtm->rtm_src_len || rtm->rtm_tos || in ip_valid_fib_dump_req()
925 rtm->rtm_scope) { in ip_valid_fib_dump_req()
930 if (rtm->rtm_flags & ~(RTM_F_CLONED | RTM_F_PREFIX)) { in ip_valid_fib_dump_req()
934 if (rtm->rtm_flags & RTM_F_CLONED) in ip_valid_fib_dump_req()
939 filter->flags = rtm->rtm_flags; in ip_valid_fib_dump_req()
940 filter->protocol = rtm->rtm_protocol; in ip_valid_fib_dump_req()
941 filter->rt_type = rtm->rtm_type; in ip_valid_fib_dump_req()
942 filter->table_id = rtm->rtm_table; in ip_valid_fib_dump_req()
944 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, in ip_valid_fib_dump_req()
998 struct rtmsg *rtm = nlmsg_data(nlh); in inet_dump_fib() local
1000 filter.flags = rtm->rtm_flags & (RTM_F_PREFIX | RTM_F_CLONED); in inet_dump_fib()