diff options
author | marcel <marcel@FreeBSD.org> | 2014-08-18 23:45:40 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2014-08-18 23:45:40 +0000 |
commit | 8bec6893f3070a04f4ac88a75e3ce142c178e1ea (patch) | |
tree | c38d7310d48b7d0f2d1d58e4cdff4e7d287a1636 /sys/sys/khelp.h | |
parent | 7c482bdd955b85cf78858f610b4eca3544bc0c64 (diff) | |
download | FreeBSD-src-8bec6893f3070a04f4ac88a75e3ce142c178e1ea.zip FreeBSD-src-8bec6893f3070a04f4ac88a75e3ce142c178e1ea.tar.gz |
For vendors like Juniper, extensibility for sockets is important. A
good example is socket options that aren't necessarily generic. To
this end, OSD is added to the socket structure and hooks are defined
for key operations on sockets. These are:
o soalloc() and sodealloc()
o Get and set socket options
o Socket related kevent filters.
One aspect about hhook that appears to be not fully baked is the return
semantics (the return value from the hook is ignored in hhook_run_hooks()
at the time of commit). To support return values, the socket_hhook_data
structure contains a 'status' field to hold return values.
Submitted by: Anuranjan Shukla <anshukla@juniper.net>
Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'sys/sys/khelp.h')
-rw-r--r-- | sys/sys/khelp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/khelp.h b/sys/sys/khelp.h index db12d6b..f542b14 100644 --- a/sys/sys/khelp.h +++ b/sys/sys/khelp.h @@ -55,6 +55,7 @@ struct osd; /* Helper classes. */ #define HELPER_CLASS_TCP 0x00000001 +#define HELPER_CLASS_SOCKET 0x00000002 /* Public KPI functions. */ int khelp_register_helper(struct helper *h); |