X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..HEAD:/bsd/netinet/in_var.h diff --git a/bsd/netinet/in_var.h b/bsd/netinet/in_var.h index 18c55a17a..454a58288 100644 --- a/bsd/netinet/in_var.h +++ b/bsd/netinet/in_var.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2016 Apple Inc. All rights reserved. + * Copyright (c) 2000-2019 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -135,6 +135,20 @@ struct kev_in_arpalive { struct net_event_data link_data; /* link where ARP was received */ }; +#ifdef PRIVATE +/* + * Common structure for KEV_SOCKET_SUBCLASS + * Have to place here to avoid declaration dependencies. + */ +struct kev_socket_event_data { + union sockaddr_in_4_6 kev_sockname; + union sockaddr_in_4_6 kev_peername; +}; + +struct kev_socket_closed { + struct kev_socket_event_data ev_data; +}; +#endif /* PRIVATE */ #ifdef __APPLE_API_PRIVATE struct kev_in_portinuse { @@ -145,6 +159,10 @@ struct kev_in_portinuse { #endif /* __APPLE_API_PRIVATE */ #ifdef BSD_KERNEL_PRIVATE +extern void socket_post_kev_msg(uint32_t, struct kev_socket_event_data *, + uint32_t); +extern void socket_post_kev_msg_closed(struct socket *); + #include #include #include