diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-12-07 02:22:48 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-12-07 02:22:48 +0000 |
commit | c71d2848847b4dc9d08aee9ab683b44b1f9a6d19 (patch) | |
tree | 89e9a7026108e164c61a88d1df7cb49389545776 /sys/sys/protosw.h | |
parent | 71dd34a67c96f1199178861ca3bf33b48f8fbaf5 (diff) | |
download | FreeBSD-src-c71d2848847b4dc9d08aee9ab683b44b1f9a6d19.zip FreeBSD-src-c71d2848847b4dc9d08aee9ab683b44b1f9a6d19.tar.gz |
- according to POSIX, make socket(2) return EAFNOSUPPORT rather than
EPROTONOSUPPORT if the address family is not supported.
- introduce pffinddomain() to find a domain by family and use it as
appropriate.
Reviewed by: glebius
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r-- | sys/sys/protosw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h index b55af4b..a74771e 100644 --- a/sys/sys/protosw.h +++ b/sys/sys/protosw.h @@ -330,6 +330,7 @@ char *prcorequests[] = { #ifdef _KERNEL void pfctlinput(int, struct sockaddr *); void pfctlinput2(int, struct sockaddr *, void *); +struct domain *pffinddomain(int family); struct protosw *pffindproto(int family, int protocol, int type); struct protosw *pffindtype(int family, int type); int pf_proto_register(int family, struct protosw *npr); |