Call bpfattach() correctly from if_ppp.c
Submitted by: Andy Adams <ala@merit.edu> PR: 18506
This commit is contained in:
parent
fc87418be0
commit
30fa52a6fa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65922
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user