Skip Navigation Links | |
Exit Print View | |
Programming Interfaces Guide Oracle Solaris 11.1 Information Library |
2. Session Description Protocol API
8. Programming With XTI and TLI
Using the Packet Filtering Hooks Interfaces
Packet Filtering Hooks Example
10. Transport Selection and Name-to-Address Mapping
11. Real-time Programming and Administration
Packet filtering hooks interfaces include kernel functions and data type definitions.
The packet filtering hooks kernel functions are exported from the misc/neti and misc/hook kernel modules to support packet filtering. To use these functions, link your kernel modules with -Nmisc/neti and -Nmisc/hook so that the functions will be correctly loaded by the kernel.
Allocate a hook_t data structure.
Free a hook_t structure that was originally allocated by hook_alloc().
Register a function to be called when there is a change to a specified event.
Indicate that there is no longer any desire to receive notification of changes to the specified event through calls to the specified callback function.
Retrieve the name given to the specified network interface.
Retrieve the network address information for each specified logical interface.
Retrieve information about the current MTU of the specified network interface.
Indicate whether path MTU (PMTU) discovery is enabled for the specified network protocol.
Add a hook that allows callbacks to be registered with events that belong to the specified network protocol.
Disable callback hooks that were registered with net_hook_register().
Deliver network layer packets either into the kernel or onto the network.
Allocate a net_inject_t structure.
Free a net_inject_t structure that was originally allocated by net_inject_alloc().
Allocate a net_instance_t structure.
Free a net_instance_t structure that was originally allocated by net_instance_alloc().
Register the specified function to be called when there is a new instance added to or removed from the specified network instance.
Indicate that there is no longer any desire to receive notification of changes to the specified instance through calls to the specified callback function.
Record the set of functions to be called when an event related to IP instance maintenance occurs.
Remove the set of instances that were previously registered with net_instance_register().
Indicates whether the specified packet contains headers with only partial checksum values.
Verify the layer 3 checksum and, in some cases, the layer 4 checksum in the specified packet.
Allocate and initialize a new kstat(9S) structure for the specified instance of IP.
Remove a kstat for the specified instance of IP from the system.
Search all of the logical interfaces that are associated with a physical network interface.
Search all of the network interfaces that a network protocol “owns.”
Attempt to retrieve the specified interface name for a network protocol.
Locate an implementation of a network layer protocol.
Register the specified function to be called when there is a change to the specified protocol.
Remove the specified function from the list of functions to call.
Indicate that a reference to the specified network protocol is no longer required.
Indicate which network interface packets are sent.
The following types support the functions described above.
A callback to be inserted into a networking event.
An event that has occurred and belongs to a network interface.
A packet event structure passed through to hooks.
Information about how to transmit a packet.
A collection of instances to be called when relevant events happen within IP.