#include "packet-dpif.h"
#include "packets.h"
#include "poll-loop.h"
+#include "route-table.h"
#include "shash.h"
#include "sset.h"
#include "timeval.h"
dp_register_provider(base_dpif_classes[i]);
}
dpctl_unixctl_register();
- ovsthread_once_done(&once);
tnl_port_map_init();
tnl_arp_cache_init();
+ route_table_register();
+
+ ovsthread_once_done(&once);
}
}
dev->tnl_cfg.dst_port = htons(LISP_DST_PORT);
}
- route_table_register();
-
return 0;
}
/* May not be called more than once. */
void
-ovs_router_unixctl_register(void)
+ovs_router_init(void)
{
classifier_init(&cls, NULL);
unixctl_command_register("ovs/route/add", "ipv4_addr/prefix_len out_br_name gw", 2, 3,
#endif
bool ovs_router_lookup(ovs_be32 ip_dst, char out_dev[], ovs_be32 *gw);
-void ovs_router_unixctl_register(void);
+void ovs_router_init(void);
#ifdef __cplusplus
}
#endif
ovs_assert(!nln);
ovs_assert(!route_notifier);
+ ovs_router_init();
nln = nln_create(NETLINK_ROUTE, RTNLGRP_IPV4_ROUTE,
(nln_parse_func *) route_table_parse, &rtmsg);
guarded_list_init(&ofproto->pins);
ofproto_unixctl_init();
- ovs_router_unixctl_register();
hmap_init(&ofproto->vlandev_map);
hmap_init(&ofproto->realdev_vid_map);