diff options
Diffstat (limited to 'ncpd/ncp.cc')
-rw-r--r-- | ncpd/ncp.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc index aff7867..3abdf87 100644 --- a/ncpd/ncp.cc +++ b/ncpd/ncp.cc @@ -29,22 +29,21 @@ #include <string> #include <time.h> -#include "ncp.h" -#include "linkchan.h" -#include "link.h" #include <bufferstore.h> #include <bufferarray.h> #include <rfsv.h> +#include "ncp.h" +#include "linkchan.h" +#include "link.h" +#include "main.h" + #define MAX_CHANNELS_PSION 256 #define MAX_CHANNELS_SIBO 8 #define NCP_SENDLEN 250 using namespace std; -extern ostream lout; -extern ostream lerr; - ncp::ncp(const char *fname, int baud, unsigned short _verbose) { channelPtr = new channel*[MAX_CHANNELS_PSION + 1]; @@ -230,6 +229,9 @@ decodeControlMessage(bufferStore & buff) controlChannel(localChan, NCON_MSG_CONNECT_RESPONSE, b); if (verbose & NCP_DEBUG_LOG) lout << "ncp: Link UP" << endl; + linf << "Connected with a S" + << ((protocolVersion == PV_SERIES_5) ? 5 : 3) << " at " + << getSpeed() << "baud" << endl; // Create linkchan if it does not yet exist if (!lChan) { if (verbose & NCP_DEBUG_LOG) |