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
@ -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…
x
Reference in New Issue
Block a user