]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_network.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* BGP network related header
3 * Copyright (C) 1999 Kunihiro Ishiguro
6 #ifndef _QUAGGA_BGP_NETWORK_H
7 #define _QUAGGA_BGP_NETWORK_H
9 #define BGP_SOCKET_SNDBUF_SIZE 65536
14 struct thread
*thread
;
19 extern void bgp_dump_listener_info(struct vty
*vty
);
20 extern int bgp_socket(struct bgp
*bgp
, unsigned short port
,
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
*);
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
);
36 #endif /* _QUAGGA_BGP_NETWORK_H */