1999-10-29 09:44:44 +00:00
|
|
|
/*
|
|
|
|
* BIRD Client -- Unix Entry Point
|
|
|
|
*
|
|
|
|
* (c) 1999 Martin Mares <mj@ucw.cz>
|
|
|
|
*
|
|
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#include "nest/bird.h"
|
1999-10-29 12:10:10 +00:00
|
|
|
#include "lib/resource.h" /* For dmalloc */
|
1999-10-29 09:44:44 +00:00
|
|
|
#include "client/client.h"
|
1999-12-06 12:34:45 +00:00
|
|
|
#include "nest/cli.h"
|
1999-10-29 09:44:44 +00:00
|
|
|
|
|
|
|
#include "unix.h"
|
|
|
|
|
|
|
|
static char *opt_list = "";
|
|
|
|
|
|
|
|
static void
|
|
|
|
usage(void)
|
|
|
|
{
|
|
|
|
fprintf(stderr, "Usage: birdc\n");
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
parse_args(int argc, char **argv)
|
|
|
|
{
|
|
|
|
int c;
|
|
|
|
|
|
|
|
while ((c = getopt(argc, argv, opt_list)) >= 0)
|
|
|
|
switch (c)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
usage();
|
|
|
|
}
|
|
|
|
if (optind < argc)
|
|
|
|
usage();
|
|
|
|
}
|
|
|
|
|
1999-12-06 12:34:45 +00:00
|
|
|
void
|
|
|
|
cli_echo(unsigned int class, byte *buf)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
1999-10-29 09:44:44 +00:00
|
|
|
int
|
|
|
|
client_main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
#ifdef HAVE_LIBDMALLOC
|
|
|
|
if (!getenv("DMALLOC_OPTIONS"))
|
|
|
|
dmalloc_debug(0x2f03d00);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
parse_args(argc, argv);
|
|
|
|
|
|
|
|
bug("Not implemented yet!");
|
|
|
|
}
|