Code: Select all
printf "password\rshow sessions\rlogo\r" | nc 172.31.0.6 2000
Code: Select all
printf "password\rshow sessions\rlogo\r" | nc 172.31.0.6 2000
К сожалению не помогло. Как будто accel-ppp разрывает соединение . Проблема проявляется когда больше 1000 строк, до 1000 строк все ок.hugleo wrote:nc is port 2001
try like that:
echo 'show sessions' | nc -q10 127.0.0.1 2001
Почему не хочет собиратьсяDmitry wrote:1.10.2 пробуй
Code: Select all
cd /root
cmake /root/accel-ppp.git -DKDIR=/usr/src/linux-headers-`uname -r` -DBUILD_DRIVER=FALSE -DRADIUS=TRUE -DNETSNMP=FALSE -DSHAPER=FALSE -DLOG_PGSQL=FALSE -DLUA=TRUE -
DBUILD_IPOE_DRIVER=TRUE
CMake Error at CMakeLists.txt:6 (message):
Building in source directory is forbidden. Please make separated build
directory.
-- Configuring incomplete, errors occurred!
hugleo wrote:cd /root/accel-ppp.git
mkdir build
cd build
cmake -DKDIR=/usr/src/linux-headers-`uname -r` -DBUILD_DRIVER=FALSE -DRADIUS=TRUE -DNETSNMP=FALSE -DSHAPER=FALSE -DLOG_PGSQL=FALSE -DLUA=TRUE -DBUILD_IPOE_DRIVER=TRUE ..
Code: Select all
#pwd
/root/accel-ppp.git/build
cmake -DKDIR=/usr/src/linux-headers-`uname -r` -DBUILD_DRIVER=FALSE -DRADIUS=TRUE -DNETSNMP=FALSE -DSHAPER=FALSE -DLOG_PGSQL=FALSE -DLUA=TRUE -DBUILD_IPOE_DRIVER=TRUE
CMake Error: The source directory "/root/accel-ppp.git/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Code: Select all
/root/accel-ppp.git/build/drivers/ipoe/driver/ipoe.c: In function ‘ipoe_stats64’:
/root/accel-ppp.git/build/drivers/ipoe/driver/ipoe.c:1092:4: error: implicit declaration of function ‘u64_stats_fetch_begin_bh’ [-Werror=implicit-function-declaration]
start = u64_stats_fetch_begin_bh(&st->sync);
^
/root/accel-ppp.git/build/drivers/ipoe/driver/ipoe.c:1095:3: error: implicit declaration of function ‘u64_stats_fetch_retry_bh’ [-Werror=implicit-function-declaration]
} while (u64_stats_fetch_retry_bh(&st->sync, start));
^