diff options
author | Kaushik <kaushik@niralnetworks.com> | 2020-09-05 09:07:25 +0200 |
---|---|---|
committer | Kaushik <kaushik@niralnetworks.com> | 2020-10-07 06:23:54 +0200 |
commit | 7df1f3623ec3fb47be4f3b8234c393067c69ab4d (patch) | |
tree | 9e9726980ed2c2be05e0e22da8d928eeb345b70f /ospf6d/ospf6d.c | |
parent | Merge pull request #7248 from donaldsharp/revert_7113 (diff) | |
download | frr-7df1f3623ec3fb47be4f3b8234c393067c69ab4d.tar.xz frr-7df1f3623ec3fb47be4f3b8234c393067c69ab4d.zip |
ospf6d : Socket change for ospf6d vrf support.
1. The socket() call is changed to vrf_socket().
2. The ospf6 instance creation api added.
3. The global socket fd is replaced with ospf6->fd.
4. All dependency of the global socket is resolved.
5. Added the ospf6 receive timer in the global structure.
6. Performed the thread off on receive timer when we do "no router ospf6".
Co-authored-by: harios <hari@niralnetworks.com>
Signed-off-by: Kaushik <kaushik@niralnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | ospf6d/ospf6d.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index 17e33902d..e90448239 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -1268,9 +1268,8 @@ void ospf6_init(void) &show_ipv6_ospf6_database_type_self_originated_linkstate_id_cmd); install_element(VIEW_NODE, &show_ipv6_ospf6_database_aggr_router_cmd); - /* Make ospf protocol socket. */ - ospf6_serv_sock(); - thread_add_read(master, ospf6_receive, NULL, ospf6_sock, NULL); + if (ospf6 == NULL) + ospf6_instance_create(VRF_DEFAULT_NAME); } void ospf6_clean(void) |