]>
git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_network.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * OSPF network related functions.
4 * Copyright (C) 1999 Toshiaki Takada
7 #ifndef _ZEBRA_OSPF_NETWORK_H
8 #define _ZEBRA_OSPF_NETWORK_H
11 extern int ospf_if_add_allspfrouters(struct ospf
*, struct prefix
*, ifindex_t
);
12 extern int ospf_if_drop_allspfrouters(struct ospf
*, struct prefix
*,
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
);
22 enum ospf_sock_type_e
{
29 void ospf_sock_bufsize_update(const struct ospf
*ospf
, int sock
,
30 enum ospf_sock_type_e type
);
32 #endif /* _ZEBRA_OSPF_NETWORK_H */