GithubHelp home page GithubHelp logo

Comments (26)

phoenixxie0 avatar phoenixxie0 commented on May 25, 2024

这个是mbed TLS 的library文件,并不是openssl的。你可以考虑编译一个mbedtls。

from openwrt-netkeeper.

Cheukfung avatar Cheukfung commented on May 25, 2024

谢谢你的回复。我用openwrt编译的SDK编译了mbedtls,然后成功编译出DaoNet,可是在openwrt上面不能运行,只显示not found,我是否遗漏了什么?

from openwrt-netkeeper.

phoenixxie0 avatar phoenixxie0 commented on May 25, 2024

编译的时候是否使用了动态库?

from openwrt-netkeeper.

Cheukfung avatar Cheukfung commented on May 25, 2024

可以了,原来是我把DaoNet放在了其他目录,放到usr/bin就可以运行了。谢谢

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

@Cheukfung 你是怎么编译mbedtls的? 有的是哪个版本哦?

from openwrt-netkeeper.

Cheukfung avatar Cheukfung commented on May 25, 2024

@whatnamegood 用下载的gcc编译mbedtls,然后放到lib文件夹

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

@Cheukfung 怎么用下载GCC编译呢?直接设置环境变量吗?

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

[root@localhost DaoNet]# make
mips-openwrt-linux-gcc -o DaoNet main.o frame.o netutils.o netkeeper.o /home/li/Open/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libmbedcrypto.a -g -Wall -Wimplicit-function-declaration -I /home/li/Open/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include/
/home/li/Open/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: /home/li/Open/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libmbedcrypto.a(aes.o): Relocations in generic ELF (EM: 62)
/home/li/Open/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: /home/li/Open/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libmbedcrypto.a(aes.o): Relocations in generic ELF (EM: 62)
/home/li/Open/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libmbedcrypto.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make: *** [DaoNet] 错误 1
[root@localhost DaoNet]#

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

这里是说libmbedcrypto.a 文件类型错误 那也就是说编译时没有用到交叉编译的gcc

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

@Cheukfung 你好

from openwrt-netkeeper.

Cheukfung avatar Cheukfung commented on May 25, 2024

@whatnamegood 修改mbedtls下library下的makefile,添加CC=xxxx,xxxx为你下载的gcc路径,然后make就可以了。

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

@Cheukfung 谢谢你 我已经成功编译了 可是要怎么使用呢?
root@OpenWrt:# DaoNet
WARRNING: Support for ShanXi Netkeeper temporary.
Missing arguments.
Usage: daonet [OPTIONS]
Options:
--username, -u: Username.
--password, -p: Password.
--ipaddress, -i: IP Address.
--version, -v: Version.
--aeskey, -k: Aes key.
--interval, -I: Interval.
--target, -t: Target.
--port, -P: Port.
--help, -h: Help.
root@OpenWrt:
#

这里是要填写其配置文件? 还是要在编译是把账号信息写入到源码在编译? 或者接选项-u -p 然后接参数执行呢?

from openwrt-netkeeper.

sunflyer avatar sunflyer commented on May 25, 2024

直接带参数执行。注意ip地址是你拨号获得的ip

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

能给个实例吗?

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

@sunflyer

from openwrt-netkeeper.

sunflyer avatar sunflyer commented on May 25, 2024

DaoNet -u <宽带账号> -p <密码> -i <你拨号获得的IP地址> -v 2.5.0016v32 -k wanglibinwanglei -I 120 -t 117.21.209.186 -P 443

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

谢谢! 这里的-k 的key 是固定吗 是不是各个地区的都不同?

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

王立彬王雷?

from openwrt-netkeeper.

LiHuipeng-lab avatar LiHuipeng-lab commented on May 25, 2024

root@OpenWrt:# ./daonet.sh
root@OpenWrt:
# WARRNING: Support for ShanXi Netkeeper temporary.
INFO: Send packet succeed.
ERROR: Wait for packet timeout.
INFO: Wait 120 seconds.

这样是正常的吗? ERROR: Wait for packet timeout.

from openwrt-netkeeper.

sunflyer avatar sunflyer commented on May 25, 2024

没事,江西没有回复包,正常

from openwrt-netkeeper.

smounives avatar smounives commented on May 25, 2024

@sunflyer 湖北E信可以使用这个心跳插件吗?需不需要改什么?

from openwrt-netkeeper.

sunflyer avatar sunflyer commented on May 25, 2024

湖北不能

from openwrt-netkeeper.

smounives avatar smounives commented on May 25, 2024

QAQ 难道只能直接插网线用您的SimpleNetkeeper了吗,湖北地区求救啊

from openwrt-netkeeper.

sunflyer avatar sunflyer commented on May 25, 2024

最快下周出op支持吧,看情况

from openwrt-netkeeper.

smounives avatar smounives commented on May 25, 2024

多谢!

from openwrt-netkeeper.

theflash2017 avatar theflash2017 commented on May 25, 2024

您好,请问您有空吗?我想编译一个daonet但是并不会,您能指导一下吗?

from openwrt-netkeeper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.