#include "queue.h"
#include "vrf.h"
#include "bfd.h"
+#include "sockopt.h"
#include "bgpd/bgpd.h"
#include "bgpd/bgp_attr.h"
#include "plist.h"
#include "zclient.h"
#include "vrf.h"
+#include "sockopt.h"
#include "qobj.h"
#include "isisd/dict.h"
struct thread thread;
char *config_file = NULL;
char *vty_addr = NULL;
- char *vty_sock_name;
int dryrun = 0;
/* Get the programname without the preceding path. */
#include "sigevent.h"
#include "zclient.h"
#include "vrf.h"
+#include "sockopt.h"
#include "qobj.h"
static void ldpd_shutdown(void);
char *p;
char *vty_addr = NULL;
int vty_port = LDP_VTY_PORT;
- char *vty_sock_name;
char *ctl_sock_custom_path = NULL;
char *ctl_sock_name;
int daemon_mode = 0;
/* Replace the path of given defaultpath with newpath, but keep filename */
void
-set_socket_path (char *path, char *defaultpath, char *newpath, int maxsize)
+set_socket_path (char *path, const char *defaultpath, char *newpath, int maxsize)
{
- char *sock_name;
+ const char *sock_name;
sock_name = strrchr(defaultpath, '/');
if (sock_name)
#include "sockunion.h"
/* Override (vty) socket paths, but keep the filename */
-extern void set_socket_path (char *path, char *defaultpath, char *newpath, int maxsize);
+extern void set_socket_path (char *path, const char *defaultpath,
+ char *newpath, int maxsize);
extern void setsockopt_so_recvbuf (int sock, int size);
extern void setsockopt_so_sendbuf (const int sock, int size);
#include "zclient.h"
#include "vrf.h"
#include "bfd.h"
+#include "sockopt.h"
#include "ospf6d.h"
#include "ospf6_top.h"
int opt;
char *vty_addr = NULL;
int vty_port = 0;
- char *vty_sock_name;
char *config_file = NULL;
struct thread thread;
int dryrun = 0;
#include "sigevent.h"
#include "zclient.h"
#include "vrf.h"
+#include "sockopt.h"
#include "ospfd/ospfd.h"
#include "ospfd/ospf_interface.h"
char *vty_addr = NULL;
int vty_port = OSPF_VTY_PORT;
char vty_path[100];
- char *vty_sock_name;
int daemon_mode = 0;
char *config_file = NULL;
char *progname;
#include "prefix.h"
#include "plist.h"
#include "vrf.h"
+#include "sockopt.h"
#include "pimd.h"
#include "pim_version.h"
int main(int argc, char** argv, char** envp) {
char *p;
char *vty_addr = NULL;
- char *vty_sock_name;
int vty_port = -1;
int daemon_mode = 0;
char *config_file = NULL;
#include "sigevent.h"
#include "zclient.h"
#include "vrf.h"
+#include "sockopt.h"
#include "ripd/ripd.h"
int dryrun = 0;
char *progname;
struct thread thread;
- char *vty_sock_name;
/* Set umask before anything for security */
umask (0027);
#include "privs.h"
#include "sigevent.h"
#include "vrf.h"
+#include "sockopt.h"
#include "ripngd/ripngd.h"
char *progname;
struct thread thread;
int dryrun = 0;
- char *vty_sock_name;
/* Set umask before anything for security */
umask (0027);
int boot_flag = 0;
const char *daemon_name = NULL;
const char *inputfile = NULL;
- char *vtysh_configfile_name;
+ const char *vtysh_configfile_name;
struct cmd_rec {
const char *line;
struct cmd_rec *next;
#include "privs.h"
#include "sigevent.h"
#include "vrf.h"
+#include "sockopt.h"
#include "zebra/rib.h"
#include "zebra/zserv.h"
char *p;
char *vty_addr = NULL;
int vty_port = ZEBRA_VTY_PORT;
- char *vty_sock_name;
int dryrun = 0;
int batch_mode = 0;
int daemon_mode = 0;