diff options
Diffstat (limited to 'usr/src/uts/common/sys/hook_event.h')
| -rw-r--r-- | usr/src/uts/common/sys/hook_event.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/hook_event.h b/usr/src/uts/common/sys/hook_event.h index 12dcef0e84..df99a67956 100644 --- a/usr/src/uts/common/sys/hook_event.h +++ b/usr/src/uts/common/sys/hook_event.h @@ -32,8 +32,6 @@ #ifndef _SYS_HOOK_EVENT_H #define _SYS_HOOK_EVENT_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/neti.h> #include <sys/hook.h> @@ -46,6 +44,8 @@ extern "C" { * associated network interfaces. * * The members of this structure are defined as follows: + * hpe_protocol - protocol identifier that indicates which protocol the + * header data is associated with. * hpe_ifp - "in" interface for packets coming into the system or forwarded * hpe_ofp - "out" interface for packets being transmitted or forwarded * hpe_hdr - pointer to protocol header within the packet @@ -53,12 +53,14 @@ extern "C" { * hpe_mb - pointer to the mblk that contains hpe_hdr */ typedef struct hook_pkt_event { + net_handle_t hpe_protocol; phy_if_t hpe_ifp; phy_if_t hpe_ofp; void *hpe_hdr; mblk_t **hpe_mp; mblk_t *hpe_mb; int hpe_flags; + void *hpe_reserved[2]; } hook_pkt_event_t; #define HPE_MULTICAST 0x01 @@ -81,7 +83,7 @@ typedef void *nic_event_data_t; * The hook_nic_event data structure is provided with all network interface * events. * - * hne_family - network family of events, returned from net_lookup + * hne_protocol- network protocol for events, returned from net_lookup * hne_nic - physical interface associated with event * hne_lif - logical interface (if any) associated with event * hne_event - type of event occuring @@ -89,7 +91,7 @@ typedef void *nic_event_data_t; * hne_datalen - size of data pointed to by hne_data (can be 0) */ typedef struct hook_nic_event { - net_data_t hne_family; + net_handle_t hne_protocol; phy_if_t hne_nic; lif_if_t hne_lif; nic_event_t hne_event; @@ -97,6 +99,15 @@ typedef struct hook_nic_event { size_t hne_datalen; } hook_nic_event_t; +/* + * This structure is used internally by ip to queue events. + */ +struct hook_nic_event_int { + netstackid_t hnei_stackid; + hook_nic_event_t hnei_event; +}; +typedef struct hook_nic_event_int hook_nic_event_int_t; + #ifdef __cplusplus } #endif |
