projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b5d3f18
)
make some functions static
author
Brendan O'Dea
<bod@optus.net>
Tue, 8 Feb 2005 01:20:38 +0000
(
01:20
+0000)
committer
Brendan O'Dea
<bod@optus.net>
Tue, 8 Feb 2005 01:20:38 +0000
(
01:20
+0000)
cli.c
patch
|
blob
|
history
l2tpns.c
patch
|
blob
|
history
diff --git
a/cli.c
b/cli.c
index
dace437
..
3da00da
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-2,7
+2,7
@@
// vim: sw=8 ts=8
char const *cvs_name = "$Name: $";
// vim: sw=8 ts=8
char const *cvs_name = "$Name: $";
-char const *cvs_id_cli = "$Id: cli.c,v 1.5
2 2005-01-25 04:19:05
bodea Exp $";
+char const *cvs_id_cli = "$Id: cli.c,v 1.5
3 2005-02-08 01:20:38
bodea Exp $";
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
@@
-2508,7
+2508,7
@@
static char const *show_access_list_rule(int extended, ip_filter_rulet *rule)
return buf;
}
return buf;
}
-ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char **argv, int argc)
+
static
ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char **argv, int argc)
{
static ip_filter_rulet rule;
struct in_addr addr;
{
static ip_filter_rulet rule;
struct in_addr addr;
@@
-2743,7
+2743,7
@@
ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char *
return &rule;
}
return &rule;
}
-ip_filter_rulet *access_list_rule_std(struct cli_def *cli, char *command, char **argv, int argc)
+
static
ip_filter_rulet *access_list_rule_std(struct cli_def *cli, char *command, char **argv, int argc)
{
static ip_filter_rulet rule;
struct in_addr addr;
{
static ip_filter_rulet rule;
struct in_addr addr;
diff --git
a/l2tpns.c
b/l2tpns.c
index
778dd24
..
44fcda5
100644
(file)
--- a/
l2tpns.c
+++ b/
l2tpns.c
@@
-4,7
+4,7
@@
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
// vim: sw=8 ts=8
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
// vim: sw=8 ts=8
-char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.8
0 2005-01-25 04:19:05
bodea Exp $";
+char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.8
1 2005-02-08 01:20:38
bodea Exp $";
#include <arpa/inet.h>
#include <assert.h>
#include <arpa/inet.h>
#include <assert.h>
@@
-632,7
+632,7
@@
static int lookup_ipmap(in_addr_t ip)
return (int) (intptr_t) d[(size_t) *a];
}
return (int) (intptr_t) d[(size_t) *a];
}
-int lookup_ipv6map(struct in6_addr ip)
+
static
int lookup_ipv6map(struct in6_addr ip)
{
struct ipv6radix *curnode;
int i;
{
struct ipv6radix *curnode;
int i;
@@
-1086,7
+1086,7
@@
static void processipout(uint8_t * buf, int len)
// process outgoing (to tunnel) IPv6
//
// process outgoing (to tunnel) IPv6
//
-void processipv6out(uint8_t * buf, int len)
+
static
void processipv6out(uint8_t * buf, int len)
{
sessionidt s;
sessiont *sp;
{
sessionidt s;
sessiont *sp;
@@
-1396,7
+1396,7
@@
void throttle_session(sessionidt s, int rate_in, int rate_out)
}
// add/remove filters from session (-1 = no change)
}
// add/remove filters from session (-1 = no change)
-void filter_session(sessionidt s, int filter_in, int filter_out)
+
static
void filter_session(sessionidt s, int filter_in, int filter_out)
{
if (!session[s].tunnel)
return; // No-one home.
{
if (!session[s].tunnel)
return; // No-one home.