]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_network.h
Merge pull request #13455 from sri-mohan1/srib-ldpd
[mirror_frr.git] / ospfd / ospf_network.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * OSPF network related functions.
4 * Copyright (C) 1999 Toshiaki Takada
5 */
6
7 #ifndef _ZEBRA_OSPF_NETWORK_H
8 #define _ZEBRA_OSPF_NETWORK_H
9
10 /* Prototypes. */
11 extern int ospf_if_add_allspfrouters(struct ospf *, struct prefix *, ifindex_t);
12 extern int ospf_if_drop_allspfrouters(struct ospf *, struct prefix *,
13 ifindex_t);
14 extern int ospf_if_add_alldrouters(struct ospf *, struct prefix *, ifindex_t);
15 extern int ospf_if_drop_alldrouters(struct ospf *, struct prefix *, ifindex_t);
16 extern int ospf_if_ipmulticast(int fd, struct prefix *, ifindex_t);
17 extern int ospf_sock_init(struct ospf *ospf);
18 /* Open, close per-interface write socket */
19 int ospf_ifp_sock_init(struct interface *ifp);
20 int ospf_ifp_sock_close(struct interface *ifp);
21
22 enum ospf_sock_type_e {
23 OSPF_SOCK_NONE = 0,
24 OSPF_SOCK_RECV,
25 OSPF_SOCK_SEND,
26 OSPF_SOCK_BOTH
27 };
28
29 void ospf_sock_bufsize_update(const struct ospf *ospf, int sock,
30 enum ospf_sock_type_e type);
31
32 #endif /* _ZEBRA_OSPF_NETWORK_H */