In netkqfilter(), return EINVAL instead of 1 (EPERM) when a filter type

is requested on a network interface file descriptor that is non-applicable.

MFC after:	3 days
This commit is contained in:
Robert Watson 2005-09-12 19:26:03 +00:00
parent fd1a469ba5
commit 0a53be4671

View File

@ -217,7 +217,7 @@ netkqfilter(struct cdev *dev, struct knote *kn)
kn->kn_fop = &netdev_filtops;
break;
default:
return (1);
return (EINVAL);
}
idx = minor(dev);