]> git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_network.h
Merge pull request #12791 from taspelund/loc_rib_json_fix
[mirror_frr.git] / bgpd / bgp_network.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* BGP network related header
3 * Copyright (C) 1999 Kunihiro Ishiguro
4 */
5
6 #ifndef _QUAGGA_BGP_NETWORK_H
7 #define _QUAGGA_BGP_NETWORK_H
8
9 #define BGP_SOCKET_SNDBUF_SIZE 65536
10
11 struct bgp_listener {
12 int fd;
13 union sockunion su;
14 struct thread *thread;
15 struct bgp *bgp;
16 char *name;
17 };
18
19 extern void bgp_dump_listener_info(struct vty *vty);
20 extern int bgp_socket(struct bgp *bgp, unsigned short port,
21 const char *address);
22 extern void bgp_close_vrf_socket(struct bgp *bgp);
23 extern void bgp_close(void);
24 extern int bgp_connect(struct peer *);
25 extern int bgp_getsockname(struct peer *);
26
27 extern int bgp_md5_set_prefix(struct bgp *bgp, struct prefix *p,
28 const char *password);
29 extern int bgp_md5_unset_prefix(struct bgp *bgp, struct prefix *p);
30 extern int bgp_md5_set(struct peer *);
31 extern int bgp_md5_unset(struct peer *);
32 extern int bgp_set_socket_ttl(struct peer *, int fd);
33 extern int bgp_update_address(struct interface *ifp, const union sockunion *dst,
34 union sockunion *addr);
35
36 #endif /* _QUAGGA_BGP_NETWORK_H */