]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r285190:
authorpkelsey <pkelsey@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jul 2015 16:57:40 +0000 (16:57 +0000)
committerpkelsey <pkelsey@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jul 2015 16:57:40 +0000 (16:57 +0000)
commita666a38dbd3bfeabea1645bdfd9533add251ea43
tree4c5a5a68da86fde9658ea59d6ca06a1068c75c23
parent516ec0c1c6e37ffab98539a3ffacaa7bc67a0753
MFC r285190:

Fix if_loop so bpfwrite() can use it regardless of the state of
bd_hdrcmplt.  As if_loop does not use link-level headers, its behavior
when used by bpfwrite() should be the same regardless of the state of
bd_hdrcmplt.  Without this change, libpcap (and other BPF users that
work like it) fail when writing to loopback interfaces.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@285605 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_loop.c