projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make log a conditional macro for _log
[l2tpns.git]
/
l2tpns.c
diff --git
a/l2tpns.c
b/l2tpns.c
index
c0a60a7
..
d95517e
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.3
7 2004-11-02 04:35:04
bodea Exp $";
+char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.3
9 2004-11-03 13:23:58
bodea Exp $";
#include <arpa/inet.h>
#include <assert.h>
#include <arpa/inet.h>
#include <assert.h>
@@
-239,7
+239,7
@@
void _log(int level, ipt address, sessionidt s, tunnelidt t, const char *format,
va_end(ap);
}
va_end(ap);
}
-void _log_hex(int level,
ipt address, sessionidt s, tunnelidt t,
const char *title, const char *data, int maxsize)
+void _log_hex(int level, const char *title, const char *data, int maxsize)
{
int i, j;
const u8 *d = (const u8 *)data;
{
int i, j;
const u8 *d = (const u8 *)data;
@@
-249,7
+249,7
@@
void _log_hex(int level, ipt address, sessionidt s, tunnelidt t, const char *tit
// No support for log_hex to syslog
if (log_stream)
{
// No support for log_hex to syslog
if (log_stream)
{
-
log(level, address, s, t
, "%s (%d bytes):\n", title, maxsize);
+
_log(level, 0, 0, 0
, "%s (%d bytes):\n", title, maxsize);
setvbuf(log_stream, NULL, _IOFBF, 16384);
for (i = 0; i < maxsize; )
setvbuf(log_stream, NULL, _IOFBF, 16384);
for (i = 0; i < maxsize; )
@@
-1003,7
+1003,7
@@
void throttle_session(sessionidt s, int rate_in, int rate_out)
free_tbf(session[s].tbf_out);
if (rate_out > 0)
free_tbf(session[s].tbf_out);
if (rate_out > 0)
- session[s].tbf_out = new_tbf(s, bytes * 2, bytes, send_ip
in
);
+ session[s].tbf_out = new_tbf(s, bytes * 2, bytes, send_ip
out
);
else
session[s].tbf_out = 0;
else
session[s].tbf_out = 0;