Home
last modified time | relevance | path

Searched refs:rtmsg (Results 1 – 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/include/linux/
Dmroute.h84 struct rtmsg;
87 struct rtmsg *rtm, u32 portid);
Dmroute6.h96 struct rtmsg;
98 struct rtmsg *rtm, u32 portid);
Dmroute_base.h284 struct mr_mfc *c, struct rtmsg *rtm);
336 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute()
/kernel/linux/linux-5.10/include/net/
Ddn_fib.h82 int (*insert)(struct dn_fib_table *t, struct rtmsg *r,
85 int (*delete)(struct dn_fib_table *t, struct rtmsg *r,
104 struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r,
Dip6_route.h122 struct in6_rtmsg *rtmsg);
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Droute.c147 static void rtmsg_to_fibni_config(struct net *net, struct nip_rtmsg *rtmsg, in rtmsg_to_fibni_config() argument
153 cfg->fc_ifindex = rtmsg->rtmsg_ifindex; in rtmsg_to_fibni_config()
154 cfg->fc_metric = rtmsg->rtmsg_metric; in rtmsg_to_fibni_config()
155 cfg->fc_expires = rtmsg->rtmsg_info; in rtmsg_to_fibni_config()
157 cfg->fc_flags = rtmsg->rtmsg_flags; in rtmsg_to_fibni_config()
161 cfg->fc_dst = rtmsg->rtmsg_dst; in rtmsg_to_fibni_config()
162 cfg->fc_src = rtmsg->rtmsg_src; in rtmsg_to_fibni_config()
163 cfg->fc_gateway = rtmsg->rtmsg_gateway; in rtmsg_to_fibni_config()
654 int nip_route_ioctl(struct net *net, unsigned int cmd, struct nip_rtmsg *rtmsg) in nip_route_ioctl() argument
659 rtmsg_to_fibni_config(net, rtmsg, &cfg); in nip_route_ioctl()
Daf_ninet.c448 struct nip_rtmsg rtmsg; in ninet_ioctl() local
450 if (copy_from_user(&rtmsg, (void __user *)arg, sizeof(rtmsg))) { in ninet_ioctl()
454 return nip_route_ioctl(net, cmd, &rtmsg); in ninet_ioctl()
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/
Dnip_fib.h149 int nip_set_route_netlink(struct net *net, struct nip_rtmsg *rtmsg);
151 int nip_del_route_netlink(struct net *net, struct nip_rtmsg *rtmsg);
Dnip_route.h59 int nip_route_ioctl(struct net *net, unsigned int cmd, struct nip_rtmsg *rtmsg);
/kernel/linux/linux-5.10/net/decnet/
Ddn_fib.c165 const struct rtmsg *r) in dn_fib_get_nhs()
195 static int dn_fib_check_nh(const struct rtmsg *r, struct dn_fib_info *fi, struct dn_fib_nh *nh) in dn_fib_check_nh()
267 struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct nlattr *attrs[], in dn_fib_create_info()
510 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_delroute()
537 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_newroute()
564 struct rtmsg rtm; in fib_magic()
Ddn_table.c229 static int dn_fib_nh_match(struct rtmsg *r, struct nlmsghdr *nlh, struct nlattr *attrs[], struct dn… in dn_fib_nh_match()
276 size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) in dn_fib_nlmsg_size()
305 struct rtmsg *rtm; in dn_fib_dump_info()
500 if (nlmsg_len(cb->nlh) >= sizeof(struct rtmsg) && in dn_fib_dump()
501 ((struct rtmsg *)nlmsg_data(cb->nlh))->rtm_flags&RTM_F_CLONED) in dn_fib_dump()
529 static int dn_fib_table_insert(struct dn_fib_table *tb, struct rtmsg *r, struct nlattr *attrs[], in dn_fib_table_insert()
666 static int dn_fib_table_delete(struct dn_fib_table *tb, struct rtmsg *r, struct nlattr *attrs[], in dn_fib_table_delete()
Ddn_route.c1551 struct rtmsg *r; in dn_rt_fill_info()
1639 struct rtmsg *rtm = nlmsg_data(nlh); in dn_cache_getroute()
1728 struct rtmsg *rtm; in dn_cache_dump()
1733 if (nlmsg_len(cb->nlh) < sizeof(struct rtmsg)) in dn_cache_dump()
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_router_ipv4_user.c127 struct rtmsg *rt_msg; in read_route()
160 rt_msg = (struct rtmsg *)NLMSG_DATA(nh); in read_route()
324 struct rtmsg rt; in get_route_table()
341 req.nl.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in get_route_table()
480 req.nl.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in get_arp_table()
/kernel/linux/linux-5.10/include/uapi/linux/
Drtnetlink.h221 struct rtmsg { struct
375 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
376 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Drtnetlink.h178 struct rtmsg { struct
285 #define RTM_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
286 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct rtmsg))
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Drtnetlink.h150 struct rtmsg { struct
253 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
254 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
/kernel/linux/linux-5.10/net/phonet/
Dpn_netlink.c163 struct rtmsg *rtm; in fill_route()
224 struct rtmsg *rtm; in route_doit()
/kernel/linux/linux-5.10/net/ipv6/
Daf_inet6.c560 struct in6_rtmsg rtmsg; in inet6_ioctl() local
562 if (copy_from_user(&rtmsg, argp, sizeof(rtmsg))) in inet6_ioctl()
564 return ipv6_route_ioctl(net, cmd, &rtmsg); in inet6_ioctl()
Droute.c4341 struct in6_rtmsg *rtmsg, in rtmsg_to_fib6_config() argument
4345 .fc_table = l3mdev_fib_table_by_index(net, rtmsg->rtmsg_ifindex) ? in rtmsg_to_fib6_config()
4347 .fc_ifindex = rtmsg->rtmsg_ifindex, in rtmsg_to_fib6_config()
4348 .fc_metric = rtmsg->rtmsg_metric ? : IP6_RT_PRIO_USER, in rtmsg_to_fib6_config()
4349 .fc_expires = rtmsg->rtmsg_info, in rtmsg_to_fib6_config()
4350 .fc_dst_len = rtmsg->rtmsg_dst_len, in rtmsg_to_fib6_config()
4351 .fc_src_len = rtmsg->rtmsg_src_len, in rtmsg_to_fib6_config()
4352 .fc_flags = rtmsg->rtmsg_flags, in rtmsg_to_fib6_config()
4353 .fc_type = rtmsg->rtmsg_type, in rtmsg_to_fib6_config()
4357 .fc_dst = rtmsg->rtmsg_dst, in rtmsg_to_fib6_config()
[all …]
Dip6mr.c2256 int ip6mr_get_route(struct net *net, struct sk_buff *skb, struct rtmsg *rtm, in ip6mr_get_route()
2331 struct rtmsg *rtm; in ip6mr_fill_mroute()
2381 NLMSG_ALIGN(sizeof(struct rtmsg)) in mr6_msgsize()
/kernel/linux/linux-5.10/net/ipv4/
Dfib_frontend.c728 struct rtmsg *rtm; in rtm_to_fib_config()
757 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) { in rtm_to_fib_config()
902 struct rtmsg *rtm; in ip_valid_fib_dump_req()
986 } else if (nlmsg_len(nlh) >= sizeof(struct rtmsg)) { in inet_dump_fib()
987 struct rtmsg *rtm = nlmsg_data(nlh); in inet_dump_fib()
Dipmr.c2234 struct rtmsg *rtm, u32 portid) in ipmr_get_route()
2301 struct rtmsg *rtm; in ipmr_fill_mroute()
2351 NLMSG_ALIGN(sizeof(struct rtmsg)) in mroute_msgsize()
2465 struct rtmsg *rtm; in ipmr_rtm_valid_getroute_req()
2647 struct rtmsg *rtm; in rtm_to_ipmr_mfcc()
2666 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), rem) { in rtm_to_ipmr_mfcc()
Dipmr_base.c209 struct mr_mfc *c, struct rtmsg *rtm) in mr_fill_mroute()
/kernel/linux/linux-5.10/net/mpls/
Daf_mpls.c1815 struct rtmsg *rtm; in rtm_to_route_config()
1997 struct rtmsg *rtm; in mpls_dump_route()
2116 struct rtmsg *rtm; in mpls_valid_fib_dump_req()
2246 NLMSG_ALIGN(sizeof(struct rtmsg)) in lfib_nlmsg_size()
2312 struct rtmsg *rtm; in mpls_valid_getroute_req()
2377 struct rtmsg *rtm, *r; in mpls_getroute()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dudpgso.c363 struct rtmsg *rt; in set_route_mtu()

12