cvs commit: src/sys/net bpf.c bpf.h

Christian S.J. Peron csjp at
Wed Jun 14 02:25:50 UTC 2006

csjp        2006-06-14 02:23:28 UTC

  FreeBSD src repository

  Modified files:
    sys/net              bpf.c bpf.h 
  If bpf(4) has not been compiled into the kernel, initialize the bpf interface
  pointer to a zeroed, statically allocated bpf_if structure. This way the
  LIST_EMPTY() macro will always return true. This allows us to remove the
  additional unconditional memory reference for each packet in the fast path.
  Discussed with: sam
  Revision  Changes    Path
  1.167     +5 -0      src/sys/net/bpf.c
  1.45      +1 -1      src/sys/net/bpf.h

More information about the cvs-src mailing list