Call bpfattach() correctly from if_ppp.c

Submitted by:	Andy Adams <ala@merit.edu>
PR:		18506
This commit is contained in:
Brian Somers 2000-09-16 14:17:15 +00:00
parent fc87418be0
commit 30fa52a6fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65922

View File

@ -217,6 +217,11 @@ bpf_movein(uio, linktype, mp, sockp, datlen)
break;
#endif
case DLT_PPP:
sockp->sa_family = AF_UNSPEC;
hlen = 4; /* This should match PPP_HDRLEN */
break;
default:
return (EIO);
}