1. A device, comprising: a memory; and one or more processors to: receive, by a kernel of the device and from a loadable kernel module of the device, information that instructs the kernel of the device to invoke a callback function associated with the loadable kernel module based on an execution of a hook of a transport layer protocol handler of the kernel of the device, the kernel of the device being associated with a set of hooks, the set of hooks including the hook, and each hook, of the set of hooks, being associated with a particular transport layer protocol; receive, by the kernel of the device and from an application of the device, a socket application programming interface (API) call, the socket API call including control information; receive, after receiving the socket API call, a packet via a socket, the socket API call requesting the kernel of the device to provide the packet to the application; execute, by the kernel of the device, the hook based on receiving the packet via the socket; and invoke, by the kernel of the device, the callback function associated with the loadable kernel module based on executing the hook to permit a functionality associated with the callback function to be provided, the kernel to provide the control information, associated with the socket API call, to the callback function as an argument.