/linux-2.4.37.9/net/decnet/ |
D | dn_rules.c | 74 struct rtmsg *rtm = NLMSG_DATA(nlh); in dn_fib_rtm_delrule() local 80 rtm->rtm_src_len == r->r_src_len && in dn_fib_rtm_delrule() 81 rtm->rtm_dst_len == r->r_dst_len && in dn_fib_rtm_delrule() 86 (!rtm->rtm_type || rtm->rtm_type == r->r_action) && in dn_fib_rtm_delrule() 89 (!rtm->rtm_table || (r && rtm->rtm_table == r->r_table))) { in dn_fib_rtm_delrule() 122 struct rtmsg *rtm = NLMSG_DATA(nlh); in dn_fib_rtm_newrule() local 126 if (rtm->rtm_src_len > 16 || rtm->rtm_dst_len > 16) in dn_fib_rtm_newrule() 132 if (rtm->rtm_type == RTN_NAT) in dn_fib_rtm_newrule() 135 table_id = rtm->rtm_table; in dn_fib_rtm_newrule() 138 if (rtm->rtm_type == RTN_UNICAST) { in dn_fib_rtm_newrule() [all …]
|
D | dn_table.c | 274 struct rtmsg *rtm; in dn_fib_dump_info() local 278 nlh = NLMSG_PUT(skb, pid, seq, event, sizeof(*rtm)); in dn_fib_dump_info() 279 rtm = NLMSG_DATA(nlh); in dn_fib_dump_info() 280 rtm->rtm_family = AF_DECnet; in dn_fib_dump_info() 281 rtm->rtm_dst_len = dst_len; in dn_fib_dump_info() 282 rtm->rtm_src_len = 0; in dn_fib_dump_info() 283 rtm->rtm_tos = 0; in dn_fib_dump_info() 284 rtm->rtm_table = tb_id; in dn_fib_dump_info() 285 rtm->rtm_flags = fi->fib_flags; in dn_fib_dump_info() 286 rtm->rtm_scope = scope; in dn_fib_dump_info() [all …]
|
/linux-2.4.37.9/net/ipv4/ |
D | fib_rules.c | 107 struct rtmsg *rtm = NLMSG_DATA(nlh); in inet_rtm_delrule() local 113 rtm->rtm_src_len == r->r_src_len && in inet_rtm_delrule() 114 rtm->rtm_dst_len == r->r_dst_len && in inet_rtm_delrule() 116 rtm->rtm_tos == r->r_tos && in inet_rtm_delrule() 120 (!rtm->rtm_type || rtm->rtm_type == r->r_action) && in inet_rtm_delrule() 123 (!rtm->rtm_table || (r && rtm->rtm_table == r->r_table))) { in inet_rtm_delrule() 165 struct rtmsg *rtm = NLMSG_DATA(nlh); in inet_rtm_newrule() local 169 if (rtm->rtm_src_len > 32 || rtm->rtm_dst_len > 32 || in inet_rtm_newrule() 170 (rtm->rtm_tos & ~IPTOS_TOS_MASK)) in inet_rtm_newrule() 176 table_id = rtm->rtm_table; in inet_rtm_newrule() [all …]
|
D | fib_semantics.c | 648 struct rtmsg *rtm; in fib_dump_info() local 652 nlh = NLMSG_PUT(skb, pid, seq, event, sizeof(*rtm)); in fib_dump_info() 653 rtm = NLMSG_DATA(nlh); in fib_dump_info() 654 rtm->rtm_family = AF_INET; in fib_dump_info() 655 rtm->rtm_dst_len = dst_len; in fib_dump_info() 656 rtm->rtm_src_len = 0; in fib_dump_info() 657 rtm->rtm_tos = tos; in fib_dump_info() 658 rtm->rtm_table = tb_id; in fib_dump_info() 659 rtm->rtm_type = type; in fib_dump_info() 660 rtm->rtm_flags = fi->fib_flags; in fib_dump_info() [all …]
|
D | fib_frontend.c | 293 struct rtmsg rtm; in ip_rt_ioctl() member 304 err = fib_convert_rtentry(cmd, &req.nlh, &req.rtm, &rta, &r); in ip_rt_ioctl() 307 struct fib_table *tb = fib_get_table(req.rtm.rtm_table); in ip_rt_ioctl() 310 err = tb->tb_delete(tb, &req.rtm, &rta, &req.nlh, NULL); in ip_rt_ioctl() 312 struct fib_table *tb = fib_new_table(req.rtm.rtm_table); in ip_rt_ioctl() 315 err = tb->tb_insert(tb, &req.rtm, &rta, &req.nlh, NULL); in ip_rt_ioctl() 422 struct rtmsg rtm; in fib_magic() member 426 memset(&req.rtm, 0, sizeof(req.rtm)); in fib_magic() 443 req.rtm.rtm_dst_len = dst_len; in fib_magic() 444 req.rtm.rtm_table = tb->tb_id; in fib_magic() [all …]
|
D | ipmr.c | 109 static int ipmr_fill_mroute(struct sk_buff *skb, struct mfc_cache *c, struct rtmsg *rtm); 1524 ipmr_fill_mroute(struct sk_buff *skb, struct mfc_cache *c, struct rtmsg *rtm) in ipmr_fill_mroute() argument 1550 rtm->rtm_type = RTN_MULTICAST; in ipmr_fill_mroute() 1558 int ipmr_get_route(struct sk_buff *skb, struct rtmsg *rtm, int nowait) in ipmr_get_route() argument 1591 if (!nowait && (rtm->rtm_flags&RTM_F_NOTIFY)) in ipmr_get_route() 1593 err = ipmr_fill_mroute(skb, cache, rtm); in ipmr_get_route()
|
D | route.c | 2202 struct rtmsg *rtm = NLMSG_DATA(nlh); in inet_rtm_getroute() local 2238 err = ip_route_input(skb, dst, src, rtm->rtm_tos, dev); in inet_rtm_getroute() 2247 err = ip_route_output(&rt, dst, src, rtm->rtm_tos, oif); in inet_rtm_getroute() 2253 if (rtm->rtm_flags & RTM_F_NOTIFY) in inet_rtm_getroute()
|
/linux-2.4.37.9/net/ipv6/ |
D | route.c | 1583 struct rtmsg *rtm; in rt6_fill_node() local 1595 nlh = NLMSG_PUT(skb, pid, seq, type, sizeof(*rtm)); in rt6_fill_node() 1596 rtm = NLMSG_DATA(nlh); in rt6_fill_node() 1597 rtm->rtm_family = AF_INET6; in rt6_fill_node() 1598 rtm->rtm_dst_len = rt->rt6i_dst.plen; in rt6_fill_node() 1599 rtm->rtm_src_len = rt->rt6i_src.plen; in rt6_fill_node() 1600 rtm->rtm_tos = 0; in rt6_fill_node() 1601 rtm->rtm_table = RT_TABLE_MAIN; in rt6_fill_node() 1603 rtm->rtm_type = RTN_UNREACHABLE; in rt6_fill_node() 1605 rtm->rtm_type = RTN_LOCAL; in rt6_fill_node() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | mroute.h | 222 extern int ipmr_get_route(struct sk_buff *skb, struct rtmsg *rtm, int nowait);
|
/linux-2.4.37.9/include/net/ |
D | ip_fib.h | 222 extern int fib_convert_rtentry(int cmd, struct nlmsghdr *nl, struct rtmsg *rtm,
|