Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: (there are no BPF devices)



Damn! I didn't notice it but the ownership was wrong! I don't know why
but the link it's owned my a nonexistent UID (611):

# ls -l /dev/bpf0 
lrwx------  1 611  wheel  3 Oct 28 06:38 /dev/bpf0 -> bpf
# ls -l /dev/bpf
crw-------  1 root  wheel  32, 0 Oct 30 03:27 /dev/bpf

The erroneously omitted stuff on kdump was definitely the key:
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  open(0xbfffd9b0,2,0xdad9651e)
  1773      1 tcpdump  NAMI  "/dev/bpf0"
  1773      1 tcpdump  RET   open -1 errno 2 No such file or directory
  1773      1 tcpdump  CALL  write(2,0xbfffd49c,9)


I've just removed/re-created the link and it worked!
What an idiot!
Apologies for been wasting your time with my blindness. :(

P.S.
About the Sujit's proposed solution:
http://lists.freebsd.org/pipermail/freebsd-jail//2013-February/002073.html

I can't really see any devfs utility in my NetBSD anyway.




On Thu, 2013-10-31 at 10:17 -0400, Greg Troxel wrote:
> ASV <asv%inhio.eu@localhost> writes:
> 
> > # ktrace tcpdump arp
> > tcpdump: no suitable device found
> >
> > (kdump skipped)
> 
> that's your mistake - the kdump has the answer (but you are right not to
> subject the list to a vast amount).  You should read it, and look for a
> line with both NAMI and bpf, and see what the return code from open is.
> 
> Also, bpf devices typically need root permission.




Home | Main Index | Thread Index | Old Index