/linux-2.6.39/net/phonet/ |
D | pn_netlink.c | 169 struct rtmsg *rtm; in fill_route() local 172 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*rtm), 0); in fill_route() 176 rtm = nlmsg_data(nlh); in fill_route() 177 rtm->rtm_family = AF_PHONET; in fill_route() 178 rtm->rtm_dst_len = 6; in fill_route() 179 rtm->rtm_src_len = 0; in fill_route() 180 rtm->rtm_tos = 0; in fill_route() 181 rtm->rtm_table = RT_TABLE_MAIN; in fill_route() 182 rtm->rtm_protocol = RTPROT_STATIC; in fill_route() 183 rtm->rtm_scope = RT_SCOPE_UNIVERSE; in fill_route() [all …]
|
/linux-2.6.39/net/decnet/netfilter/ |
D | dn_rtmsg.c | 40 struct nf_dn_rtmsg *rtm; in dnrmg_build_message() local 49 rtm = (struct nf_dn_rtmsg *)NLMSG_DATA(nlh); in dnrmg_build_message() 50 rtm->nfdn_ifindex = rt_skb->dev->ifindex; in dnrmg_build_message() 51 ptr = NFDN_RTMSG(rtm); in dnrmg_build_message()
|
/linux-2.6.39/net/decnet/ |
D | dn_table.c | 297 struct rtmsg *rtm; in dn_fib_dump_info() local 301 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*rtm), flags); in dn_fib_dump_info() 302 rtm = NLMSG_DATA(nlh); in dn_fib_dump_info() 303 rtm->rtm_family = AF_DECnet; in dn_fib_dump_info() 304 rtm->rtm_dst_len = dst_len; in dn_fib_dump_info() 305 rtm->rtm_src_len = 0; in dn_fib_dump_info() 306 rtm->rtm_tos = 0; in dn_fib_dump_info() 307 rtm->rtm_table = tb_id; in dn_fib_dump_info() 309 rtm->rtm_flags = fi->fib_flags; in dn_fib_dump_info() 310 rtm->rtm_scope = scope; in dn_fib_dump_info() [all …]
|
D | dn_fib.c | 552 struct rtmsg rtm; in fib_magic() member 556 memset(&req.rtm, 0, sizeof(req.rtm)); in fib_magic() 573 req.rtm.rtm_dst_len = dst_len; in fib_magic() 574 req.rtm.rtm_table = tb->n; in fib_magic() 575 req.rtm.rtm_protocol = RTPROT_KERNEL; in fib_magic() 576 req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST); in fib_magic() 577 req.rtm.rtm_type = type; in fib_magic() 584 tb->insert(tb, &req.rtm, &rta, &req.nlh, NULL); in fib_magic() 586 tb->delete(tb, &req.rtm, &rta, &req.nlh, NULL); in fib_magic()
|
D | dn_route.c | 1569 struct rtmsg *rtm = NLMSG_DATA(nlh); in dn_cache_getroute() local 1631 if (rtm->rtm_flags & RTM_F_NOTIFY) in dn_cache_getroute()
|
/linux-2.6.39/net/ipv6/ |
D | route.c | 2141 struct rtmsg *rtm; in rtm_to_fib6_config() local 2145 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv6_policy); in rtm_to_fib6_config() 2150 rtm = nlmsg_data(nlh); in rtm_to_fib6_config() 2153 cfg->fc_table = rtm->rtm_table; in rtm_to_fib6_config() 2154 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib6_config() 2155 cfg->fc_src_len = rtm->rtm_src_len; in rtm_to_fib6_config() 2157 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib6_config() 2159 if (rtm->rtm_type == RTN_UNREACHABLE) in rtm_to_fib6_config() 2162 if (rtm->rtm_type == RTN_LOCAL) in rtm_to_fib6_config() 2175 int plen = (rtm->rtm_dst_len + 7) >> 3; in rtm_to_fib6_config() [all …]
|
D | ip6mr.c | 117 struct mfc6_cache *c, struct rtmsg *rtm); 2088 struct mfc6_cache *c, struct rtmsg *rtm) in __ip6mr_fill_mroute() argument 2117 rtm->rtm_type = RTN_MULTICAST; in __ip6mr_fill_mroute() 2126 struct sk_buff *skb, struct rtmsg *rtm, int nowait) in ip6mr_get_route() argument 2187 if (!nowait && (rtm->rtm_flags&RTM_F_NOTIFY)) in ip6mr_get_route() 2190 err = __ip6mr_fill_mroute(mrt, skb, cache, rtm); in ip6mr_get_route() 2199 struct rtmsg *rtm; in ip6mr_fill_mroute() local 2201 nlh = nlmsg_put(skb, pid, seq, RTM_NEWROUTE, sizeof(*rtm), NLM_F_MULTI); in ip6mr_fill_mroute() 2205 rtm = nlmsg_data(nlh); in ip6mr_fill_mroute() 2206 rtm->rtm_family = RTNL_FAMILY_IPMR; in ip6mr_fill_mroute() [all …]
|
/linux-2.6.39/net/ipv4/ |
D | fib_semantics.c | 922 struct rtmsg *rtm; in fib_dump_info() local 924 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*rtm), flags); in fib_dump_info() 928 rtm = nlmsg_data(nlh); in fib_dump_info() 929 rtm->rtm_family = AF_INET; in fib_dump_info() 930 rtm->rtm_dst_len = dst_len; in fib_dump_info() 931 rtm->rtm_src_len = 0; in fib_dump_info() 932 rtm->rtm_tos = tos; in fib_dump_info() 934 rtm->rtm_table = tb_id; in fib_dump_info() 936 rtm->rtm_table = RT_TABLE_COMPAT; in fib_dump_info() 938 rtm->rtm_type = type; in fib_dump_info() [all …]
|
D | fib_frontend.c | 490 struct rtmsg *rtm; in rtm_to_fib_config() local 492 err = nlmsg_validate(nlh, sizeof(*rtm), RTA_MAX, rtm_ipv4_policy); in rtm_to_fib_config() 498 rtm = nlmsg_data(nlh); in rtm_to_fib_config() 499 cfg->fc_dst_len = rtm->rtm_dst_len; in rtm_to_fib_config() 500 cfg->fc_tos = rtm->rtm_tos; in rtm_to_fib_config() 501 cfg->fc_table = rtm->rtm_table; in rtm_to_fib_config() 502 cfg->fc_protocol = rtm->rtm_protocol; in rtm_to_fib_config() 503 cfg->fc_scope = rtm->rtm_scope; in rtm_to_fib_config() 504 cfg->fc_type = rtm->rtm_type; in rtm_to_fib_config() 505 cfg->fc_flags = rtm->rtm_flags; in rtm_to_fib_config()
|
D | ipmr.c | 133 struct mfc_cache *c, struct rtmsg *rtm); 2004 struct mfc_cache *c, struct rtmsg *rtm) in __ipmr_fill_mroute() argument 2033 rtm->rtm_type = RTN_MULTICAST; in __ipmr_fill_mroute() 2042 struct sk_buff *skb, struct rtmsg *rtm, int nowait) in ipmr_get_route() argument 2097 if (!nowait && (rtm->rtm_flags & RTM_F_NOTIFY)) in ipmr_get_route() 2099 err = __ipmr_fill_mroute(mrt, skb, cache, rtm); in ipmr_get_route() 2109 struct rtmsg *rtm; in ipmr_fill_mroute() local 2111 nlh = nlmsg_put(skb, pid, seq, RTM_NEWROUTE, sizeof(*rtm), NLM_F_MULTI); in ipmr_fill_mroute() 2115 rtm = nlmsg_data(nlh); in ipmr_fill_mroute() 2116 rtm->rtm_family = RTNL_FAMILY_IPMR; in ipmr_fill_mroute() [all …]
|
D | route.c | 2882 struct rtmsg *rtm; in inet_rtm_getroute() local 2892 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv4_policy); in inet_rtm_getroute() 2896 rtm = nlmsg_data(nlh); in inet_rtm_getroute() 2932 err = ip_route_input(skb, dst, src, rtm->rtm_tos, dev); in inet_rtm_getroute() 2942 .flowi4_tos = rtm->rtm_tos, in inet_rtm_getroute() 2957 if (rtm->rtm_flags & RTM_F_NOTIFY) in inet_rtm_getroute()
|
/linux-2.6.39/include/linux/ |
D | mroute.h | 247 struct rtmsg *rtm, int nowait);
|
D | mroute6.h | 231 struct rtmsg *rtm, int nowait);
|