Import to git from cvs. Remove keywords.
This commit is contained in:
parent
e934c096dd
commit
d5c6f84271
23 changed files with 1 additions and 123 deletions
2
arp.c
2
arp.c
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS: arp
|
// L2TPNS: arp
|
||||||
|
|
||||||
char const *cvs_id_arp = "$Id: arp.c,v 1.7 2005-07-31 10:04:09 bodea Exp $";
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <net/ethernet.h>
|
#include <net/ethernet.h>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
/* set up intercept based on RADIUS reply */
|
/* set up intercept based on RADIUS reply */
|
||||||
|
|
||||||
char const *cvs_id = "$Id: autosnoop.c,v 1.12 2005-10-11 09:04:53 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,6 @@
|
||||||
* throttle=no
|
* throttle=no
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char const *cvs_id = "$Id: autothrottle.c,v 1.17 2006-05-18 14:40:31 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
2
bgp.c
2
bgp.c
|
|
@ -10,8 +10,6 @@
|
||||||
* nor RFC2385 (which requires a kernel patch on 2.4 kernels).
|
* nor RFC2385 (which requires a kernel patch on 2.4 kernels).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char const *cvs_id_bgp = "$Id: bgp.c,v 1.12 2005-09-02 23:39:36 bodea Exp $";
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
2
bgp.h
2
bgp.h
|
|
@ -200,6 +200,4 @@ int bgp_set_poll(void);
|
||||||
int bgp_process(uint32_t events[]);
|
int bgp_process(uint32_t events[]);
|
||||||
char const *bgp_state_str(enum bgp_state state);
|
char const *bgp_state_str(enum bgp_state state);
|
||||||
|
|
||||||
extern char const *cvs_id_bgp;
|
|
||||||
|
|
||||||
#endif /* __BGP_H__ */
|
#endif /* __BGP_H__ */
|
||||||
|
|
|
||||||
67
cli.c
67
cli.c
|
|
@ -1,9 +1,6 @@
|
||||||
// L2TPNS Command Line Interface
|
// L2TPNS Command Line Interface
|
||||||
// vim: sw=8 ts=8
|
// vim: sw=8 ts=8
|
||||||
|
|
||||||
char const *cvs_name = "$Name: $";
|
|
||||||
char const *cvs_id_cli = "$Id: cli.c,v 1.76 2006-12-18 12:08:28 bodea Exp $";
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
@ -794,72 +791,10 @@ static int cmd_clear_counters(struct cli_def *cli, char *command, char **argv, i
|
||||||
|
|
||||||
static int cmd_show_version(struct cli_def *cli, char *command, char **argv, int argc)
|
static int cmd_show_version(struct cli_def *cli, char *command, char **argv, int argc)
|
||||||
{
|
{
|
||||||
int tag = 0;
|
|
||||||
int file = 0;
|
|
||||||
int i = 0;
|
|
||||||
|
|
||||||
if (CLI_HELP_REQUESTED)
|
if (CLI_HELP_REQUESTED)
|
||||||
return cli_arg_help(cli, 1,
|
return CLI_HELP_NO_ARGS;
|
||||||
"tag", "Include CVS release tag",
|
|
||||||
"file", "Include file versions",
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
for (i = 0; i < argc; i++)
|
|
||||||
if (!strcmp(argv[i], "tag"))
|
|
||||||
tag++;
|
|
||||||
else if (!strcmp(argv[i], "file"))
|
|
||||||
file++;
|
|
||||||
|
|
||||||
cli_print(cli, "L2TPNS %s", VERSION);
|
cli_print(cli, "L2TPNS %s", VERSION);
|
||||||
if (tag)
|
|
||||||
{
|
|
||||||
char const *p = strchr(cvs_name, ':');
|
|
||||||
char const *e;
|
|
||||||
if (p)
|
|
||||||
{
|
|
||||||
p++;
|
|
||||||
while (isspace(*p))
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!p || *p == '$')
|
|
||||||
p = "HEAD";
|
|
||||||
|
|
||||||
e = strpbrk(p, " \t$");
|
|
||||||
cli_print(cli, "Tag: %.*s", (int) (e ? e - p + 1 : strlen(p)), p);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file)
|
|
||||||
{
|
|
||||||
extern linked_list *loaded_plugins;
|
|
||||||
void *p;
|
|
||||||
|
|
||||||
cli_print(cli, "Files:");
|
|
||||||
cli_print(cli, " %s", cvs_id_arp);
|
|
||||||
#ifdef BGP
|
|
||||||
cli_print(cli, " %s", cvs_id_bgp);
|
|
||||||
#endif /* BGP */
|
|
||||||
cli_print(cli, " %s", cvs_id_cli);
|
|
||||||
cli_print(cli, " %s", cvs_id_cluster);
|
|
||||||
cli_print(cli, " %s", cvs_id_constants);
|
|
||||||
cli_print(cli, " %s", cvs_id_control);
|
|
||||||
cli_print(cli, " %s", cvs_id_icmp);
|
|
||||||
cli_print(cli, " %s", cvs_id_l2tpns);
|
|
||||||
cli_print(cli, " %s", cvs_id_ll);
|
|
||||||
cli_print(cli, " %s", cvs_id_ppp);
|
|
||||||
cli_print(cli, " %s", cvs_id_radius);
|
|
||||||
cli_print(cli, " %s", cvs_id_tbf);
|
|
||||||
cli_print(cli, " %s", cvs_id_util);
|
|
||||||
|
|
||||||
ll_reset(loaded_plugins);
|
|
||||||
while ((p = ll_next(loaded_plugins)))
|
|
||||||
{
|
|
||||||
char const **id = dlsym(p, "cvs_id");
|
|
||||||
if (id)
|
|
||||||
cli_print(cli, " %s", *id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return CLI_OK;
|
return CLI_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS Clustering Stuff
|
// L2TPNS Clustering Stuff
|
||||||
|
|
||||||
char const *cvs_id_cluster = "$Id: cluster.c,v 1.55 2009-12-08 14:49:28 bodea Exp $";
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS: constants
|
// L2TPNS: constants
|
||||||
|
|
||||||
char const *cvs_id_constants = "$Id: constants.c,v 1.8 2009-12-08 14:49:28 bodea Exp $";
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "constants.h"
|
#include "constants.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS: control
|
// L2TPNS: control
|
||||||
|
|
||||||
char const *cvs_id_control = "$Id: control.c,v 1.5 2005-07-31 10:04:10 bodea Exp $";
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "l2tpns.h"
|
#include "l2tpns.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
|
|
|
||||||
2
garden.c
2
garden.c
|
|
@ -9,8 +9,6 @@
|
||||||
|
|
||||||
/* walled garden */
|
/* walled garden */
|
||||||
|
|
||||||
char const *cvs_id = "$Id: garden.c,v 1.25 2006-02-23 01:07:23 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
2
icmp.c
2
icmp.c
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS: icmp
|
// L2TPNS: icmp
|
||||||
|
|
||||||
char const *cvs_id_icmp = "$Id: icmp.c,v 1.11 2006-04-27 09:53:49 bodea Exp $";
|
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
|
||||||
2
l2tpns.c
2
l2tpns.c
|
|
@ -4,8 +4,6 @@
|
||||||
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
|
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
|
||||||
// vim: sw=8 ts=8
|
// vim: sw=8 ts=8
|
||||||
|
|
||||||
char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.176 2011-01-20 12:48:40 bodea Exp $";
|
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
||||||
15
l2tpns.h
15
l2tpns.h
|
|
@ -948,19 +948,4 @@ extern uint16_t MSS;
|
||||||
#define CLI_HELP_REQUESTED (argc > 0 && argv[argc-1][strlen(argv[argc-1])-1] == '?')
|
#define CLI_HELP_REQUESTED (argc > 0 && argv[argc-1][strlen(argv[argc-1])-1] == '?')
|
||||||
#define CLI_HELP_NO_ARGS (argc > 1 || argv[0][1]) ? CLI_OK : cli_arg_help(cli, 1, NULL)
|
#define CLI_HELP_NO_ARGS (argc > 1 || argv[0][1]) ? CLI_OK : cli_arg_help(cli, 1, NULL)
|
||||||
|
|
||||||
// CVS identifiers (for "show version file")
|
|
||||||
extern char const *cvs_id_arp;
|
|
||||||
extern char const *cvs_id_cli;
|
|
||||||
extern char const *cvs_id_cluster;
|
|
||||||
extern char const *cvs_id_constants;
|
|
||||||
extern char const *cvs_id_control;
|
|
||||||
extern char const *cvs_id_icmp;
|
|
||||||
extern char const *cvs_id_l2tpns;
|
|
||||||
extern char const *cvs_id_ll;
|
|
||||||
extern char const *cvs_id_md5;
|
|
||||||
extern char const *cvs_id_ppp;
|
|
||||||
extern char const *cvs_id_radius;
|
|
||||||
extern char const *cvs_id_tbf;
|
|
||||||
extern char const *cvs_id_util;
|
|
||||||
|
|
||||||
#endif /* __L2TPNS_H__ */
|
#endif /* __L2TPNS_H__ */
|
||||||
|
|
|
||||||
2
ll.c
2
ll.c
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS Linked List Stuff
|
// L2TPNS Linked List Stuff
|
||||||
|
|
||||||
char const *cvs_id_ll = "$Id: ll.c,v 1.6 2004-11-18 08:12:55 bodea Exp $";
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
||||||
2
ppp.c
2
ppp.c
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS PPP Stuff
|
// L2TPNS PPP Stuff
|
||||||
|
|
||||||
char const *cvs_id_ppp = "$Id: ppp.c,v 1.104 2009-12-08 14:49:28 bodea Exp $";
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
||||||
2
radius.c
2
radius.c
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS Radius Stuff
|
// L2TPNS Radius Stuff
|
||||||
|
|
||||||
char const *cvs_id_radius = "$Id: radius.c,v 1.56 2009-12-08 14:49:28 bodea Exp $";
|
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
/* session control */
|
/* session control */
|
||||||
|
|
||||||
char const *cvs_id = "$Id: sessionctl.c,v 1.5 2006-04-13 11:14:35 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
/* fudge up session rx speed if not set */
|
/* fudge up session rx speed if not set */
|
||||||
|
|
||||||
char const *cvs_id = "$Id: setrxspeed.c,v 1.4 2005-10-11 09:04:53 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
/* snoop control */
|
/* snoop control */
|
||||||
|
|
||||||
char const *cvs_id = "$Id: snoopctl.c,v 1.7 2005-10-11 09:04:53 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
/* strip domain part of username before sending RADIUS requests */
|
/* strip domain part of username before sending RADIUS requests */
|
||||||
|
|
||||||
char const *cvs_id = "$Id: stripdomain.c,v 1.8 2005-10-11 09:04:53 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
2
tbf.c
2
tbf.c
|
|
@ -1,7 +1,5 @@
|
||||||
// L2TPNS: token bucket filters
|
// L2TPNS: token bucket filters
|
||||||
|
|
||||||
char const *cvs_id_tbf = "$Id: tbf.c,v 1.13 2005-07-31 10:04:10 bodea Exp $";
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "l2tpns.h"
|
#include "l2tpns.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
|
|
||||||
/* throttle control */
|
/* throttle control */
|
||||||
|
|
||||||
char const *cvs_id = "$Id: throttlectl.c,v 1.9 2005-10-11 09:04:53 bodea Exp $";
|
|
||||||
|
|
||||||
int plugin_api_version = PLUGIN_API_VERSION;
|
int plugin_api_version = PLUGIN_API_VERSION;
|
||||||
static struct pluginfuncs *f = 0;
|
static struct pluginfuncs *f = 0;
|
||||||
|
|
||||||
|
|
|
||||||
2
util.c
2
util.c
|
|
@ -1,7 +1,5 @@
|
||||||
/* Misc util functions */
|
/* Misc util functions */
|
||||||
|
|
||||||
char const *cvs_id_util = "$Id: util.c,v 1.14 2006-04-05 01:45:57 bodea Exp $";
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue