LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Musings on technology, philosophy, and life in the corporate world
User Name
Password

Notices


Hi. I'm jon.404, a Unix/Linux/Database/Openstack/Kubernetes Administrator, AWS/GCP/Azure Engineer, mathematics enthusiast, and amateur philosopher. This is where I rant about that which upsets me, laugh about that which amuses me, and jabber about that which holds my interest most: *nix.
Rate this Entry

pcap_open_live(vlan2): vlan2: (all BPF devices are busy)

Posted 06-25-2013 at 02:42 PM by rocket357

I can haz iftop x 5?

No, apparently not.

Code:
# lsof | grep bpf                                                       
iftop      1106    _iftop    4u    VCHR       23,5        0t0   58522 /dev/bpf5
dhclient  10196      root    5u    VCHR       23,9 0t15376716   58526 /dev/bpf9
iftop     10521    _iftop    4u    VCHR       23,8 0t30713975   58525 /dev/bpf8
dhclient  10789     _dhcp    5u    VCHR       23,9 0t15376716   58526 /dev/bpf9
pflogd    12994      root    3u    VCHR       23,1 0t96895490   58518 /dev/bpf1
dhcpd     17661     _dhcp    5u    VCHR       23,2    0t60916   58519 /dev/bpf2
dhcpd     17661     _dhcp    6u    VCHR       23,3   0t945912   58520 /dev/bpf3
dhcpd     17661     _dhcp    7u    VCHR       23,6  0t1506978   58523 /dev/bpf6
dhcpd     17661     _dhcp    8u    VCHR       23,7    0t23868   58524 /dev/bpf7
iftop     18968    _iftop    4u    VCHR       23,0 0x9d09dcfe   58517 /dev/bpf0
iftop     21269    _iftop    4u    VCHR       23,4  0t6371829   58521 /dev/bpf4
pflogd    32614   _pflogd    3u    VCHR       23,1 0t96895490   58518 /dev/bpf1

# ls -lh /dev/bpf*
crw-------  1 root  wheel   23,   0 Jun  5 12:03 /dev/bpf0
crw-------  1 root  wheel   23,   1 May 10 00:06 /dev/bpf1
crw-------  1 root  wheel   23,   2 Jun 25 01:30 /dev/bpf2
crw-------  1 root  wheel   23,   3 Jun 25 14:34 /dev/bpf3
crw-------  1 root  wheel   23,   4 May 10 00:06 /dev/bpf4
crw-------  1 root  wheel   23,   5 Jun 23 15:30 /dev/bpf5
crw-------  1 root  wheel   23,   6 Jun 25 14:29 /dev/bpf6
crw-------  1 root  wheel   23,   7 Jun 25 14:29 /dev/bpf7
crw-------  1 root  wheel   23,   8 Jun 23 15:30 /dev/bpf8
crw-------  1 root  wheel   23,   9 Jun 25 14:29 /dev/bpf9
Hrmmm...methinks I found the problem.

Code:
# mknod bpf10 c 23 10
# mknod bpf11 c 23 11
# ls -lh /dev/bpf*    
crw-------  1 root  wheel   23,   0 Jun  5 12:03 /dev/bpf0
crw-------  1 root  wheel   23,   1 May 10 00:06 /dev/bpf1
crw-r--r--  1 root  wheel   23,  10 Jun 25 14:35 /dev/bpf10
crw-r--r--  1 root  wheel   23,  11 Jun 25 14:40 /dev/bpf11
crw-------  1 root  wheel   23,   2 Jun 25 01:30 /dev/bpf2
crw-------  1 root  wheel   23,   3 Jun 25 14:34 /dev/bpf3
crw-------  1 root  wheel   23,   4 May 10 00:06 /dev/bpf4
crw-------  1 root  wheel   23,   5 Jun 23 15:30 /dev/bpf5
crw-------  1 root  wheel   23,   6 Jun 25 14:29 /dev/bpf6
crw-------  1 root  wheel   23,   7 Jun 25 14:29 /dev/bpf7
crw-------  1 root  wheel   23,   8 Jun 23 15:30 /dev/bpf8
crw-------  1 root  wheel   23,   9 Jun 25 14:29 /dev/bpf9
Err...whoops...

Code:
# chmod 600 /dev/bpf10                                                                        
# chmod 600 /dev/bpf11 
# ls -lh /dev/bpf*      
crw-------  1 root  wheel   23,   0 Jun  5 12:03 /dev/bpf0
crw-------  1 root  wheel   23,   1 May 10 00:06 /dev/bpf1
crw-------  1 root  wheel   23,  10 Jun 25 14:35 /dev/bpf10
crw-------  1 root  wheel   23,  11 Jun 25 14:40 /dev/bpf11
crw-------  1 root  wheel   23,   2 Jun 25 01:30 /dev/bpf2
crw-------  1 root  wheel   23,   3 Jun 25 14:34 /dev/bpf3
crw-------  1 root  wheel   23,   4 May 10 00:06 /dev/bpf4
crw-------  1 root  wheel   23,   5 Jun 23 15:30 /dev/bpf5
crw-------  1 root  wheel   23,   6 Jun 25 14:29 /dev/bpf6
crw-------  1 root  wheel   23,   7 Jun 25 14:29 /dev/bpf7
crw-------  1 root  wheel   23,   8 Jun 23 15:30 /dev/bpf8
crw-------  1 root  wheel   23,   9 Jun 25 14:29 /dev/bpf9
Now I can iftop all of the things. Yay!
Posted in Uncategorized
Views 2087 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration