rtm 84 drivers/rtc/rtc-ls1x.c static int ls1x_rtc_read_time(struct device *dev, struct rtc_time *rtm) rtm 92 drivers/rtc/rtc-ls1x.c memset(rtm, 0, sizeof(struct rtc_time)); rtm 96 drivers/rtc/rtc-ls1x.c rtc_time64_to_tm(t, rtm); rtm 101 drivers/rtc/rtc-ls1x.c static int ls1x_rtc_set_time(struct device *dev, struct rtc_time *rtm) rtm 106 drivers/rtc/rtc-ls1x.c v = ((rtm->tm_mon + 1) << LS1X_MONTH_OFFSET) rtm 107 drivers/rtc/rtc-ls1x.c | (rtm->tm_mday << LS1X_DAY_OFFSET) rtm 108 drivers/rtc/rtc-ls1x.c | (rtm->tm_hour << LS1X_HOUR_OFFSET) rtm 109 drivers/rtc/rtc-ls1x.c | (rtm->tm_min << LS1X_MIN_OFFSET) rtm 110 drivers/rtc/rtc-ls1x.c | (rtm->tm_sec << LS1X_SEC_OFFSET); rtm 123 drivers/rtc/rtc-ls1x.c t = rtm->tm_year + 1900; rtm 128 drivers/spi/spi-synquacer.c bool aces, rtm; rtm 309 drivers/spi/spi-synquacer.c if (sspi->rtm) rtm 667 drivers/spi/spi-synquacer.c sspi->rtm = device_property_read_bool(&pdev->dev, "socionext,use-rtm"); rtm 86 include/linux/mroute.h struct rtmsg *rtm, u32 portid); rtm 98 include/linux/mroute6.h struct rtmsg *rtm, u32 portid); rtm 286 include/linux/mroute_base.h struct mr_mfc *c, struct rtmsg *rtm); rtm 337 include/linux/mroute_base.h struct mr_mfc *c, struct rtmsg *rtm) rtm 564 net/decnet/dn_fib.c struct rtmsg rtm; rtm 590 net/decnet/dn_fib.c memset(&req.rtm, 0, sizeof(req.rtm)); rtm 606 net/decnet/dn_fib.c req.rtm.rtm_dst_len = dst_len; rtm 607 net/decnet/dn_fib.c req.rtm.rtm_table = tb->n; rtm 608 net/decnet/dn_fib.c req.rtm.rtm_protocol = RTPROT_KERNEL; rtm 609 net/decnet/dn_fib.c req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST); rtm 610 net/decnet/dn_fib.c req.rtm.rtm_type = type; rtm 613 net/decnet/dn_fib.c tb->insert(tb, &req.rtm, attrs, &req.nlh, NULL); rtm 615 net/decnet/dn_fib.c tb->delete(tb, &req.rtm, attrs, &req.nlh, NULL); rtm 1637 net/decnet/dn_route.c struct rtmsg *rtm = nlmsg_data(nlh); rtm 1648 net/decnet/dn_route.c err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 1700 net/decnet/dn_route.c if (rtm->rtm_flags & RTM_F_NOTIFY) rtm 1726 net/decnet/dn_route.c struct rtmsg *rtm; rtm 1734 net/decnet/dn_route.c rtm = nlmsg_data(cb->nlh); rtm 1735 net/decnet/dn_route.c if (!(rtm->rtm_flags & RTM_F_CLONED)) rtm 305 net/decnet/dn_table.c struct rtmsg *rtm; rtm 308 net/decnet/dn_table.c nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); rtm 312 net/decnet/dn_table.c rtm = nlmsg_data(nlh); rtm 313 net/decnet/dn_table.c rtm->rtm_family = AF_DECnet; rtm 314 net/decnet/dn_table.c rtm->rtm_dst_len = dst_len; rtm 315 net/decnet/dn_table.c rtm->rtm_src_len = 0; rtm 316 net/decnet/dn_table.c rtm->rtm_tos = 0; rtm 317 net/decnet/dn_table.c rtm->rtm_table = tb_id; rtm 318 net/decnet/dn_table.c rtm->rtm_flags = fi->fib_flags; rtm 319 net/decnet/dn_table.c rtm->rtm_scope = scope; rtm 320 net/decnet/dn_table.c rtm->rtm_type = type; rtm 321 net/decnet/dn_table.c rtm->rtm_protocol = fi->fib_protocol; rtm 326 net/decnet/dn_table.c if (rtm->rtm_dst_len && rtm 38 net/decnet/netfilter/dn_rtmsg.c struct nf_dn_rtmsg *rtm; rtm 54 net/decnet/netfilter/dn_rtmsg.c rtm = (struct nf_dn_rtmsg *)nlmsg_data(nlh); rtm 55 net/decnet/netfilter/dn_rtmsg.c rtm->nfdn_ifindex = rt_skb->dev->ifindex; rtm 56 net/decnet/netfilter/dn_rtmsg.c ptr = NFDN_RTMSG(rtm); rtm 735 net/ipv4/fib_frontend.c struct rtmsg *rtm; rtm 737 net/ipv4/fib_frontend.c err = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX, rtm 744 net/ipv4/fib_frontend.c rtm = nlmsg_data(nlh); rtm 745 net/ipv4/fib_frontend.c cfg->fc_dst_len = rtm->rtm_dst_len; rtm 746 net/ipv4/fib_frontend.c cfg->fc_tos = rtm->rtm_tos; rtm 747 net/ipv4/fib_frontend.c cfg->fc_table = rtm->rtm_table; rtm 748 net/ipv4/fib_frontend.c cfg->fc_protocol = rtm->rtm_protocol; rtm 749 net/ipv4/fib_frontend.c cfg->fc_scope = rtm->rtm_scope; rtm 750 net/ipv4/fib_frontend.c cfg->fc_type = rtm->rtm_type; rtm 751 net/ipv4/fib_frontend.c cfg->fc_flags = rtm->rtm_flags; rtm 906 net/ipv4/fib_frontend.c struct rtmsg *rtm; rtm 911 net/ipv4/fib_frontend.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { rtm 916 net/ipv4/fib_frontend.c rtm = nlmsg_data(nlh); rtm 917 net/ipv4/fib_frontend.c if (rtm->rtm_dst_len || rtm->rtm_src_len || rtm->rtm_tos || rtm 918 net/ipv4/fib_frontend.c rtm->rtm_scope) { rtm 923 net/ipv4/fib_frontend.c if (rtm->rtm_flags & ~(RTM_F_CLONED | RTM_F_PREFIX)) { rtm 927 net/ipv4/fib_frontend.c if (rtm->rtm_flags & RTM_F_CLONED) rtm 932 net/ipv4/fib_frontend.c filter->flags = rtm->rtm_flags; rtm 933 net/ipv4/fib_frontend.c filter->protocol = rtm->rtm_protocol; rtm 934 net/ipv4/fib_frontend.c filter->rt_type = rtm->rtm_type; rtm 935 net/ipv4/fib_frontend.c filter->table_id = rtm->rtm_table; rtm 937 net/ipv4/fib_frontend.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 991 net/ipv4/fib_frontend.c struct rtmsg *rtm = nlmsg_data(nlh); rtm 993 net/ipv4/fib_frontend.c filter.flags = rtm->rtm_flags & (RTM_F_PREFIX | RTM_F_CLONED); rtm 1733 net/ipv4/fib_semantics.c struct rtmsg *rtm; rtm 1735 net/ipv4/fib_semantics.c nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); rtm 1739 net/ipv4/fib_semantics.c rtm = nlmsg_data(nlh); rtm 1740 net/ipv4/fib_semantics.c rtm->rtm_family = AF_INET; rtm 1741 net/ipv4/fib_semantics.c rtm->rtm_dst_len = dst_len; rtm 1742 net/ipv4/fib_semantics.c rtm->rtm_src_len = 0; rtm 1743 net/ipv4/fib_semantics.c rtm->rtm_tos = tos; rtm 1745 net/ipv4/fib_semantics.c rtm->rtm_table = tb_id; rtm 1747 net/ipv4/fib_semantics.c rtm->rtm_table = RT_TABLE_COMPAT; rtm 1750 net/ipv4/fib_semantics.c rtm->rtm_type = type; rtm 1751 net/ipv4/fib_semantics.c rtm->rtm_flags = fi->fib_flags; rtm 1752 net/ipv4/fib_semantics.c rtm->rtm_scope = fi->fib_scope; rtm 1753 net/ipv4/fib_semantics.c rtm->rtm_protocol = fi->fib_protocol; rtm 1755 net/ipv4/fib_semantics.c if (rtm->rtm_dst_len && rtm 1772 net/ipv4/fib_semantics.c rtm->rtm_type = RTN_BLACKHOLE; rtm 1782 net/ipv4/fib_semantics.c rtm->rtm_flags = flags; rtm 2259 net/ipv4/ipmr.c struct rtmsg *rtm, u32 portid) rtm 2315 net/ipv4/ipmr.c err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); rtm 2326 net/ipv4/ipmr.c struct rtmsg *rtm; rtm 2329 net/ipv4/ipmr.c nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); rtm 2333 net/ipv4/ipmr.c rtm = nlmsg_data(nlh); rtm 2334 net/ipv4/ipmr.c rtm->rtm_family = RTNL_FAMILY_IPMR; rtm 2335 net/ipv4/ipmr.c rtm->rtm_dst_len = 32; rtm 2336 net/ipv4/ipmr.c rtm->rtm_src_len = 32; rtm 2337 net/ipv4/ipmr.c rtm->rtm_tos = 0; rtm 2338 net/ipv4/ipmr.c rtm->rtm_table = mrt->id; rtm 2341 net/ipv4/ipmr.c rtm->rtm_type = RTN_MULTICAST; rtm 2342 net/ipv4/ipmr.c rtm->rtm_scope = RT_SCOPE_UNIVERSE; rtm 2344 net/ipv4/ipmr.c rtm->rtm_protocol = RTPROT_STATIC; rtm 2346 net/ipv4/ipmr.c rtm->rtm_protocol = RTPROT_MROUTED; rtm 2347 net/ipv4/ipmr.c rtm->rtm_flags = 0; rtm 2352 net/ipv4/ipmr.c err = mr_fill_mroute(mrt, skb, &c->_c, rtm); rtm 2488 net/ipv4/ipmr.c struct rtmsg *rtm; rtm 2491 net/ipv4/ipmr.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { rtm 2497 net/ipv4/ipmr.c return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 2500 net/ipv4/ipmr.c rtm = nlmsg_data(nlh); rtm 2501 net/ipv4/ipmr.c if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || rtm 2502 net/ipv4/ipmr.c (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || rtm 2503 net/ipv4/ipmr.c rtm->rtm_tos || rtm->rtm_table || rtm->rtm_protocol || rtm 2504 net/ipv4/ipmr.c rtm->rtm_scope || rtm->rtm_type || rtm->rtm_flags) { rtm 2509 net/ipv4/ipmr.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 2514 net/ipv4/ipmr.c if ((tb[RTA_SRC] && !rtm->rtm_src_len) || rtm 2515 net/ipv4/ipmr.c (tb[RTA_DST] && !rtm->rtm_dst_len)) { rtm 2670 net/ipv4/ipmr.c struct rtmsg *rtm; rtm 2673 net/ipv4/ipmr.c ret = nlmsg_validate_deprecated(nlh, sizeof(*rtm), RTA_MAX, rtm 2677 net/ipv4/ipmr.c rtm = nlmsg_data(nlh); rtm 2680 net/ipv4/ipmr.c if (rtm->rtm_family != RTNL_FAMILY_IPMR || rtm->rtm_dst_len != 32 || rtm 2681 net/ipv4/ipmr.c rtm->rtm_type != RTN_MULTICAST || rtm 2682 net/ipv4/ipmr.c rtm->rtm_scope != RT_SCOPE_UNIVERSE || rtm 2683 net/ipv4/ipmr.c !ipmr_rtm_validate_proto(rtm->rtm_protocol)) rtm 2724 net/ipv4/ipmr.c *mrtsock = rtm->rtm_protocol == RTPROT_MROUTED ? 1 : 0; rtm 209 net/ipv4/ipmr_base.c struct mr_mfc *c, struct rtmsg *rtm) rtm 219 net/ipv4/ipmr_base.c rtm->rtm_flags |= RTNH_F_UNRESOLVED; rtm 229 net/ipv4/ipmr_base.c rtm->rtm_flags |= RTNH_F_OFFLOAD; rtm 266 net/ipv4/ipmr_base.c rtm->rtm_type = RTN_MULTICAST; rtm 3011 net/ipv4/route.c struct rtmsg *rtm; rtm 3014 net/ipv4/route.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { rtm 3021 net/ipv4/route.c return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 3024 net/ipv4/route.c rtm = nlmsg_data(nlh); rtm 3025 net/ipv4/route.c if ((rtm->rtm_src_len && rtm->rtm_src_len != 32) || rtm 3026 net/ipv4/route.c (rtm->rtm_dst_len && rtm->rtm_dst_len != 32) || rtm 3027 net/ipv4/route.c rtm->rtm_table || rtm->rtm_protocol || rtm 3028 net/ipv4/route.c rtm->rtm_scope || rtm->rtm_type) { rtm 3033 net/ipv4/route.c if (rtm->rtm_flags & ~(RTM_F_NOTIFY | rtm 3040 net/ipv4/route.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 3045 net/ipv4/route.c if ((tb[RTA_SRC] && !rtm->rtm_src_len) || rtm 3046 net/ipv4/route.c (tb[RTA_DST] && !rtm->rtm_dst_len)) { rtm 3086 net/ipv4/route.c struct rtmsg *rtm; rtm 3099 net/ipv4/route.c rtm = nlmsg_data(nlh); rtm 3128 net/ipv4/route.c fl4.flowi4_tos = rtm->rtm_tos; rtm 3152 net/ipv4/route.c err = ip_route_input_rcu(skb, dst, src, rtm->rtm_tos, rtm 3172 net/ipv4/route.c if (rtm->rtm_flags & RTM_F_NOTIFY) rtm 3175 net/ipv4/route.c if (rtm->rtm_flags & RTM_F_LOOKUP_TABLE) rtm 3184 net/ipv4/route.c if (rtm->rtm_flags & RTM_F_FIB_MATCH) { rtm 583 net/ipv6/ip6_fib.c struct rtmsg *rtm = nlmsg_data(nlh); rtm 585 net/ipv6/ip6_fib.c if (rtm->rtm_flags & RTM_F_PREFIX) rtm 2250 net/ipv6/ip6mr.c int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm, rtm 2315 net/ipv6/ip6mr.c err = mr_fill_mroute(mrt, skb, &cache->_c, rtm); rtm 2325 net/ipv6/ip6mr.c struct rtmsg *rtm; rtm 2328 net/ipv6/ip6mr.c nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rtm), flags); rtm 2332 net/ipv6/ip6mr.c rtm = nlmsg_data(nlh); rtm 2333 net/ipv6/ip6mr.c rtm->rtm_family = RTNL_FAMILY_IP6MR; rtm 2334 net/ipv6/ip6mr.c rtm->rtm_dst_len = 128; rtm 2335 net/ipv6/ip6mr.c rtm->rtm_src_len = 128; rtm 2336 net/ipv6/ip6mr.c rtm->rtm_tos = 0; rtm 2337 net/ipv6/ip6mr.c rtm->rtm_table = mrt->id; rtm 2340 net/ipv6/ip6mr.c rtm->rtm_type = RTN_MULTICAST; rtm 2341 net/ipv6/ip6mr.c rtm->rtm_scope = RT_SCOPE_UNIVERSE; rtm 2343 net/ipv6/ip6mr.c rtm->rtm_protocol = RTPROT_STATIC; rtm 2345 net/ipv6/ip6mr.c rtm->rtm_protocol = RTPROT_MROUTED; rtm 2346 net/ipv6/ip6mr.c rtm->rtm_flags = 0; rtm 2351 net/ipv6/ip6mr.c err = mr_fill_mroute(mrt, skb, &c->_c, rtm); rtm 4870 net/ipv6/route.c struct rtmsg *rtm; rtm 4875 net/ipv6/route.c err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 4881 net/ipv6/route.c rtm = nlmsg_data(nlh); rtm 4884 net/ipv6/route.c .fc_table = rtm->rtm_table, rtm 4885 net/ipv6/route.c .fc_dst_len = rtm->rtm_dst_len, rtm 4886 net/ipv6/route.c .fc_src_len = rtm->rtm_src_len, rtm 4888 net/ipv6/route.c .fc_protocol = rtm->rtm_protocol, rtm 4889 net/ipv6/route.c .fc_type = rtm->rtm_type, rtm 4896 net/ipv6/route.c if (rtm->rtm_type == RTN_UNREACHABLE || rtm 4897 net/ipv6/route.c rtm->rtm_type == RTN_BLACKHOLE || rtm 4898 net/ipv6/route.c rtm->rtm_type == RTN_PROHIBIT || rtm 4899 net/ipv6/route.c rtm->rtm_type == RTN_THROW) rtm 4902 net/ipv6/route.c if (rtm->rtm_type == RTN_LOCAL) rtm 4905 net/ipv6/route.c if (rtm->rtm_flags & RTM_F_CLONED) rtm 4908 net/ipv6/route.c cfg->fc_flags |= (rtm->rtm_flags & RTNH_F_ONLINK); rtm 4930 net/ipv6/route.c int plen = (rtm->rtm_dst_len + 7) >> 3; rtm 4939 net/ipv6/route.c int plen = (rtm->rtm_src_len + 7) >> 3; rtm 5407 net/ipv6/route.c struct rtmsg *rtm; rtm 5410 net/ipv6/route.c nlh = nlmsg_put(skb, portid, seq, type, sizeof(*rtm), flags); rtm 5424 net/ipv6/route.c rtm = nlmsg_data(nlh); rtm 5425 net/ipv6/route.c rtm->rtm_family = AF_INET6; rtm 5426 net/ipv6/route.c rtm->rtm_dst_len = rt6_dst->plen; rtm 5427 net/ipv6/route.c rtm->rtm_src_len = rt6_src->plen; rtm 5428 net/ipv6/route.c rtm->rtm_tos = 0; rtm 5433 net/ipv6/route.c rtm->rtm_table = table < 256 ? table : RT_TABLE_COMPAT; rtm 5437 net/ipv6/route.c rtm->rtm_type = rt->fib6_type; rtm 5438 net/ipv6/route.c rtm->rtm_flags = 0; rtm 5439 net/ipv6/route.c rtm->rtm_scope = RT_SCOPE_UNIVERSE; rtm 5440 net/ipv6/route.c rtm->rtm_protocol = rt->fib6_protocol; rtm 5443 net/ipv6/route.c rtm->rtm_flags |= RTM_F_CLONED; rtm 5448 net/ipv6/route.c rtm->rtm_dst_len = 128; rtm 5449 net/ipv6/route.c } else if (rtm->rtm_dst_len) rtm 5456 net/ipv6/route.c rtm->rtm_src_len = 128; rtm 5457 net/ipv6/route.c } else if (rtm->rtm_src_len && rtm 5464 net/ipv6/route.c int err = ip6mr_get_route(net, skb, rtm, portid); rtm 5531 net/ipv6/route.c rtm->rtm_type = RTN_BLACKHOLE; rtm 5536 net/ipv6/route.c rtm->rtm_flags |= nh_flags; rtm 5542 net/ipv6/route.c rtm->rtm_flags |= nh_flags; rtm 5734 net/ipv6/route.c struct rtmsg *rtm; rtm 5737 net/ipv6/route.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { rtm 5744 net/ipv6/route.c return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 5747 net/ipv6/route.c rtm = nlmsg_data(nlh); rtm 5748 net/ipv6/route.c if ((rtm->rtm_src_len && rtm->rtm_src_len != 128) || rtm 5749 net/ipv6/route.c (rtm->rtm_dst_len && rtm->rtm_dst_len != 128) || rtm 5750 net/ipv6/route.c rtm->rtm_table || rtm->rtm_protocol || rtm->rtm_scope || rtm 5751 net/ipv6/route.c rtm->rtm_type) { rtm 5755 net/ipv6/route.c if (rtm->rtm_flags & ~RTM_F_FIB_MATCH) { rtm 5761 net/ipv6/route.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 5766 net/ipv6/route.c if ((tb[RTA_SRC] && !rtm->rtm_src_len) || rtm 5767 net/ipv6/route.c (tb[RTA_DST] && !rtm->rtm_dst_len)) { rtm 5806 net/ipv6/route.c struct rtmsg *rtm; rtm 5815 net/ipv6/route.c rtm = nlmsg_data(nlh); rtm 5816 net/ipv6/route.c fl6.flowlabel = ip6_make_flowinfo(rtm->rtm_tos, 0); rtm 5817 net/ipv6/route.c fibmatch = !!(rtm->rtm_flags & RTM_F_FIB_MATCH); rtm 1786 net/mpls/af_mpls.c struct rtmsg *rtm; rtm 1791 net/mpls/af_mpls.c err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 1797 net/mpls/af_mpls.c rtm = nlmsg_data(nlh); rtm 1799 net/mpls/af_mpls.c if (rtm->rtm_family != AF_MPLS) { rtm 1803 net/mpls/af_mpls.c if (rtm->rtm_dst_len != 20) { rtm 1807 net/mpls/af_mpls.c if (rtm->rtm_src_len != 0) { rtm 1811 net/mpls/af_mpls.c if (rtm->rtm_tos != 0) { rtm 1815 net/mpls/af_mpls.c if (rtm->rtm_table != RT_TABLE_MAIN) { rtm 1826 net/mpls/af_mpls.c if (rtm->rtm_scope != RT_SCOPE_UNIVERSE) { rtm 1831 net/mpls/af_mpls.c if (rtm->rtm_type != RTN_UNICAST) { rtm 1836 net/mpls/af_mpls.c if (rtm->rtm_flags != 0) { rtm 1842 net/mpls/af_mpls.c cfg->rc_protocol = rtm->rtm_protocol; rtm 1968 net/mpls/af_mpls.c struct rtmsg *rtm; rtm 1970 net/mpls/af_mpls.c nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); rtm 1974 net/mpls/af_mpls.c rtm = nlmsg_data(nlh); rtm 1975 net/mpls/af_mpls.c rtm->rtm_family = AF_MPLS; rtm 1976 net/mpls/af_mpls.c rtm->rtm_dst_len = 20; rtm 1977 net/mpls/af_mpls.c rtm->rtm_src_len = 0; rtm 1978 net/mpls/af_mpls.c rtm->rtm_tos = 0; rtm 1979 net/mpls/af_mpls.c rtm->rtm_table = RT_TABLE_MAIN; rtm 1980 net/mpls/af_mpls.c rtm->rtm_protocol = rt->rt_protocol; rtm 1981 net/mpls/af_mpls.c rtm->rtm_scope = RT_SCOPE_UNIVERSE; rtm 1982 net/mpls/af_mpls.c rtm->rtm_type = RTN_UNICAST; rtm 1983 net/mpls/af_mpls.c rtm->rtm_flags = 0; rtm 2011 net/mpls/af_mpls.c rtm->rtm_flags |= RTNH_F_LINKDOWN; rtm 2013 net/mpls/af_mpls.c rtm->rtm_flags |= RTNH_F_DEAD; rtm 2058 net/mpls/af_mpls.c rtm->rtm_flags |= RTNH_F_LINKDOWN; rtm 2060 net/mpls/af_mpls.c rtm->rtm_flags |= RTNH_F_DEAD; rtm 2087 net/mpls/af_mpls.c struct rtmsg *rtm; rtm 2090 net/mpls/af_mpls.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { rtm 2095 net/mpls/af_mpls.c rtm = nlmsg_data(nlh); rtm 2096 net/mpls/af_mpls.c if (rtm->rtm_dst_len || rtm->rtm_src_len || rtm->rtm_tos || rtm 2097 net/mpls/af_mpls.c rtm->rtm_table || rtm->rtm_scope || rtm->rtm_type || rtm 2098 net/mpls/af_mpls.c rtm->rtm_flags) { rtm 2103 net/mpls/af_mpls.c if (rtm->rtm_protocol) { rtm 2104 net/mpls/af_mpls.c filter->protocol = rtm->rtm_protocol; rtm 2109 net/mpls/af_mpls.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 2283 net/mpls/af_mpls.c struct rtmsg *rtm; rtm 2286 net/mpls/af_mpls.c if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*rtm))) { rtm 2293 net/mpls/af_mpls.c return nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 2296 net/mpls/af_mpls.c rtm = nlmsg_data(nlh); rtm 2297 net/mpls/af_mpls.c if ((rtm->rtm_dst_len && rtm->rtm_dst_len != 20) || rtm 2298 net/mpls/af_mpls.c rtm->rtm_src_len || rtm->rtm_tos || rtm->rtm_table || rtm 2299 net/mpls/af_mpls.c rtm->rtm_protocol || rtm->rtm_scope || rtm->rtm_type) { rtm 2303 net/mpls/af_mpls.c if (rtm->rtm_flags & ~RTM_F_FIB_MATCH) { rtm 2309 net/mpls/af_mpls.c err = nlmsg_parse_deprecated_strict(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 2314 net/mpls/af_mpls.c if ((tb[RTA_DST] || tb[RTA_NEWDST]) && !rtm->rtm_dst_len) { rtm 2348 net/mpls/af_mpls.c struct rtmsg *rtm, *r; rtm 2359 net/mpls/af_mpls.c rtm = nlmsg_data(in_nlh); rtm 2382 net/mpls/af_mpls.c if (rtm->rtm_flags & RTM_F_FIB_MATCH) { rtm 163 net/phonet/pn_netlink.c struct rtmsg *rtm; rtm 166 net/phonet/pn_netlink.c nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); rtm 170 net/phonet/pn_netlink.c rtm = nlmsg_data(nlh); rtm 171 net/phonet/pn_netlink.c rtm->rtm_family = AF_PHONET; rtm 172 net/phonet/pn_netlink.c rtm->rtm_dst_len = 6; rtm 173 net/phonet/pn_netlink.c rtm->rtm_src_len = 0; rtm 174 net/phonet/pn_netlink.c rtm->rtm_tos = 0; rtm 175 net/phonet/pn_netlink.c rtm->rtm_table = RT_TABLE_MAIN; rtm 176 net/phonet/pn_netlink.c rtm->rtm_protocol = RTPROT_STATIC; rtm 177 net/phonet/pn_netlink.c rtm->rtm_scope = RT_SCOPE_UNIVERSE; rtm 178 net/phonet/pn_netlink.c rtm->rtm_type = RTN_UNICAST; rtm 179 net/phonet/pn_netlink.c rtm->rtm_flags = 0; rtm 224 net/phonet/pn_netlink.c struct rtmsg *rtm; rtm 236 net/phonet/pn_netlink.c err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, rtm 241 net/phonet/pn_netlink.c rtm = nlmsg_data(nlh); rtm 242 net/phonet/pn_netlink.c if (rtm->rtm_table != RT_TABLE_MAIN || rtm->rtm_type != RTN_UNICAST)