busybox brctl:未安装包
busybox brctl : Package not installed
有一个程序需要 bridge-utils。
但是
我为 Android 交叉编译了程序。(默认为 linux)
我应该使用 brctl 命令。
但是我无法在 Android 上安装 bridge-utils。
所以我尝试在 busybox 中使用 brctl 命令。
$ busybox brctl addbr
BusyBox v1.21.1 (2015-02-16 16:54:27 KST) multi-call binary.
Usage: brctl COMMAND [BRIDGE [INTERFACE]]
Manage ethernet bridges
Commands:
show Show a list of bridges
addbr BRIDGE Create BRIDGE
delbr BRIDGE Delete BRIDGE
addif BRIDGE IFACE Add IFACE to BRIDGE
delif BRIDGE IFACE Delete IFACE from BRIDGE
setageing BRIDGE TIME Set ageing time
setfd BRIDGE TIME Set bridge forward delay
sethello BRIDGE TIME Set hello time
setmaxage BRIDGE TIME Set max message age
setpathcost BRIDGE COST Set path cost
setportprio BRIDGE PRIO Set port priority
setbridgeprio BRIDGE PRIO Set bridge priority
stp BRIDGE [1/yes/on|0/no/off] STP on/off
和
$ busybox brctl addbr brlan
brctl: bridge brlan : Package not installed
我需要额外的文件吗?或交叉编译的 bridge-utils?
谢谢!祝你有个美好的一天!
修改内核选项并重建
这是答案
需要内核中的桥接选项
使用#make ARCH=arm menuconfig
有一个程序需要 bridge-utils。
但是 我为 Android 交叉编译了程序。(默认为 linux)
我应该使用 brctl 命令。
但是我无法在 Android 上安装 bridge-utils。 所以我尝试在 busybox 中使用 brctl 命令。
$ busybox brctl addbr
BusyBox v1.21.1 (2015-02-16 16:54:27 KST) multi-call binary.
Usage: brctl COMMAND [BRIDGE [INTERFACE]]
Manage ethernet bridges
Commands:
show Show a list of bridges
addbr BRIDGE Create BRIDGE
delbr BRIDGE Delete BRIDGE
addif BRIDGE IFACE Add IFACE to BRIDGE
delif BRIDGE IFACE Delete IFACE from BRIDGE
setageing BRIDGE TIME Set ageing time
setfd BRIDGE TIME Set bridge forward delay
sethello BRIDGE TIME Set hello time
setmaxage BRIDGE TIME Set max message age
setpathcost BRIDGE COST Set path cost
setportprio BRIDGE PRIO Set port priority
setbridgeprio BRIDGE PRIO Set bridge priority
stp BRIDGE [1/yes/on|0/no/off] STP on/off
和
$ busybox brctl addbr brlan
brctl: bridge brlan : Package not installed
我需要额外的文件吗?或交叉编译的 bridge-utils?
谢谢!祝你有个美好的一天!
修改内核选项并重建 这是答案
需要内核中的桥接选项
使用#make ARCH=arm menuconfig