cvs commit: src/sys/net bpf.c

Christian S.J. Peron csjp at
Fri Oct 12 07:58:35 PDT 2007

csjp        2007-10-12 14:58:34 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bpf.c 
  Make sure that we refresh the PID on read(2) and write(2) operations.
  This fixes the process portion of the bpf(4) stats if the peer forks
  into the background after it's opened the descriptor.  This bug
  results in the following behavior for netstat -B:
  # netstat -B
    Pid  Netif  Flags      Recv      Drop     Match Sblen Hblen Command
  netstat: failed: No such process
  78023    em0 p--s--   2237404     43119   2237404 13986     0 ??????
  MFC after:      1 week
  Revision  Changes    Path
  1.182     +2 -0      src/sys/net/bpf.c

More information about the cvs-src mailing list