Drcom-generic implementation in C. 已经部分汉化,说明没空写,没有测试,谨慎使用
Usage:
dogcom -m <dhcp/pppoe> -c <FILEPATH> [options <argument>]...
Options:
--mode <dhcp/pppoe>, -m <dhcp/pppoe> set your dogcom mode
--conf <FILEPATH>, -c <FILEPATH> import configuration file
--bindip <IPADDR>, -b <IPADDR> bind your ip address(default is 0.0.0.0)
--log <LOGPATH>, -l <LOGPATH> specify log file
--802.1x, -x enable 802.1x
--daemon, -d set daemon flag
--eternal, -e set eternal flag
--verbose, -v set verbose flag
--help, -h display this help
Config file is compatible with drcom-generic.
$ dogcom -m dhcp -c dogcom.conf
$ dogcom -m dhcp -c dogcom.conf -l /tmp/dogcom.log -v
$ dogcom -m dhcp -c dogcom.conf -d # (PS: only on Linux build)
$ dogcom -m pppoe -c dogcom.conf -x # (PS: only on Linux build)
$ dogcom -m pppoe -c dogcom.conf -e # eternal dogcoming (default times is 5)
$ dogcom -m pppoe -c dogcom.conf -v
$ dogcom -m dhcp -c dogcom.conf -b 10.2.3.12 -v
$ make # Linux
$ make win32=y # Windows(MinGW)
$ make test=y # For testing purposes
$ make force_encrypt=y # Force open encrypt mode in PPPoE version