summaryrefslogtreecommitdiffstats
path: root/sys/isa/sio.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-01-31 07:34:20 +0000
committerdg <dg@FreeBSD.org>1994-01-31 07:34:20 +0000
commit4cb172d2ef8af493bed31caf048f1db64a248c71 (patch)
tree8248d9d1c376d0de56403cc92d8272afb6c60c5b /sys/isa/sio.c
parentfa0ed42e60b6630a1389880154a95870f4ecdac9 (diff)
downloadFreeBSD-src-4cb172d2ef8af493bed31caf048f1db64a248c71.zip
FreeBSD-src-4cb172d2ef8af493bed31caf048f1db64a248c71.tar.gz
Patch from dcjm@cs.ed.ac.uk (Dave Matthews)...
Yes, I know that IFADDR ioctl is supposed to be deprecated... Note that the patch was modified by me to fit better into the driver. -DG ... While porting CAP to 386bsd/pk0.2.4 and now to FreeBSD Release 1.0 I found a couple of bugs associated with the packet filter. Here are the fixes. I'm posting them here because they apply to FreeBSD and 386bsd/pk0.2.4 and possibly to other *BSD. The first occurs when using the packet filter to write raw ethernet packets. The header consisting of the sender and destination addresses and the protocol is removed and later added back on, but with the byte order of the protocol reversed. The fix ensures that the byte order in the protocol field is swapped when it is removed. The second fix ensures that SIOCGIFADDR works for BPF as claimed in the man pages, by adding it to the ed driver. Similar fixes will be needed for other ethernet drivers. Dave Matthews.
Diffstat (limited to 'sys/isa/sio.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud