o ipv6/addrconf: use C99 struct init style for inet6_rtnetlink_table

parent 7e2a8e1f
...@@ -2389,22 +2389,14 @@ static void inet6_ifa_notify(int event, struct inet6_ifaddr *ifa) ...@@ -2389,22 +2389,14 @@ static void inet6_ifa_notify(int event, struct inet6_ifaddr *ifa)
netlink_broadcast(rtnl, skb, 0, RTMGRP_IPV6_IFADDR, GFP_ATOMIC); netlink_broadcast(rtnl, skb, 0, RTMGRP_IPV6_IFADDR, GFP_ATOMIC);
} }
static struct rtnetlink_link inet6_rtnetlink_table[RTM_MAX-RTM_BASE+1] = static struct rtnetlink_link inet6_rtnetlink_table[RTM_MAX - RTM_BASE + 1] = {
{ [RTM_NEWADDR - RTM_BASE] = { .doit = inet6_rtm_newaddr, },
{ NULL, NULL, }, [RTM_DELADDR - RTM_BASE] = { .doit = inet6_rtm_deladdr, },
{ NULL, NULL, }, [RTM_GETADDR - RTM_BASE] = { .dumpit = inet6_dump_ifaddr, },
{ NULL, NULL, }, [RTM_NEWROUTE - RTM_BASE] = { .doit = inet6_rtm_newroute, },
{ NULL, NULL, }, [RTM_DELROUTE - RTM_BASE] = { .doit = inet6_rtm_delroute, },
[RTM_GETROUTE - RTM_BASE] = { .doit = inet6_rtm_getroute,
{ inet6_rtm_newaddr, NULL, }, .dumpit = inet6_dump_fib, },
{ inet6_rtm_deladdr, NULL, },
{ NULL, inet6_dump_ifaddr, },
{ NULL, NULL, },
{ inet6_rtm_newroute, NULL, },
{ inet6_rtm_delroute, NULL, },
{ inet6_rtm_getroute, inet6_dump_fib, },
{ NULL, NULL, },
}; };
static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp) static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment