diff options
| author | Kaushik <kaushik@niralnetworks.com> | 2020-09-05 00:07:25 -0700 |
|---|---|---|
| committer | Kaushik <kaushik@niralnetworks.com> | 2020-10-06 21:23:54 -0700 |
| commit | 7df1f3623ec3fb47be4f3b8234c393067c69ab4d (patch) | |
| tree | 9e9726980ed2c2be05e0e22da8d928eeb345b70f /ospf6d/ospf6d.c | |
| parent | 6d3ce189ad78fdd579f6b2683a0b15342c1cc7dd (diff) | |
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 'ospf6d/ospf6d.c')
| -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 17e33902d9..e904482391 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) |
