Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osx bug #6

Open
joeblew99 opened this issue Nov 9, 2017 · 2 comments
Open

osx bug #6

joeblew99 opened this issue Nov 9, 2017 · 2 comments
Labels

Comments

@joeblew99
Copy link

x-MacBook-Pro:main apple$ sudo ./main
Password:
INFO[0000] 本机ip:172.16.238.99
INFO[0000] 内网IP范围:172.16.0.0 --- 172.16.255.255
FATA[0000] pcap打开失败:en0: (cannot open BPF device) /dev/bpf0: Too many open files
FATA[0000] pcap打开失败:en0: (cannot open BPF device) /dev/bpf0: Too many open files

@timest timest added the bug label Nov 11, 2017
@timest
Copy link
Owner

timest commented Nov 12, 2017

The maximum number of devices(bpf file descriptor) that can be created is 256 default. You can setting this using sysctl debug.bpf_maxdevices=xxx . And I will using thread pool to fix this issue.

@albertofwb
Copy link
Contributor

刚开始学 go
在下载依赖包的过程简直痛苦,golang.org 无法访问
只能手动从 github.com 克隆,然后拷贝到 $GOPATH 下
不过跑起来还是挺厉害的,给你👍
运行效果如图 https://www.jianguoyun.com/p/DRVxM-4QgO-uBhiz3zo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants