drop level of "Unexpected CHAP message" log
This commit is contained in:
parent
567f8e3653
commit
87a0b48170
4 changed files with 16 additions and 13 deletions
3
Changes
3
Changes
|
|
@ -1,3 +1,6 @@
|
||||||
|
* Thu Aug 25 2005 Brendan O'Dea <bod@optus.net> 2.1.4
|
||||||
|
- Drop level of "Unexpected CHAP message" log.
|
||||||
|
|
||||||
* Wed Aug 17 2005 Brendan O'Dea <bod@optus.net> 2.1.3
|
* Wed Aug 17 2005 Brendan O'Dea <bod@optus.net> 2.1.3
|
||||||
- Fail IPCP negotiation only on ConfigRej of IP-Address.
|
- Fail IPCP negotiation only on ConfigRej of IP-Address.
|
||||||
|
|
||||||
|
|
|
||||||
4
l2tpns.h
4
l2tpns.h
|
|
@ -1,5 +1,5 @@
|
||||||
// L2TPNS Global Stuff
|
// L2TPNS Global Stuff
|
||||||
// $Id: l2tpns.h,v 1.83 2005-08-17 03:56:27 bodea Exp $
|
// $Id: l2tpns.h,v 1.84 2005-08-24 23:44:08 bodea Exp $
|
||||||
|
|
||||||
#ifndef __L2TPNS_H__
|
#ifndef __L2TPNS_H__
|
||||||
#define __L2TPNS_H__
|
#define __L2TPNS_H__
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <libcli.h>
|
#include <libcli.h>
|
||||||
|
|
||||||
#define VERSION "2.1.3"
|
#define VERSION "2.1.4"
|
||||||
|
|
||||||
// Limits
|
// Limits
|
||||||
#define MAXTUNNEL 500 // could be up to 65535
|
#define MAXTUNNEL 500 // could be up to 65535
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
Summary: A high-speed clustered L2TP LNS
|
Summary: A high-speed clustered L2TP LNS
|
||||||
Name: l2tpns
|
Name: l2tpns
|
||||||
Version: 2.1.3
|
Version: 2.1.4
|
||||||
Release: 1
|
Release: 1
|
||||||
Copyright: GPL
|
Copyright: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
|
@ -43,5 +43,5 @@ rm -rf %{buildroot}
|
||||||
%attr(644,root,root) /usr/share/man/man[58]/*
|
%attr(644,root,root) /usr/share/man/man[58]/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Aug 17 2005 Brendan O'Dea <bod@optus.net> 2.1.3-1
|
* Thu Aug 25 2005 Brendan O'Dea <bod@optus.net> 2.1.4-1
|
||||||
- 2.1.3 release, see /usr/share/doc/l2tpns-2.1.3/Changes
|
- 2.1.4 release, see /usr/share/doc/l2tpns-2.1.4/Changes
|
||||||
|
|
|
||||||
16
ppp.c
16
ppp.c
|
|
@ -1,6 +1,6 @@
|
||||||
// L2TPNS PPP Stuff
|
// L2TPNS PPP Stuff
|
||||||
|
|
||||||
char const *cvs_id_ppp = "$Id: ppp.c,v 1.74 2005-08-17 03:56:27 bodea Exp $";
|
char const *cvs_id_ppp = "$Id: ppp.c,v 1.75 2005-08-24 23:44:08 bodea Exp $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -147,13 +147,6 @@ void processchap(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
|
||||||
CSTAT(processchap);
|
CSTAT(processchap);
|
||||||
|
|
||||||
LOG_HEX(5, "CHAP", p, l);
|
LOG_HEX(5, "CHAP", p, l);
|
||||||
r = sess_local[s].radius;
|
|
||||||
if (!r)
|
|
||||||
{
|
|
||||||
LOG(1, s, t, "Unexpected CHAP message\n");
|
|
||||||
STAT(tunnel_rx_errors);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (l < 4)
|
if (l < 4)
|
||||||
{
|
{
|
||||||
|
|
@ -180,6 +173,13 @@ void processchap(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r = sess_local[s].radius;
|
||||||
|
if (!r)
|
||||||
|
{
|
||||||
|
LOG(3, s, t, "Unexpected CHAP message\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (session[s].ppp.phase != Authenticate)
|
if (session[s].ppp.phase != Authenticate)
|
||||||
{
|
{
|
||||||
LOG(2, s, t, "CHAP ignored in %s phase\n", ppp_phase(session[s].ppp.phase));
|
LOG(2, s, t, "CHAP ignored in %s phase\n", ppp_phase(session[s].ppp.phase));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue