fib_frontend.c (0871d5a66da5c41151e0896a90298b163e42f2e0) fib_frontend.c (3b45a4106f146c336cbcaccb9d8d0fa0e5c3dc1d)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * IPv4 Forwarding Information Base: FIB frontend.
7 *
8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>

--- 608 unchanged lines hidden (view full) ---

617 [RTA_PRIORITY] = { .type = NLA_U32 },
618 [RTA_PREFSRC] = { .type = NLA_U32 },
619 [RTA_METRICS] = { .type = NLA_NESTED },
620 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
621 [RTA_FLOW] = { .type = NLA_U32 },
622 [RTA_ENCAP_TYPE] = { .type = NLA_U16 },
623 [RTA_ENCAP] = { .type = NLA_NESTED },
624 [RTA_UID] = { .type = NLA_U32 },
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * IPv4 Forwarding Information Base: FIB frontend.
7 *
8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>

--- 608 unchanged lines hidden (view full) ---

617 [RTA_PRIORITY] = { .type = NLA_U32 },
618 [RTA_PREFSRC] = { .type = NLA_U32 },
619 [RTA_METRICS] = { .type = NLA_NESTED },
620 [RTA_MULTIPATH] = { .len = sizeof(struct rtnexthop) },
621 [RTA_FLOW] = { .type = NLA_U32 },
622 [RTA_ENCAP_TYPE] = { .type = NLA_U16 },
623 [RTA_ENCAP] = { .type = NLA_NESTED },
624 [RTA_UID] = { .type = NLA_U32 },
625 [RTA_MARK] = { .type = NLA_U32 },
625};
626
627static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
628 struct nlmsghdr *nlh, struct fib_config *cfg)
629{
630 struct nlattr *attr;
631 int err, remaining;
632 struct rtmsg *rtm;

--- 694 unchanged lines hidden ---
626};
627
628static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
629 struct nlmsghdr *nlh, struct fib_config *cfg)
630{
631 struct nlattr *attr;
632 int err, remaining;
633 struct rtmsg *rtm;

--- 694 unchanged lines hidden ---