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/ospf6_network.h | |
| 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/ospf6_network.h')
| -rw-r--r-- | ospf6d/ospf6_network.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ospf6d/ospf6_network.h b/ospf6d/ospf6_network.h index 7fe6e33ff2..eeef0514f3 100644 --- a/ospf6d/ospf6_network.h +++ b/ospf6d/ospf6_network.h @@ -21,17 +21,17 @@ #ifndef OSPF6_NETWORK_H #define OSPF6_NETWORK_H -extern int ospf6_sock; +struct ospf6 *ospf6; extern struct in6_addr allspfrouters6; extern struct in6_addr alldrouters6; -extern int ospf6_serv_sock(void); -extern void ospf6_serv_close(void); +extern int ospf6_serv_sock(struct ospf6 *ospf6); +extern void ospf6_serv_close(int *ospf6_sock); extern int ospf6_sso(ifindex_t ifindex, struct in6_addr *group, int option); extern int ospf6_sendmsg(struct in6_addr *, struct in6_addr *, ifindex_t *, - struct iovec *); + struct iovec *, int ospf6_sock); extern int ospf6_recvmsg(struct in6_addr *, struct in6_addr *, ifindex_t *, - struct iovec *); + struct iovec *, int ospf6_sock); #endif /* OSPF6_NETWORK_H */ |
