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

扫描不到任何结果 #1

Open
jimsmt opened this issue Jun 3, 2020 · 4 comments
Open

扫描不到任何结果 #1

jimsmt opened this issue Jun 3, 2020 · 4 comments

Comments

@jimsmt
Copy link

jimsmt commented Jun 3, 2020

系统是debian buster,iptv通过vlan添加在网卡ens3.610,udpxy可以正常播放组播频道。

使用你的工具扫描单个IP或者IP段都没有任何反应
./iptvscanner 239.131.1.1 239.131.1.2

  1. ens3 (No description available)
  2. ens3.43 (No description available)
  3. ens3.610 (No description available)
  4. ens3.3800 (No description available)
  5. any (Pseudo-device that captures on all interfaces)
  6. lo (No description available)
  7. nflog (Linux netfilter log (NFLOG) interface)
  8. nfqueue (Linux netfilter queue (NFQUEUE) interface)
  9. usbmon1 (USB bus number 1)
    Enter the interface number (1-%d):3
    #EXTM3U name="bj-unicom-iptv"
    ^C
    尝试按readme建议修改usleep,还是一样的结果
@jimsmt
Copy link
Author

jimsmt commented Jun 3, 2020

通过手动添加IPTV IP段的路由可以开始扫描了,但是又有新的问题。一遇到没有组播的IP,程序就会卡住,不会跳过继续。改了usleep也不管用

@thinktip
Copy link

thinktip commented Apr 4, 2021

对,不能自动跳过,需要一段一段自己试,有点麻烦
能不能改成自动跳过呢

@linanzi
Copy link

linanzi commented Aug 24, 2021

#the-tcpdump-group/libpcap#572
pcap_setnonblock(device, 1, errBuf);
测试设置成nonblock就好了。

@matoung
Copy link

matoung commented Sep 21, 2021

#the-tcpdump-group/libpcap#572
pcap_setnonblock(device, 1, errBuf);
测试设置成nonblock就好了。

多谢提示,我在LEDE X86上面用,加了以下两句可以了:

pcap_setnonblock(device, 1, errBuf);
pcap_set_immediate_mode(device, 1);

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

No branches or pull requests

4 participants